-
Notifications
You must be signed in to change notification settings - Fork 149
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
xrdcp remote zip extraction not working #922
Comments
(with v4.9.0) |
Hi Mario, From what I see this is a compressed ZIP file:
Currently, we support only extraction from ZIP files without decompression. This has been implemented with ROOT files in mind, which use ZIP format only for bundling (without compression). If there is a strong desire on your side please create a feature request for decompression in GitHub. Cheers, |
@mlassnig : I suppose I can close this issue? |
@simonmichal David told me he had a chat with @abh3 during our comp.workshop and it was mentioned that it actually should support compressed zips (i.e., bug?). For now it's fine, we can leave it like this and we use uncompressed zips only. It would be good to understand though if support for compressed zips will be supported some time in the future? |
@mlassnig : it must have been a miscommunication, by design xrootd client does not support decompression. We can add support for decompression however we need to discuss first how to prioritize this task and also which compression method do we want to support:
Michal |
Ok, it's certainly not urgent in any way. I'll discuss with the team and come back to you. For now you can close this ticket. Thanks a lot! |
OK, let me know once you've discussed it internally. Michal |
Hm, would it perhaps be feasible to throw at least an error if the file format is not handled (compressed/encrypted) by the client? |
@jmuf : sure, but lets wait for RUCIO team so we have a clear idea when we would like to support decompression. |
We discussed it briefly today, and in general we will continue to use uncompressed zips. A nice error message and exitcode would be very appreciated though. |
@mlassnig : absolutely, this we can have for the next release, alternatively I could add a zip header to the compressed data and then I think it should be possible to pipe xrdcp with something like funzip in order to decompress the data, let me know if this sounds like a good idea? |
Hi,
xrdcp root://eosatlas.cern.ch//eos/atlas/atlasscratchdisk/rucio/user/dcameron/test.zip test.zip
and then manualunzip
correctly extracts two scripts.if we use
xrdcp root://eosatlas.cern.ch//eos/atlas/atlasscratchdisk/rucio/user/dcameron/test.zip?xrdcl.unzip=writefiles.sh writefiles.sh
, the extracted file is binary and scrambled.Cheers,
Mario
The text was updated successfully, but these errors were encountered: