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

private_download returns filepath list instead of file content #3407

Closed
sjanssen2 opened this issue May 15, 2024 · 3 comments
Closed

private_download returns filepath list instead of file content #3407

sjanssen2 opened this issue May 15, 2024 · 3 comments

Comments

@sjanssen2
Copy link
Contributor

Hi @antgonza,
when I generate a public link of an artifact in my Qiita instance:
image
I do get a link, but using this link does not return a zip archive with the files as content, but is a plain textfile that lists the filepaths from the filesystem, like:

- 346916 /protected/Demultiplexed/41/seqs.fastq.gz Demultiplexed/41/seqs.fastq.gz
- 69187 /protected/Demultiplexed/41/seqs.fasta.gz Demultiplexed/41/seqs.fasta.gz
- 425721 /protected/Demultiplexed/41/seqs.demux Demultiplexed/41/seqs.demux
- 22029 /protected/Demultiplexed/41/index.html Demultiplexed/41/index.html
- 6247 /protected/templates/6_prep_9_20240507-134645.txt mapping_files/41_mapping_file.txt

Since I read function names like _write_nginx_file_list in

def _write_nginx_file_list(self, to_download):
I figure this is probably due to a misconfiguration of my NGINX. Could you provide an example nginx config section?
Many thanks!

@sjanssen2
Copy link
Contributor Author

Or is it a nginx module that is missing? If so, which one do you use?

@antgonza
Copy link
Member

@sjanssen2
Copy link
Contributor Author

wasn't easy to compile / install a modified nginx version, therefore I left some notes to the INSTALL.md file in #3409 It works now on our instance :-)

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

No branches or pull requests

2 participants