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

Some paths do not match even if the should #34362

Closed
codemaker219 opened this issue Jun 28, 2023 · 1 comment
Closed

Some paths do not match even if the should #34362

codemaker219 opened this issue Jun 28, 2023 · 1 comment
Labels
kind/bug Something isn't working triage/duplicate This issue or pull request already exists

Comments

@codemaker219
Copy link

codemaker219 commented Jun 28, 2023

Describe the bug

Check is two Controller:

A.java

@Path("/")
public class A {

    @Path("/a/a")
    @GET
    @Produces(MediaType.TEXT_PLAIN)
    public String hello() {
        return "A called";
    }
}

B.java

@Path("/a")
public class B {

    @Path("/b")
    @GET
    @Produces(MediaType.TEXT_PLAIN)
    public String hello() {
        return "B called";
    }
}

This two controller provide two endpoints GET /a/a and GET /a/b They are shown in swagger and also under /q/dev-v1/io.quarkus.quarkus-resteasy-reactive/endpoints.

But you cant call /a/a. But you can call /a/b

Expected behavior

You Should be able to call GET /a/a and GET /a/b .

Actual behavior

You can call GET /a/b .
You can not call GET /a/a -> 404 Resource not found.

How to Reproduce?

No response

Output of uname -a or ver

Linux xxx 5.15.0-75-generic #82-Ubuntu SMP Tue Jun 6 23:10:23 UTC 2023 x86_64 x86_64 x86_64 GNU/Linux

Output of java -version

openjdk version "19.0.2" 2023-01-17 OpenJDK Runtime Environment (build 19.0.2+7-44) OpenJDK 64-Bit Server VM (build 19.0.2+7-44, mixed mode, sharing)

GraalVM version (if different from Java)

No response

Quarkus version or git rev

3.1.2.Final

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

3.9.3

Additional information

No response

@codemaker219 codemaker219 added the kind/bug Something isn't working label Jun 28, 2023
@geoand
Copy link
Contributor

geoand commented Jun 28, 2023

This is essentially a duplicate of #26496

@geoand geoand closed this as not planned Won't fix, can't repro, duplicate, stale Jun 28, 2023
@geoand geoand added the triage/duplicate This issue or pull request already exists label Jun 28, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/bug Something isn't working triage/duplicate This issue or pull request already exists
Projects
None yet
Development

No branches or pull requests

2 participants