Skip to content

ResteasyReactiveProcessor#setupEndpoints reports duplicate endpoints when a rest client matches a resource #44190

@DeMol-EE

Description

@DeMol-EE

Describe the bug

My project defines a resource (GET /hello) and a rest client to a remote service, which happens to have a similar resource (GET /hello). When running tests, ResteasyReactiveProcessor throws jakarta.enterprise.inject.spi.DeploymentException, as it believes that rest client is a duplicate of my own resource.

Expected behavior

No exception.

Actual behavior

jakarta.enterprise.inject.spi.DeploymentException is thrown.

How to Reproduce?

Clone the reproducer and run mvn test.

Output of uname -a or ver

Darwin 03ccaf0a-638d-4f7e-9e35-498cd06fb36a.fritz.box 24.1.0 Darwin Kernel Version 24.1.0: Thu Oct 10 21:03:15 PDT 2024; root:xnu-11215.41.3~2/RELEASE_ARM64_T6000 arm64

Output of java -version

OpenJDK 64-Bit Server VM Temurin-21.0.4+7 (build 21.0.4+7-LTS, mixed mode)

Quarkus version or git rev

3.15.1

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

Apache Maven 3.9.8 (36645f6c9b5079805ea5009217e36f2cffd34256)

Additional information

No response

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions