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

OpenAPI without jandex index ignores application path annotation on explicit apps. #1542

Closed
tomas-langer opened this issue Mar 19, 2020 · 0 comments · Fixed by #1555
Closed
Assignees
Labels
2.x Issues for 2.x version branch bug Something isn't working MP open-api P1

Comments

@tomas-langer
Copy link
Member

tomas-langer commented Mar 19, 2020

When I create an application with an @ApplicationPath and I register it with MicroProfile Server as follows:

Server server = Server.builder()
                .port(7001)
                .applications(new JaxRsApplicationNoCdi())

When I run the server with Jandex index, everything works fine.
When I run the server without Jandex index, the application path is ignored, and the output prints the resource methods on / instead of the actual application path defined by the annotation.

Works fine in both cases for applications discovered by CDI.

@tomas-langer tomas-langer added bug Something isn't working MP open-api 2.x Issues for 2.x version branch labels Mar 19, 2020
@tomas-langer tomas-langer changed the title OpenAPI ignores methods without Path annotation OpenAPI without jandex index ignores application path annotation on explicit apps. Mar 19, 2020
@m0mus m0mus added the P1 label Mar 19, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
2.x Issues for 2.x version branch bug Something isn't working MP open-api P1
Projects
Archived in project
Development

Successfully merging a pull request may close this issue.

3 participants