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

Issue with paranthesis in Get request PathVariable annotation #11231

Open
bsapkota100 opened this issue Oct 3, 2024 · 1 comment
Open

Issue with paranthesis in Get request PathVariable annotation #11231

bsapkota100 opened this issue Oct 3, 2024 · 1 comment

Comments

@bsapkota100
Copy link

bsapkota100 commented Oct 3, 2024

Expected Behavior

The Get request @PathVariable should support the url containing paranthesis

Actual Behaviour

Currently its not supported and throws "Page Not Found" exception from micronaut

Note: Used to support this behaviour in micronaut 3

Steps To Reproduce

Code I used

@get(
value = "/entities/{externalEntityRef}/document/{documentId}/name/{documentName}")
@nonnull
public Flowable<byte[]> getDocument(
@nonnull
@PathVariable
final String ref,
@nonnull @PathVariable @parameter(required = true, description = "The document id.")
final String documentId,
@nonnull @PathVariable @parameter(required = true, description = "The document name.")
final String documentName)

Get Request from postman

http://localhost:8080/entities/resource_58cda705-67ce-429a-885c-d48a12c833b9/document/c94fb4e8-2db9-41d6-9ed1-9c161ce9897e/name/Request%20a%20panel%20form%202024-09-30%2010-44 (1).pdf

Environment Information

JDK Version - 21

Example Application

No response

Version

4.5.0

@dstepanov
Copy link
Contributor

Please create a sample app

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

2 participants