Commit graph

67 commits

Author SHA1 Message Date
Paul Driver
181f21a0b7 WebGUI::Event 2011-05-31 16:13:09 -05:00
Colin Kuskie
4a58f574b1 Provide a method to see if a storage location exists. This is handy for testing. 2011-04-08 16:26:16 -07:00
Colin Kuskie
73261e4651 Batch of test cleaups for leaking objects. 2011-04-04 18:57:50 -07:00
Doug Bell
55920f59e0 fix #11964 files show in trash and old revisions 2010-11-16 17:54:08 -06:00
Colin Kuskie
13a222f6ce Block files with dangerous names from coming in via Storage untar. 2010-08-11 15:46:02 -07:00
Colin Kuskie
9f724a7193 block the same set of extensions in http, scalar and file uploads in Storage. 2010-08-11 14:56:16 -07:00
Colin Kuskie
38788f156c Use a safe file for doing upload and addFile tests. 2010-08-10 21:10:46 -07:00
Colin Kuskie
6c3369d0cb Revert "use temp config file for testing"
This reverts commit 9b725c6d42.
2010-06-14 15:19:54 -07:00
Colin Kuskie
4f9051a1c2 Update hexId created from non-GUID storageId. 2010-06-14 11:29:20 -07:00
Graham Knop
9b725c6d42 use temp config file for testing 2010-06-10 10:09:54 -05:00
Graham Knop
fe1ac66cca remove useless test END blocks 2010-06-10 10:09:45 -05:00
kimd
660d036f8a Gallery: Automatically adjust orientation of images based on EXIF data (RFE11498) 2010-04-30 10:37:46 -05:00
Graham Knop
8206aeaec5 enhance format of .wgaccess files to provide security for Gallery files 2010-04-15 11:38:58 -05:00
Colin Kuskie
c15a49be8c Make Storage gracefully handle having its directory being nuked. Fixes bug #11077 2009-10-08 13:39:16 -07:00
Colin Kuskie
0e94d42034 Fix bug 10916: files prefixed with thumb- cause errors.
Rename files that are uploaded to remove thumb-.
2009-10-06 10:08:43 -07:00
Graham Knop
2a1f038ba1 small cleanups to storage test 2009-10-05 14:26:59 -05:00
Graham Knop
67b729fee0 use note instead of diag in tests for non-error debug output 2009-09-23 08:29:05 -05:00
Colin Kuskie
683752354d File::Temp::tempdir does not exist. 2009-09-20 22:16:56 -07:00
Graham Knop
45603a026f fix Storage tests for limited permissions 2009-09-20 14:18:03 -05:00
Colin Kuskie
6634f3e337 Fix broken tests that were creating odd directories. 2009-08-24 03:39:04 +00:00
Colin Kuskie
9259e1db23 And restore the original method, and add tests to catch the approximation in Session/DateTime.t instead
of relying on Asset/Story.t
2009-07-24 00:12:56 +00:00
Colin Kuskie
a3d8c390bd Fix CDN working with GUID style, vs hex style, storage locations.
Add tests for geting a GUID storage location.
2009-07-23 21:51:45 +00:00
Colin Kuskie
0af4acdfad Allow storage locations to have subdirectories, just to support the ZipArchive. 2009-07-21 21:44:31 +00:00
Colin Kuskie
1d3d61e16f Add hex generation code to tempspace Storage objects. Otherwise, they return undef. 2009-07-02 16:01:03 +00:00
Colin Kuskie
67df78608d Add a method to Storage to return the hex value of the storageId.
Add a test for it.
Convert Storage to use that everywhere, instead of calculating and recalculating it.
2009-05-20 18:37:00 +00:00
Randall Schwartz
2fc4f3b54d CDN: perltidy on new/changed code 2009-05-14 00:35:41 +00:00
Randall Schwartz
acd3fded45 Content Delivery Network (CDN) - optional, for either uploads only or both uploads & extras (rfe 9134) 2009-05-13 21:12:05 +00:00
Colin Kuskie
703bce933c Remove debugging code. 2009-03-06 15:40:59 +00:00
Graham Knop
24da723629 updating copyright year 2009-02-20 23:47:30 +00:00
Graham Knop
6810712f6e remove remnants of caseInsensitiveOS in tests 2008-12-10 05:45:34 +00:00
Graham Knop
d6e00cab05 improved performance of file uploads and changed format of created uploads locations, avoiding case sensitivity problems 2008-11-12 01:17:33 +00:00
Graham Knop
8533cf8ae8 fixing test warnings, Storage should always return to the correct directory 2008-02-29 07:00:29 +00:00
Colin Kuskie
ed017f6007 Forward port diagnostics and $/ bug fix from 7.4 and Commerce branches. 2008-02-18 18:30:29 +00:00
Colin Kuskie
04da356822 take more advantage of getTestCollateralPath file concat 2008-02-09 04:44:15 +00:00
Colin Kuskie
b4483947cf take advantage of getTestCollateralPath concatenating files to the path for you 2008-02-09 04:25:07 +00:00
Colin Kuskie
227be31be5 By default, every Session created by WebGUI::Test will have
a PseudoRequest object, instead of being blank.  Update
Storage.t to test this.
2008-02-09 04:22:39 +00:00
JT Smith
93b5ca16e4 updating copyright year 2008-02-07 23:28:18 +00:00
Colin Kuskie
182f3ecfae increment plan for TODO test 2007-12-19 17:00:05 +00:00
Doug Bell
f8901ffe34 added TODO test to ensure that working with WebGUI::Storage doesnt chdir away 2007-12-18 21:26:14 +00:00
Doug Bell
53a1cbc7c2 fixes to the Gallery 2007-12-18 21:17:44 +00:00
Doug Bell
5222ad6be1 merged with SVN HEAD 2007-12-18 12:22:37 +00:00
Doug Bell
82e9bf8448 Finished? Ready for merge at least. 2007-12-17 22:22:06 +00:00
Colin Kuskie
41a8524daf remove mocking, since we new use PseudoRequest 2007-11-22 20:52:26 +00:00
Colin Kuskie
fd8cff2b8f coverage tests for getFileIconUrl for WebGUI::Storage.pm 2007-11-12 20:58:21 +00:00
Colin Kuskie
1cf78f5321 Finish up the file upload handling by PseudoRequest. If you
call $pseudoRequest->uploadFiles with a list of filenames, it will populate
the upload method with upload objects, so that Storage->getFileFromFormPost
will have an object with all the right methods.
t/Storage.t tests this incidently.  It occurs to me that we need tests
for our PseudoRequest module, and it needs POD, and it should probably
be rewritten using Class::InsideOut for good form.
2007-11-10 00:47:17 +00:00
Colin Kuskie
4de53b2de9 enable testing of $session->request->uploads through WebGUI::PseudoRequest. Now we need a good utility method for sending a list of files to a sub and having it return a list of filehandles to those files 2007-11-10 00:02:44 +00:00
Colin Kuskie
99d7037532 Fix a bug where storage objects allow deleting of files in other storage objects. 2007-07-23 16:24:37 +00:00
Colin Kuskie
83310ba311 update copyright on tests 2007-07-07 03:56:44 +00:00
Colin Kuskie
2a39d6a828 check part1, part2 and file path when caseInsensitiveOS=1 2007-07-05 23:09:25 +00:00
Colin Kuskie
36ed3f9209 Add a basic test for getId.
Add tests for Storage when caseInsensitiveOS=1
2007-07-05 02:45:33 +00:00