-
Notifications
You must be signed in to change notification settings - Fork 284
Closed
Labels
backlogIssues to address with priority for current development goalsIssues to address with priority for current development goalsngclient
Description
Description of issue or feature request:
During matching of target file path and pathpattern in ngclient/updater.py we normalize the paths by removing the leading os separator.
# Make sure to strip any leading
# path separators so that a match is made.
# Example: "foo.tgz" should match with "/*.tgz".
if fnmatch.fnmatch(
target_filepath.lstrip(os.sep), pathpattern.lstrip(os.sep)
):Current behavior:
Normalize file path and pathpattern in case they start with os.sep
Expected behavior:
Define a valid target file path and pathpattern strings and reject everything else.
Don't support corner cases.
Metadata
Metadata
Assignees
Labels
backlogIssues to address with priority for current development goalsIssues to address with priority for current development goalsngclient