-
Notifications
You must be signed in to change notification settings - Fork 18
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
Issue with imported files "below" or "cousins" of the primary descriptor #243
Comments
Yes, nasty problem. Apart from the fact that it's impossible to recreate the original directory tree of a workflow with multiple descriptors (or, more generally, files, as non-descriptor files are affected, too), allowing ".." may have security implications as well. Might be hard to come up with a non-breaking fix here, though given that the relative path behavior seems to be only explained in the descriptions, we might be able to just get away with rephrasing these such that the anchoring for relative paths should be the nearest parent directory for all files (e.g., the repository root). It'd still break existing clients though... But if we're discussing breaking changes, we could also re-design the whole file handling to address the following issues:
One possibility could be to do away with the For example, I could hit |
for the non-breaking change discussionStill thinking it through, but one option that we have is to alter the behaviour of the zipped endpoint for the breaking change discussionA few new endpoints does seem less disruptive to backwards compatibility, thoughts @patmagee ? |
I also think that the minor/non-breaking changes are acceptable, given that there probably aren't that many TRS services and clients around. As for a re-design: Having a new |
See discussion at dockstore/dockstore#5594
We believe this is a general issue for TRS.
i.e. workflows with a structure like
Affects
"/tools/{id}/versions/{version_id}/{type}/descriptor/{relative_path}":
┆Issue is synchronized with this Jira Story
┆Project Name: Zzz-ARCHIVE GA4GH tool-registry-service
┆Issue Number: TRS-67
The text was updated successfully, but these errors were encountered: