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

Problem with zip_packer under Windows

    XMLWordPrintable

Details

    Description

      It seems that something new has recently landed and it's causing windows unit tests to, consistently, fail.

      Link: https://travis-ci.com/github/stronk7/moodle/jobs/482318828
      Error:

      There was 1 error:
       
      1) core_files_zip_packer_testcase::test_zip_entry_path_having_folder_ending_with_dot
      ZipArchive::extractTo(C:\Users\travis\roots\phpunitdata/localcache\dfb17e68-bf52-49d6-a8fc-4fa3d2bc002d\5e4ea5a9-6314-4ae1-b2dc-e34954fcfc62/target/README.): failed to open stream: Permission denied
       
      C:\Users\travis\build\stronk7\moodle\lib\filestorage\zip_archive.php:276
      C:\Users\travis\build\stronk7\moodle\lib\filestorage\zip_packer.php:371
      C:\Users\travis\build\stronk7\moodle\lib\filestorage\tests\zip_packer_test.php:295
      C:\Users\travis\build\stronk7\moodle\lib\phpunit\classes\advanced_testcase.php:80
      To re-run:
       vendor/bin/phpunit --verbose "core_files_zip_packer_testcase" lib/filestorage/tests/zip_packer_test.php
      

      This may be related with the changes accepted this week @ MDL-70631

      Attachments

        Issue Links

          Activity

            People

              mudrd8mz David Mudrák (@mudrd8mz)
              stronk7 Eloy Lafuente (stronk7)
              Jordi Pujol-Ahulló Jordi Pujol-Ahulló
              Victor Déniz Falcón Victor Déniz Falcón
              CiBoT CiBoT
              Matteo Scaramuccia, David Woloszyn, Huong Nguyen, Jake Dallimore, Meirza, Michael Hawkins, Raquel Ortega, Safat Shahin, Stevani Andolo
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:
                10/May/21

                Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0 minutes
                  0m
                  Logged:
                  Time Spent - 1 day, 6 hours
                  1d 6h