Uploaded image for project: 'Moodle'
  1. Moodle
  2. MDL-64235

Problem with long file names and zip archives under Windows

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Open
    • Priority: Minor
    • Resolution: Unresolved
    • Affects Version/s: 3.6
    • Fix Version/s: None
    • Component/s: Files API, Libraries, Privacy
    • Labels:
      None
    • Affected Branches:
      MOODLE_36_STABLE

      Description

      This was reported @ MDL-64220, but left out from the solution there because it requires serious analysis and can be, simply, an OS limit. Better handle it separately. Environment: Windows 10 x64 and git bash:

      A) 1 error, maybe related to MDL-62617

      There was 1 error:
       
      1) moodle_content_writer_test::test_export_user_preference_long_filename with data set "More than 100 characters" ('Etiam sit amet dui vel leo bl...scipit', 'Etiam sit amet dui vel leo bl...a5030d', 'value')
      ZipArchive::close(): Read error: Bad file descriptor
       
      C:\Users\stronk7\git_moodle\integration\lib\filestorage\zip_archive.php:224
      C:\Users\stronk7\git_moodle\integration\lib\filestorage\zip_packer.php:154
      C:\Users\stronk7\git_moodle\integration\privacy\classes\local\request\moodle_content_writer.php:679
      C:\Users\stronk7\git_moodle\integration\privacy\tests\moodle_content_writer_test.php:1136
      C:\Users\stronk7\git_moodle\integration\privacy\tests\moodle_content_writer_test.php:1088
      C:\Users\stronk7\git_moodle\integration\lib\phpunit\classes\advanced_testcase.php:80
       
      To re-run:
       vendor/bin/phpunit -v "moodle_content_writer_test" privacy/tests/moodle_content_writer_test.php
      

      This is about to investigate the issue and see it there is any solution that can be implemented our side.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                Unassigned
                Reporter:
                stronk7 Eloy Lafuente (stronk7)
                Participants:
                Component watchers:
                Matteo Scaramuccia, Jake Dallimore, Jun Pataleta, Ryan Wyllie, Amaia Anabitarte, Bas Brands, Carlos Escobedo, Sara Arjona (@sarjona), Víctor Déniz Falcón, Andrew Nicols, Mathew May, Michael Hawkins, Shamim Rezaie, Simey Lameze
              • Votes:
                1 Vote for this issue
                Watchers:
                6 Start watching this issue

                Dates

                • Created:
                  Updated: