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

Bug Report: OpenAPI not accessible if default web module is set/FISH-1531 #5247

Open
simdevmon opened this issue May 18, 2021 · 2 comments
Open
Assignees
Labels
Status: Accepted Confirmed defect or accepted improvement to implement, issue has been escalated to Platform Dev Type: Bug Label issue as a bug defect

Comments

@simdevmon
Copy link

simdevmon commented May 18, 2021

Description


If a web application is set as a default web module, the /openapi endpoint becomes unavailable.

Expected Outcome

I would expect to still be able to access the /openapi endpoint.

Current Outcome

If the default web module is set, the /openapi endpoint will return a HTTP Status 404 - Not Found.

Steps to reproduce

  • Enable OpenAPI asadmin set-openapi-configuration --corsHeaders=false --securityenabled=false --roles=microprofile --virtualServers= --enabled=true --target=server-config
  • Deploy a simple application with a JAX-RS endpoint, which is visible in openapi
  • OpenAPI is accessible at e.g. http://localhost:8080/openapi
  • Set the simple application as the default web application asadmin set configs.config.server-config.http-service.virtual-server.server.default-web-module=<application-name>
  • OpenAPI is not available anymore and e.g. http://localhost:8080/openapi returns 404

Environment

  • Distribution: Payara 5.2021.3 Full Profile
  • JDK Version: OpenJDK 11.0.11
  • Operating System: Ubuntu 20.04 LTS
@simdevmon simdevmon added the Type: Bug Label issue as a bug defect label May 18, 2021
@AlanRoth AlanRoth added the Status: Open Issue has been triaged by the front-line engineers and is being worked on verification label May 20, 2021
@shub8968 shub8968 self-assigned this Jun 24, 2021
@shub8968
Copy link
Contributor

Hi @simdevmon

I am able to reproduce this issue. I have raised an internal issue with JIRA FISH-1531. Thanks. It may take a while to fix the issue. You are free to submit a PR to fix this issue if you feel confident to do so.

@shub8968 shub8968 changed the title Bug Report: OpenAPI not accessible if default web module is set Bug Report: OpenAPI not accessible if default web module is set/FISH-1531 Jun 30, 2021
@shub8968 shub8968 added Status: Accepted Confirmed defect or accepted improvement to implement, issue has been escalated to Platform Dev and removed Status: Open Issue has been triaged by the front-line engineers and is being worked on verification labels Jun 30, 2021
@simdevmon
Copy link
Author

Any update on this issue? It is still existing in Payara 6.2023.5

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Status: Accepted Confirmed defect or accepted improvement to implement, issue has been escalated to Platform Dev Type: Bug Label issue as a bug defect
Projects
None yet
Development

No branches or pull requests

3 participants