-
Notifications
You must be signed in to change notification settings - Fork 107
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
Download and upload limit doesn't work on files app #2927
Comments
Hi thanks for the ticket.
Dir is there because we zip the dir before we download. Though it would seem now that this should apply to files as well.
The docs seem to be wrong - shouldn't be |
Hi @johrstrom
This seems to be the issue. I tried downloading a folder and size limits are enforced in that case, but not for single files. The parameter set by the environment variable ondemand/apps/dashboard/app/controllers/files_controller.rb Lines 11 to 90 in 883f0c8
which is defined also on the I'm not sure if adding file size checking code would be enough as in this case it would require also to disable the |
@johrstrom I see you have updated the docs to use the right path
|
Thanks! I'll get that fixed shortly. |
Hi,
We are using Open Ondemand 3.0.1 on centos7 installed with RPMs (ondemand-3.0.1-1.el7.x86_64) and we cannot limit the download size following the docs in
https://osc.github.io/ood-documentation/latest/customizations.html?highlight=download#set-download-limits
https://osc.github.io/ood-documentation/latest/customizations.html?highlight=download#set-upload-limits
This is how we have configured the download limit to 1GB:
But we can download files of any size. We have tried with different values for
OOD_DOWNLOAD_DIR_MAX
like1
,0
,10
,-1
but none works.While checking the docs we realized of two details which are inconsistent which we don't know if could be related:
why the variable name for upload is
FILE_UPLOAD_MAX
but for download isOOD_DOWNLOAD_DIR_MAX
? Why theDIR
in the var name?Why upload limit is defined in
/etc/ood/config/apps/shell/env
(shell app) and the download limit is defined in/etc/ood/config/apps/files/env
(files app) ?The text was updated successfully, but these errors were encountered: