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

Wrong encoding in the URI path of PF request #492

Open
osortega opened this issue Oct 16, 2024 · 0 comments
Open

Wrong encoding in the URI path of PF request #492

osortega opened this issue Oct 16, 2024 · 0 comments

Comments

@osortega
Copy link

Dev Tunnels service seems to be doing a wrong formatting of the URI when forwarding a request to the host.
This is an example of accessing a forwarded port with a path through a web client:

Image

Note that %40 is for some reason being unencoded and sent to the Codespace application as @, the %2F becomes %252F.

Repro steps:

  1. Create a codespace from https://github.com/github/codespaces-express
  2. Wait for app to start and forward port 3000
  3. Access the forwarded URL on a non-existing encoded path, for example: /one%2Ftwo
  4. Note error message Cannot GET /one%252Ftwo
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

No branches or pull requests

1 participant