Skip to content
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

Disable compatibility with URL style paths #2912

Merged
merged 1 commit into from
Aug 27, 2023
Merged

Disable compatibility with URL style paths #2912

merged 1 commit into from
Aug 27, 2023

Conversation

scudette
Copy link
Contributor

@scudette scudette commented Aug 27, 2023

In the distant past we used to use url encoding to encode recursive pathspecs but this is problematic because url encoding is just not reliable enough. We have since moved to an OSPath object that properly encodes paths as JSON objects but there is still some backwards compatibility code in there that tries to detect a URL style path by looking for # (the fragment component of the url).

This is probably a good time to remove this compatibility code because we dont use urls for probably about 4-5 releases now.

Also sync latest KapeFiles Targets and fixed tests

Fixes: #2906

In the distant past we used to use url encoding to encode recursive
pathspecs but this is problematic because url encoding is just not
reliable enough. We have since moved to an OSPath object that properly
encodes paths as JSON objects but there is still some backwards
compatibility code in there that tries to detect a URL style path by
looking for # (the fragment component of the url).

This is probably a good time to remove this compatibility code because
we dont use urls for probably about 4-5 releases now.

Fixes: #2906
@scudette scudette merged commit b1cde98 into master Aug 27, 2023
1 check passed
@scudette scudette deleted the url_paths branch August 27, 2023 12:52
scudette added a commit to scudette/velociraptor that referenced this pull request Aug 28, 2023
In the distant past we used to use url encoding to encode recursive
pathspecs but this is problematic because url encoding is just not
reliable enough. We have since moved to an OSPath object that properly
encodes paths as JSON objects but there is still some backwards
compatibility code in there that tries to detect a URL style path by
looking for # (the fragment component of the url).

This is probably a good time to remove this compatibility code because
we dont use urls for probably about 4-5 releases now.

Also sync latest KapeFiles Targets and fixed tests

Fixes: Velocidex#2906
scudette added a commit that referenced this pull request Aug 28, 2023
In the distant past we used to use url encoding to encode recursive
pathspecs but this is problematic because url encoding is just not
reliable enough. We have since moved to an OSPath object that properly
encodes paths as JSON objects but there is still some backwards
compatibility code in there that tries to detect a URL style path by
looking for # (the fragment component of the url).

This is probably a good time to remove this compatibility code because
we dont use urls for probably about 4-5 releases now.

Also sync latest KapeFiles Targets and fixed tests

Fixes: #2906
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

File upload doesn't work with certain special characters in path
1 participant