You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
changed the file src\main\java\org\acme\getting\started\ReactiveGreetingResource.java
@Path("")
publicclassReactiveGreetingResource {
@InjectReactiveGreetingServiceservice;
@Path("{name}")
@POSTpublicUni<String> allPath(@RestPathStringname) {
System.out.println("I'm in all path method");
returnservice.greeting(name);
}
@Path("get/{name}")
publicUni<String> getPath(@RestPathStringname) {
System.out.println("I'm in get path method");
returnservice.greeting(name);
}
....
4. mvn quarkus:dev
5. excute curl to access the mapping uri a. curl -v -X GET http://localhost:8080/get/a
the result works as expecting, @path("get/{name}") was hit ,@path("{name}") was not hit.
but the returned status is 405 Method Not Allowed. it might also a issue.
b. curl -v -X POST http://localhost:8080/ge
the result works as expecting, @path("get/{name}") was not hit ,@path("{name}") was hit c. curl -v -X POST http://localhost:8080/getas
the result behaivor is confused. there are not one uri path to hit . returned 404
I think @path("{name}") shoud be hit d. curl -v -X POST http://localhost:8080/get
the result behaivor is also confused. there are not one uri path to hit . returned 404
I think @path("{name}") shoud be hit
e. added one more user case, it's more important. !!! NEW
curl -v -X POST http://localhost:8080/hello
the result is :HTTP/1.1 406 Not Acceptable
if you use the swagger ui in this example, it's same because it also use curl command.
But if you use Postman tool to access the url http://localhost:8080/hello, you get the right result!!! It blocked test!!
Output of uname -a or ver
No response
Output of java -version
No response
GraalVM version (if different from Java)
No response
Quarkus version or git rev
2.11.1.Final
Build tool (ie. output of mvnw --version or gradlew --version)
No response
Additional information
whole codes in src\main\java\org\acme\getting\started\ReactiveGreetingResource.java
Please ignore my previous comment (deleted it). The 404 error was coming from an 404 exception, which bubbled up the chain. Unfortunately it wasn't possible (at least to me) to distinguish it from a "404 page not found" case.
Describe the bug
the resteasy reactive @path mapping have confused behaivours in my cases.
please see the reproduced steps
Expected behavior
No response
Actual behavior
No response
How to Reproduce?
Steps:
....
4. mvn quarkus:dev
5. excute curl to access the mapping uri
a. curl -v -X GET http://localhost:8080/get/a
the result works as expecting, @path("get/{name}") was hit ,@path("{name}") was not hit.
but the returned status is 405 Method Not Allowed. it might also a issue.
curl -v -X POST http://localhost:8080/get/a. hava same return.
b. curl -v -X POST http://localhost:8080/ge
the result works as expecting, @path("get/{name}") was not hit ,@path("{name}") was hit
c. curl -v -X POST http://localhost:8080/getas
the result behaivor is confused. there are not one uri path to hit . returned 404
I think @path("{name}") shoud be hit
d. curl -v -X POST http://localhost:8080/get
the result behaivor is also confused. there are not one uri path to hit . returned 404
I think @path("{name}") shoud be hit
e. added one more user case, it's more important. !!! NEW
curl -v -X POST http://localhost:8080/hello
the result is :HTTP/1.1 406 Not Acceptable
if you use the swagger ui in this example, it's same because it also use curl command.
But if you use Postman tool to access the url http://localhost:8080/hello, you get the right result!!!
It blocked test!!
Output of
uname -a
orver
No response
Output of
java -version
No response
GraalVM version (if different from Java)
No response
Quarkus version or git rev
2.11.1.Final
Build tool (ie. output of
mvnw --version
orgradlew --version
)No response
Additional information
whole codes in src\main\java\org\acme\getting\started\ReactiveGreetingResource.java
The text was updated successfully, but these errors were encountered: