_extern_path in fileclient is broken #36371
Labels
Confirmed
Salt engineer has confirmed bug/feature - often including a MCVE
Core
relates to code central or existential to Salt
severity-medium
3rd level, incorrect or bad functionality, confusing and lacks a work around
Milestone
Description of Issue/Question
_extern_path constructs a path for the file cache but neglects url parts like query strings, fragments and so on.
Setup
Consider a state like:
This state fails because the url in
source
andsource_hash
are parsed and map to the same file. For determining the hash, the actual file is copied over the file containing the hash. Determining the hash then fails.Steps to Reproduce Issue
Create a state with sources only distinct by their query string.
Versions Report
Custom salt based on 2016.3 but the actual bug is still present in https://github.com/saltstack/salt/blob/develop/salt/fileclient.py#L712
Possible solution:
append query strings, fragments etc instead of
url_data.path
only. I can prepare a patch if this sounds reasonable.The text was updated successfully, but these errors were encountered: