Details
-
Bug
-
Resolution: Obsolete
-
Medium
-
None
-
3.8.3
-
None
-
Version: 3.8.3
PHP Version: 4.4.4
Webserver: Apache 2.0.59
Database:
Description
eZ fails to keep file path / name length under the maxium allowed length for windows of 256 chars. As a result, uploaded media files fail to be referenced, copied, chmoded and so forth.
A typical example of an uploaded image that later on failed in being copied and used:
C:\ezpublish\ezpublish\var\usr\storage\images\tools\resources\products\landing_products\bobtestingclub\just_bob_the_testing_engine_free_tester_case_free_book_free_poster\397199-17-eng-GB\just_bob_the_testing_engine_free_tester_case_free_book_free_poster.gif
Although this behavious will be inherent to windows alone, eZ could check the absolute file path + file name string length and force them to be under the safe length for the OS and either refuse to accept filenames over the allowed length or truncate them as needed.
An extract from the .NET documentation:
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/fileio/fs/naming_a_file.asp
Testing OS: Windows 2k3 R2 SP 1, drive is NTFS