Uploaded image for project: 'eZ Publish / Platform'
  1. eZ Publish / Platform
  2. EZP-9132

eZ publish media uploads on windows 32 can go over the filepath+filename length limit

    XMLWordPrintable

Details

    • Icon: Bug Bug
    • Resolution: Obsolete
    • Icon: Medium Medium
    • None
    • 3.8.3
    • Misc
    • 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

      Attachments

        Activity

          People

            unknown unknown
            99956ba6-72ae-4637-adc3-7af60e90899c@accounts.ibexa.co Dimitar Christoff
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated: