Bug Report: Unable to completely disable openapi and wadl #6721
Labels
Status: Open
Issue has been triaged by the front-line engineers and is being worked on verification
Type: Bug
Label issue as a bug defect
Brief Summary
I'm trying to completely disable openapi and wadl using this asadmin command:
But wadl endpoints are not disabled correctly and openapi endpoint is giving error 403 instead of 404.
Expected Outcome
If I disable openapi the expected behaviour is that all openapi paths return a 404 error. These paths must not exist if openapi feature is disabled:
I think that actual 403 error is giving to much information in terms of security. An attacker can know that we are using Payara Micro.
Current Outcome
openapi endpoint:
Gives:
wadl endpoint:
Gives:
And application wadl:
Is giving error 500:
Reproducer
I'm trying to completely disable openapi and wadl using
--prebootcommandfile
with this asadmin command:And disabling wadl on application:
Operating System
Ubuntu 22.04.4 LTS
JDK Version
Zulu17.48+15-CA (build 17.0.10+7-LTS)
Payara Distribution
Payara Micro
The text was updated successfully, but these errors were encountered: