Project

General

Profile

Actions

Bug #68998

closed

File names of functional tests are too long when installing via composer on windows

Added by Thomas Prangenberg almost 9 years ago. Updated over 5 years ago.

Status:
Closed
Priority:
Should have
Assignee:
-
Category:
composer
Target version:
-
Start date:
2015-08-12
Due date:
% Done:

100%

Estimated time:
TYPO3 Version:
6.2
PHP Version:
Tags:
Complexity:
Is Regression:
No
Sprint Focus:

Description

The filenames of datasets for tests are pretty long, which makes it likely for them to exceed the maximum path length on windows.
Thus, causing it to be a real PITA to install Typo3 CMS via composer, for example when using vagrant on windows:

 [PharException]
 Extraction from phar "/vagrant/www/typo3test/html/typo3_src/e5e49e9051486449bfaa
 5e842a3a71ea.14" failed: Cannot extract "typo3_src-6.2.14/typo3/sysext/workspace
 s/Tests/Functional/DataHandling/IRRE/ForeignField/PublishAll/DataSet/createNLoca
 lizeParentContentNHotelNOfferChildrenNDiscardCreatedParent.csv", could not open
 for writing "/vagrant/www/typo3test/html/../Packages/Libraries/composer/9ef9abf2
 /typo3_src-6.2.14/typo3/sysext/workspaces/Tests/Functional/DataHandling/IRRE/For
 eignField/PublishAll/DataSet/createNLocalizeParentContentNHotelNOfferChildrenNDi
 scardCreatedParent.csv" 

Or when running composer directly from the windows host:

 [PharException]
 Extraction from phar "D:/vagrantbox/ubuntu-server-14-LTS/www/typo3test/html
 /typo3_src/355afb22645d419fbaca5944eb78270a.14" failed: Cannot extract "typ
 o3_src-6.2.14/typo3/sysext/workspaces/Tests/Fun..." to "D:\vagrantbox\ubunt
 u-server-14-LTS\www\typo3test\h...", extracted filename is too long for fil
 esystem

Of course, you could argue that the initial path to the document root is just too long and should be shorter. But there are still some really long paths, forcing you to use extremely short directory names - which basically makes it impossible to install the project directly to the shared directoy of the VM. As a workaround, you can install/update it further up on the hard drive, reducing the path length, then moving it to the actual document root.

But this is a pretty inconvenient way of maintaining your projects. Although this is not directly caused by typo3 but rather by the OS, is there any chance that the filenames could be at least shortened in some extend? (If you have any other solution, that would be fine by me.)

I've done some search for the most critical files that are causing problems for me:

./typo3_src/typo3/sysext/impexp/Tests/Functional/Import/PagesAndTtContentWithImages/DataSet/Assertion/importPagesAndRelatedTtContentWithImagesBut
WithoutStorageOnCaseInsensitiveFilesystems.csv
./typo3_src/typo3/sysext/impexp/Tests/Functional/ImportFromVersionFourDotFive/PagesAndTtContentWithRteImagesAndFileLink/DataSet/Assertion/importP
agesAndRelatedTtContentWithRteImagesAndFileLink.csv

Followed up by (more than 180 characters in path):

./typo3_src/typo3/sysext/impexp/Tests/Functional/Import/PagesAndTtContentWithImages/DataSet/Assertion/importPagesAndRelatedTtContentWithImagesBut
WithoutStorageOnCaseInsensitiveFilesystems.csv
./typo3_src/typo3/sysext/impexp/Tests/Functional/Import/PagesAndTtContentWithImages/DataSet/Assertion/importPagesAndRelatedTtContentWithImagesBut
WithoutStorageOnCaseSensitiveFilesystems.csv
./typo3_src/typo3/sysext/impexp/Tests/Functional/ImportFromVersionFourDotFive/GroupFileAndFileReferenceItemInFlexForm/DataSet/Assertion/importGro
upFileAndFileReferenceItemInFlexForm.csv
./typo3_src/typo3/sysext/impexp/Tests/Functional/ImportFromVersionFourDotFive/GroupFileAndFileReferenceItemInFlexForm/ImportExportXml/impexp-grou
p-file-and-file_reference-item-in-ff.xml
./typo3_src/typo3/sysext/impexp/Tests/Functional/ImportFromVersionFourDotFive/PagesAndTtContentWithRteImagesAndFileLink/DataSet/Assertion/importP
agesAndRelatedTtContentWithRteImagesAndFileLink.csv
./typo3_src/typo3/sysext/impexp/Tests/Functional/ImportFromVersionFourDotFive/PagesAndTtContentWithRteImagesAndFileLink/ImportExportXml/pages-and
-ttcontent-with-rte-image-n-file-link.xml

regards
Thomas


Related issues 2 (0 open2 closed)

Related to TYPO3 Core - Bug #70810: Error when installing TYPO3 7.5 via ComposerClosed2015-10-17

Actions
Related to TYPO3 Core - Task #65570: Reduce Github release archive sizeClosedMathias Brodala2015-03-06

Actions
Actions #1

Updated by Henri Nathanson over 8 years ago

Same here. Copied TYPO3 7.6.0 source on a Windows 7 SP1 system.

./typo3/sysext/impexp/Tests/Functional/Import/GroupFileAndFileReferenceItem/ImportExportXml/impexp-group-file-and-file_reference-item-on-pid-zero.xml

... in total 7 files. Hopefully only never run test files.

Tried to run this "hotfix": https://support.microsoft.com/en-us/kb/2891362 - but it did not work out. Files whos name is too long will not be copied.

It's not the too long file name, btw, but the too long path. Reducing path length of folder structure helps.

And, of course, switching away from Windows.

Actions #2

Updated by Gerrit Code Review over 8 years ago

  • Status changed from New to Under Review

Patch set 1 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/46357

Actions #3

Updated by Gerrit Code Review over 8 years ago

Patch set 2 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/46357

Actions #4

Updated by Gerrit Code Review over 8 years ago

Patch set 3 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/46357

Actions #5

Updated by Gerrit Code Review over 8 years ago

Patch set 4 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/46357

Actions #6

Updated by Gerrit Code Review over 8 years ago

Patch set 5 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/46357

Actions #7

Updated by Gerrit Code Review about 8 years ago

Patch set 6 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/46357

Actions #8

Updated by Gerrit Code Review almost 8 years ago

Patch set 7 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/46357

Actions #9

Updated by Gerrit Code Review almost 8 years ago

Patch set 8 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/46357

Actions #10

Updated by Gerrit Code Review almost 8 years ago

Patch set 9 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/46357

Actions #11

Updated by Gerrit Code Review almost 8 years ago

Patch set 1 for branch TYPO3_7-6 of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/48429

Actions #12

Updated by Gerrit Code Review almost 8 years ago

Patch set 2 for branch TYPO3_7-6 of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/48429

Actions #13

Updated by Mathias Brodala almost 8 years ago

  • Status changed from Under Review to Resolved
  • % Done changed from 0 to 100
Actions #14

Updated by Gerrit Code Review almost 8 years ago

  • Status changed from Resolved to Under Review

Patch set 3 for branch TYPO3_7-6 of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/48429

Actions #15

Updated by Gerrit Code Review almost 8 years ago

Patch set 4 for branch TYPO3_7-6 of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/48429

Actions #16

Updated by Mathias Brodala almost 8 years ago

  • Status changed from Under Review to Resolved
Actions #17

Updated by Gerrit Code Review almost 8 years ago

  • Status changed from Resolved to Under Review

Patch set 1 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/48432

Actions #18

Updated by Georg Ringer almost 8 years ago

  • Status changed from Under Review to Resolved
Actions #19

Updated by Gerrit Code Review almost 8 years ago

  • Status changed from Resolved to Under Review

Patch set 1 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/48436

Actions #20

Updated by Nicole Cordes almost 8 years ago

  • Status changed from Under Review to Resolved
Actions #21

Updated by Benni Mack over 5 years ago

  • Status changed from Resolved to Closed
Actions

Also available in: Atom PDF