Commit graph

590 commits

Author SHA1 Message Date
Colin Kuskie
fff5bcfcd8 Better handling of fragment null string. Return chunked for errors in www_view. 2010-08-10 10:27:45 -07:00
Colin Kuskie
8a448e8f96 Tests for methods that die. Strange tom-foolery to get $@ into the logged message... 2010-08-10 10:27:45 -07:00
Colin Kuskie
3a9a3dd8e9 Add retry in case of problems in dispatch. Add tests for logging errors for bad templates. 2010-08-10 10:27:45 -07:00
Colin Kuskie
25fb019a18 Prepare a test method for throwing Template exceptions. Add code to handle HTTP 304 for visitors. 2010-08-10 10:27:45 -07:00
Colin Kuskie
1e00e6a93f Complete refactor, to handle defaulting to www_view. 2010-08-10 10:27:45 -07:00
Colin Kuskie
c987747409 Explicit return of undef in the fall through case. Test for notFound now look for undef. Added POD. 2010-08-10 10:27:45 -07:00
Colin Kuskie
7e96b15141 Check for fragment existance. Clarify a test. 2010-08-10 10:27:44 -07:00
Colin Kuskie
a649816db8 handle query params before URLs 2010-08-10 10:27:44 -07:00
Colin Kuskie
cb4189b7da Initial pass at dispatch 2010-08-10 10:27:44 -07:00
Colin Kuskie
092e3502c2 Add stub dispatch sub to Asset.pm 2010-08-10 10:27:44 -07:00
Doug Bell
69b7fe0465 fix jsontable and use it for Calendar feeds 2010-07-13 13:12:47 -05:00
kimd
fa04d01518 o Allow return from photo edit view to gallery edit view (RFE 11571)
o Reject form submissions without image selected for upload in edit view of Photo asset
2010-06-09 15:28:42 -05:00
Doug Bell
cc87552a22 weaken all session refs 2010-06-01 16:23:48 -05:00
Doug Bell
09092a13b6 performance enhancement 2010-04-29 12:21:50 -05:00
Colin Kuskie
a0253fa599 Remove really old code from the old Rss From Parent asset. 2010-04-07 14:50:51 -07:00
Luke Robinson
017a9a7fc2 allow field overrides in the config file 2010-01-27 15:57:26 -08:00
Colin Kuskie
38dedef368 Remove debug from Asset.pm 2010-01-21 11:55:49 -08:00
Colin Kuskie
be7cd328cf Add POD for getIsa. Enforce a repeatable order for testing. 2010-01-12 11:07:25 -08:00
Colin Kuskie
27a7c099ba fix: getIsa returns undef for pending assets.
Add a new option flag to getIsa, called returnAll.  If returnAll = 1, then
assets are returned regardless of status.  Otherwise, getIsa will only
return committed assets.
2009-12-08 17:22:59 -08:00
Colin Kuskie
f96c2f7af1 Change assetManager search to work like assetManager manage. Fixes bug #11272
Force all actions to be routed through asset methods with Csrf and
permission checks.
2009-11-24 22:53:20 -08:00
Colin Kuskie
da6743c211 Add the code to actually generate the hexadecimal assetId for templates. 2009-11-24 22:53:12 -08:00
Colin Kuskie
74f7038ec1 Fix a bad comment. 2009-11-02 09:05:36 -08:00
Colin Kuskie
edcbd95250 Have getIsa throw exceptions, instead of croaking. 2009-10-27 13:49:13 -07:00
Colin Kuskie
5bd5bb48a9 Central cache access for Assets to handle SSL caching. Fixes bug #11131. 2009-10-20 15:15:38 -07:00
Colin Kuskie
2250ab0452 Fix a typo in Asset->checkView, which redirected assets in the clipboard to the trash instead. Fixes bug #11139. 2009-10-16 14:31:26 -07:00
Graham Knop
60a4a9b140 mark $session->datetime->time as deprecated and remove its use from core code 2009-10-05 20:56:37 -05:00
Colin Kuskie
9d438f7266 Fix bad URLs from happening when inheritUrlFromParent is used. Fixes bug #11011 2009-09-22 11:45:06 -07:00
Graham Knop
4fc3e55a3a remove debug logging statements 2009-09-22 11:28:13 -05:00
Colin Kuskie
3ff88580e8 Update POD for getIsa 2009-09-18 13:29:58 -07:00
Colin Kuskie
633f10d1b0 Remove debug code. 2009-09-11 08:25:37 -07:00
Colin Kuskie
2948e68781 Fix 10939, commit with approval breaks on assets with autocommit children, Post, Story, Wiki, Event, etc.
Encapsulate a new method to get a fresh asset from the db.  With tests.
2009-09-08 21:17:41 -07:00
Colin Kuskie
13cceb9c1a Check JSON deserialization, and make Assets do it. 2009-08-26 17:13:00 +00:00
Colin Kuskie
18a52b9aa2 Refactor out the JSON collateral code from FilePump/Bundle.pm to make an aspect
that can be used by assets, operations and any other modules in WebGUI.
2009-08-26 15:42:18 +00:00
Paul Driver
0a0ee3e6df Fixed semi-rare memory leak in getLineage 2009-08-19 20:32:05 +00:00
Colin Kuskie
1c9908f490 Encapsulate logic for determining if an SSL request has been made.
Refactor core modules to use that.
2009-08-19 18:25:00 +00:00
Graham Knop
4350966866 fixed: Copied assets don't always get URL extensions added 2009-08-19 16:28:38 +00:00
Colin Kuskie
1704618d6b Update the POD for checkView 2009-08-18 01:19:29 +00:00
Colin Kuskie
7a3213b373 Allow autocommit workflows to do apply (save & re-edit). 2009-08-12 17:35:36 +00:00
Graham Knop
686d79d76d small fix to regex for asset class names 2009-08-11 22:30:18 +00:00
Colin Kuskie
0bfc16bf9a Forward porting viewing pending assets in the trash and clipboard. Also
allowing restore of pending assets in the trash.
2009-08-06 17:56:56 +00:00
Colin Kuskie
183431b00a Remove debug code. 2009-07-08 05:18:11 +00:00
Colin Kuskie
b7358fbceb Forward port fix for updating property cache on editSave with autoCommit
so that the asset does not lie about its autocommit status.
2009-07-08 04:29:27 +00:00
Colin Kuskie
02e9354c15 Automatically add a token to any autogenerated form.
Refactor previous commits to take advantage of that.
2009-07-06 17:20:27 +00:00
Colin Kuskie
5e4db3adb4 Provide a framework for CSRF protection, with tests.
Add CSRF protection to Asset editSave, AssetManager, VersionTags and Group operations.
2009-07-06 16:58:57 +00:00
Colin Kuskie
f0eaa51d3a If adding an asset is added to another asset with an open version tag, put the
new asset in that version tag, too.
2009-06-23 19:32:40 +00:00
Colin Kuskie
cd0bf74fc7 Add a method that returns the URL for the assetManager. 2009-06-19 18:05:22 +00:00
Colin Kuskie
8be0a5c734 Add a progress bar for long running ops. First implementation is
with paste.  Also fix bugs with redirecting from the admin bar back to a
page instead of staying in the Asset Manager.
2009-06-18 19:39:35 +00:00
Colin Kuskie
801efdbda7 Encapsulate a method to get the list of content prototypes.
Performance improvements for the list retrieval.
2009-06-17 01:57:26 +00:00
Kaleb Murphy
9fbd21ee9e Removed debug line, whups. 2009-06-08 17:03:41 +00:00
Kaleb Murphy
34429aec62 Changed survey .js/css files to remove hardcoded absolute extras paths. 2009-06-08 16:58:44 +00:00