Skip to content

Remove parent-dir references from paths provided to pipeline steps - #9734

Merged
taylorsilva merged 1 commit into
masterfrom
path-parsing
Sep 25, 2026
Merged

taylorsilva merged 1 commit into
masterfrom
path-parsing

Conversation

@taylorsilva

Copy link
Copy Markdown
Member

Changes proposed by this PR

The task, set_pipeline, and load_var steps all take in a user-defined file path that should point to an input volume and file on that volume. The logic for parsing this path is consolidated into a helper function and made more robust by handling edge cases such as:

  • an absolute path is provided
  • a path with parent-dir references ../ is provided

In both these cases, we remove the offending characters so we end up with a clean relative path.

The `task`, `set_pipeline`, and `load_var` steps all take in a
user-defined file path that should point to an input volume and file on
that volume. The logic for parsing this path is consolidated into a
helper function and made more robust by handling edge cases such as:

- an absolute path is provided
- a path with parent-dir references `../` is provided

In both these cases, we remove the offending characters so we end up
with a clean relative path.

Signed-off-by: Taylor Silva <[email protected]>
@taylorsilva
taylorsilva merged commit fd8ced5 into master Sep 25, 2026
11 checks passed
@taylorsilva
taylorsilva deleted the path-parsing branch September 25, 2026 20:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

Archived in project

Development

Successfully merging this pull request may close these issues.

1 participant