Skip to content

Getting a io.micronaut.http.exceptions.UriSyntaxException when trying to build a URI with a url which have {} in the path #12578

@vickyrare

Description

@vickyrare

Expected Behavior

Getting a io.micronaut.http.exceptions.UriSyntaxException when trying to build a URI with

UriBuilder.of(url).build()

where url I am trying to build is https://abc.com/XXX/YYY;abcd=${ABCD};ab_cd=1

Error seems to be related to having {} in path.

Actual Behaviour

Throwing

Illegal character in path at index 35: https://abc.com/XXX/YYY;abcd=${ABCD};ab_cd=1

Steps To Reproduce

String url = "https://abc.com/XXX/YYY;abcd=${ABCD};ab_cd=1";

URI uri = UriBuilder.of(url).build();

Environment Information

MacOS 26.2
JDK 17

Example Application

No response

Version

4.10.1

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions