The artifactory archive entry download API systematically fails for a tar.gz archive
The whole archive can be downloaded https://jcr.mydomain/artifactory/osb-cmdb-builds/manual_report.tgz but individual files at https://jcr.mydomain/artifactory/osb-cmdb-builds/manual_report.tgz!/osb-cmdb/build/reports/tests/test/index.html fail with message Unable to find zip resource: 'osb-cmdb/build/reports/tests/test/index.html' using full URI '/artifactory/osb-cmdb-builds/manual_report.tgz!/osb-cmdb/build/reports/tests/test/index.html'
The artifactory repository browser however properly displays content of the archive.
This was reproduced using the docker image jfrog/artifactory-jcr
version:7.3.2 and tar
$ tar --version
tar (GNU tar) 1.29
$ cat /etc/lsb-release
DISTRIB_ID=Ubuntu
DISTRIB_RELEASE=18.04
DISTRIB_CODENAME=bionic
DISTRIB_DESCRIPTION="Ubuntu 18.04.4 LTS"
Am I missing something ? Is this an artifactory bug fixed in a later release ?
Here are steps to reproduce the issue:
$ tar cvfz manual_report2.tgz ./osb-cmdb/build/reports/tests/test/index.html
$ tar tvfz manual_report2.tgz
-rw-r--r-- guillaume/guillaume 4193 2020-04-01 22:25 ./osb-cmdb/build/reports/tests/test/index.html
See screenshots browsing screenshot entry download screenshot
As well as the sample tgz on google drive as suggested in https://meta.stackexchange.com/questions/47689/how-can-i-attach-a-file-to-a-post
Workaround: use the zip or tar format instead of tar.gz format.