If you have a full-file path that is over 100 characters long and download the feature as a tar file, the file-paths / filenames get truncated.
This is because features is using the old-style tar format, not the, ahem, new (circa 1988) tar file format. See here for more info:
http://en.wikipedia.org/wiki/Tar_(file_format)
| Comment | File | Size | Author |
|---|---|---|---|
| #3 | features-ustar-1529066-3.patch | 3.09 KB | mpotter |
Comments
Comment #1
opensense commentedHi,
Anyone writing the patch may find these two links useful,
http://www.phpclasses.org/browse/file/21200.html
http://www.mkssoftware.com/docs/man4/tar.4.asp
Cheers
Vidhatanand
Comment #2
phayes commentedWhat I've done to get around this bug is to create the feature, download it, install it, then run "drush fu ", voila, your feature is fixed!
Comment #3
mpotter commentedHere is a patch that attempts to use the newer tar format. Tested it with both long and short filenames on MacOS. Needs testing with various untar utilities on Windows, etc.
Comment #4
mpotter commentedComment #5
lpalgarvio commenteda great +1 for this!!!
related duplicate issues:
#948228: Generated file with ".in" extension in order of ".inc"
#1316154: Features truncates file names without notification that the machine name is too long
#1664298: Form validation
http://en.wikipedia.org/wiki/Tar_(file_format)
Comment #6
mpotter commentedCommitted to 9acf9fb
Comment #8
kalman.hosszu commentedHi,
I tried #3 patch on macosx and MAMP but Features still cuts the long files.
Would you test it again? Maybe something is missing from the path.
Cheers,
Kalman
Comment #9
mpotter commentedThis is part of the 2.x branch of Features, so please download the entire new version and test it there rather than just trying to test the patch itself. Re-open this if it's still an issue.
Comment #10
andypostJust wanna inform that module name for D8 could be limited to 40 chars. See #1852454: Restrict module and theme name lengths to 50 characters
Comment #11
lpalgarvio commentedi'm asking there for a minimum 48, optimal 63/64