Skip to content

Fix URL-encoded slashes in topic names #177

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

Conversation

EzraBrooks
Copy link

@EzraBrooks EzraBrooks commented Dec 26, 2024

Public API Changes

None?

Description

Technically, if your query parameter includes a /, it's supposed to be URL-encoded as %2F. I started using a library that makes this mandatory in my UI codebase, so web_video_server stopped working for me because it doesn't do any URL decoding - and my topics are called things like /wrist_camera/depth, thus becoming %2Fwrist_camera%2Fdepth.

A more complete solution here would be to actually decode the URL component entirely, but this unblocked me so I figured I'd open a PR just in case nobody wanted to introduce an additional library dependency to decode a URL, which I assume would be the case.

Copy link
Collaborator

@bjsowa bjsowa left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Could you make the linters happy?

@bjsowa bjsowa self-assigned this Feb 11, 2025
@bjsowa
Copy link
Collaborator

bjsowa commented Feb 11, 2025

@EzraBrooks Could you reformat the code with ament_uncrustify?

@EzraBrooks
Copy link
Author

Unfortunately don't have time to revisit this - the tooling change that necessitated the fix ended up being a dead end for other reasons for me. Sorry!

@EzraBrooks EzraBrooks closed this Feb 13, 2025
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.

2 participants