You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
file-names with non-latin characters are not displayed correctly with some tar tools
Steps to reproduce
Steps to reproduce the behavior:
create a folder
upload a file into the folder that contains non-latin in the file-name
download the complete folder using the archiver endpoint. Make sure Windows NT is not send in the User-Agent header. So on Windows the user-agent need to be faked or use curl
this should give a .tar file as download, if you are given a .zip file the user-agent header contains the string Windows NT
inspect the tar archive on Windows or unpack the archive using php:
<?php
$archive = new PharData('file.tar');
$archive->extractTo('/tmp/test');
Expected behavior
file-names should contain all non-latin characters
Actual behavior
This works fine with Linux tar command, but not with any Windows tool I tried or PHP
Instead I get all non-latin characters removed from the file-names and an additional folder called PaxHeaders.0, this folder contains text files, where the content is the correct name of the actual file
PaxHeaders.0: 27 path=my_data/öäü.txt
Additional context
This is ether a problem in how the tar files are constructed in ocis or some widely used library for clients has an issue
The text was updated successfully, but these errors were encountered:
Describe the bug
file-names with non-latin characters are not displayed correctly with some tar tools
Steps to reproduce
Steps to reproduce the behavior:
Windows NT
is not send in theUser-Agent
header. So on Windows the user-agent need to be faked or usecurl
.tar
file as download, if you are given a.zip
file the user-agent header contains the stringWindows NT
Expected behavior
file-names should contain all non-latin characters
Actual behavior
This works fine with Linux
tar
command, but not with any Windows tool I tried or PHPInstead I get all non-latin characters removed from the file-names and an additional folder called
PaxHeaders.0
, this folder contains text files, where the content is the correct name of the actual filePaxHeaders.0
:27 path=my_data/öäü.txt
Additional context
This is ether a problem in how the tar files are constructed in ocis or some widely used library for clients has an issue
The text was updated successfully, but these errors were encountered: