[23.0] Fix upload paramfile handling (for real user setups) #16504
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
the paramfile is created by
galaxy.tools.actions.upload_common.create_paramfile()
and stored indatabase/tmp/upload_params_TMPNAME
with mode 600 (it's created with tmpfile, i.e. the mode is independent of the used umask).galaxy.jobs.MinimalJobWrapper.__prepare_upload_paramfile()
copies this file to the jow working dir.Without the change
ToolEvaluator.build_param_dict()
sets the paramfile to the file in the jow working dir, but it is overwritten immediately by the value inincoming
.The original implementation should make no difference for non-real user setups, but real user setups break because the users can't read the paramfile in
database/tmp/
.I noticed this for an upload to a library (which apparently still uses the old upload tool and not data fetch).
Was thinking if its possible to fix the value in incoming, or just use a config file from the start. But I was unsure how and went for the quick and dirty fix.
I'm targeting 23.0 because it's the release I'm currently using.
How to test the changes?
(Select all options that apply)
License