Skip to content

Commit

Permalink
Obtain xml import url path without query param (#402)
Browse files Browse the repository at this point in the history
Fixed problem evaluating WSDL files with xml imports containing relative URLs with query params. Code was incorrectly returning full uri rather than just the path and subsequently adding the path a second time. This resulted in the import not being found.
  • Loading branch information
bpierce-gaig authored Apr 25, 2024
1 parent 752586c commit 141bf5e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion xmlschema/locations.py
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ def from_uri(cls, uri: str) -> 'LocationPath':

parts = urlsplit(uri)
if not parts.scheme:
return cls(uri)
return cls(parts.path)
elif parts.scheme in DRIVE_LETTERS and len(parts.scheme) == 1:
return LocationWindowsPath(uri) # Eg. k:/Python/lib/....
elif parts.scheme != 'file':
Expand Down

0 comments on commit 141bf5e

Please sign in to comment.