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)

CommentFileSizeAuthor
#3 features-ustar-1529066-3.patch3.09 KBmpotter

Comments

opensense’s picture

Hi,
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

phayes’s picture

What 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!

mpotter’s picture

StatusFileSize
new3.09 KB

Here 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.

mpotter’s picture

Status: Active » Needs review
mpotter’s picture

Status: Needs review » Fixed

Committed to 9acf9fb

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.

kalman.hosszu’s picture

Status: Closed (fixed) » Needs review

Hi,

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

mpotter’s picture

Status: Needs review » Closed (works as designed)

This 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.

andypost’s picture

Just wanna inform that module name for D8 could be limited to 40 chars. See #1852454: Restrict module and theme name lengths to 50 characters

lpalgarvio’s picture

i'm asking there for a minimum 48, optimal 63/64