Skip to content

Issues with ; in query params causes URIs without a scheme for Quarkus REST #47785

@shawkins

Description

@shawkins

Describe the bug

With a ; included in the params, the matrix param logic in ResteasyReactiveRequestContext.initPathSegments will set the path, but not the scheme and and authority. If you then directly or indirectly call ResteasyReactiveRequestContext.getAbsoluteURI the constructed absoluteUri will lack a scheme and authority.

See keycloak/keycloak#39608 - our assumption that the scheme will be present is causing an NPE.

Expected behavior

ResteasyReactiveRequestContext.getAbsoluteURI will be complete.

Actual behavior

ResteasyReactiveRequestContext.getAbsoluteURI is missing information.

How to Reproduce?

Can provide a unit test in the coming days if needed.

Output of uname -a or ver

No response

Output of java -version

No response

Quarkus version or git rev

3.20

Build tool (ie. output of mvnw --version or gradlew --version)

No response

Additional information

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions