elife-xpub
elife-xpub copied to clipboard
Control Chars in Filename
We've had a problem in production with the following e52f80a3-dee5-461d-ba2f-1f79a1be1cc3-meca.zip
Turns out the reference in the xml file had control chars in (see below) and the actual file in the zip does not when extracted but does in the zip file (see screenshot)
(base) ~/Documents/xml-fail-e52f $ cat manifest.xml |grep filen| hd
00000000 20 20 20 20 20 20 20 20 3c 66 69 6c 65 6e 61 6d | <filenam|
00000010 65 3e 54 61 1d 63 68 1d 69 77 61 6e 61 20 5f 65 |e>Ta.ch.iwana _e|
00000020 4c 69 66 65 5f 69 6e 69 74 69 61 6c 2d 73 75 62 |Life_initial-sub|
00000030 6d 69 73 73 69 6f 6e 32 2e 70 64 66 3c 2f 66 69 |mission2.pdf</fi|
(base) ~/Documents/xml-fail-e52f $ ls T* | hd
00000000 54 61 63 68 69 77 61 6e 61 20 5f 65 4c 69 66 65 |Tachiwana _eLife|
00000010 5f 69 6e 69 74 69 61 6c 2d 73 75 62 6d 69 73 73 |_initial-submiss|
00000020 69 6f 6e 32 2e 70 64 66 0a |ion2.pdf.|
00000029