Open
Description
Describe the bug
A service that requires an httpBasicPassTicket authentication scheme.
If the service configuration is incomplete (without APPLID in this case), requests to this service will fail to generate the passticket with a NullPointerException.
This Exception is not currently shown in logs. The following is the response body from Gateway, which does not provide enough details to troubleshoot.
{
"messages": [
{
"messageType": "ERROR",
"messageNumber": "ZWEAM701E",
"messageContent": "The request to the URL '/serviceId/api/v1/service/path' has failed: ZuulException: caused by: NullPointerException: ",
"messageAction": "Refer to specific exception details for troubleshooting. Create an issue with this message.",
"messageReason": "The request failed because of an internal error.",
"messageKey": "org.zowe.apiml.common.internalRequestError"
}
]
}
Adding log entries in InternalServerErrorController
could remediate this last part.
It should be a clearer error if it's a service misconfiguration.
Steps to Reproduce
- Onboard service that requires httpBasicPassTickets without the APPLID configuration parameter.
- Try calling the service through the gateway with token or client certificate authentication
Expected behavior
The request should still fail, but the error code should be more clear about the misconfiguration.
The logs should show the NPE stack traces.
Details
- Version and build number: nightly build v2
- Test environment: z/OS 2.5
Metadata
Metadata
Assignees
Type
Projects
Status
Unplanned Bugs