Skip to content

fix(http): encode path parameter segments individually and reject dot segments - #144

Draft
tbarbugli wants to merge 1 commit into
mainfrom
tommaso/sec-2510-path-param-encoding
Draft

tbarbugli wants to merge 1 commit into
mainfrom
tommaso/sec-2510-path-param-encoding

Conversation

@tbarbugli

@tbarbugli tbarbugli commented Nov 24, 2026 •

Copy link
Copy Markdown
Member

Submit a pull request

CLA

  • I have signed the Stream CLA (required).
  • The code changes follow best practices
  • Code changes are tested (add some information if not applicable)

Description of the pull request

Linear: SEC-2510

  • Build request paths segment-by-segment using OkHttp HttpUrl.Builder.addPathSegment(...) so path parameter values are percent-encoded as single RFC 3986 path segments.
  • Reject null, empty strings, and dot segments (. / ..) in path parameters.
  • Add unit tests in StreamRequestPathEncodingTest.java.

Tested locally with ./gradlew spotlessCheck; opened as draft for CI to run ./gradlew test on JDK 21.

This branch has not been deployed

No deployments
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.

1 participant