Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

tar archive encodes file-names wrongly #2743

Closed
individual-it opened this issue Nov 10, 2021 · 2 comments
Closed

tar archive encodes file-names wrongly #2743

individual-it opened this issue Nov 10, 2021 · 2 comments
Labels

Comments

@individual-it
Copy link
Member

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:

  1. create a folder
  2. upload a file into the folder that contains non-latin in the file-name
  3. 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
  4. this should give a .tar file as download, if you are given a .zip file the user-agent header contains the string Windows NT
  5. 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

utf-archive

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

@kulmann
Copy link
Member

kulmann commented Nov 10, 2021

I think this belongs into the cs3org/reva repo where the archiver is implemented.

@individual-it
Copy link
Member Author

moved to cs3org/reva#2255

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants