wso2 / product-apim

Welcome to the WSO2 API Manager source code! For info on working with the WSO2 API Manager repository and contributing code, click the link below.
http://wso2.github.io/
Apache License 2.0
846 stars 786 forks source link

'null' value in the authentication Response #12231

Closed Ramiiyan closed 2 years ago

Ramiiyan commented 2 years ago

Description:

'null' value is appeared in the authentication response when invoking the API with Authentication header.

API request (curl) :

curl -X GET 'https://localhost:8243/pizzashack/1.0.0/menu' \
--header 'accept: application/json' \
--header 'Authorization: Bearer '

Response :

"errors": [
   {
"code": "900902","details": "Missing Credentials", 
"detail_arguments": "Invalid Credentials. Make sure your API invocation call has a header: 'null : Bearer ACCESS_TOKEN' or 'null : Basic ACCESS_TOKEN' or 'apikey: API_KEY'"
}

Steps to reproduce:

Affected Product Version: 3.2.0

Ramiiyan commented 2 years ago

Thank you for the fix. We are closing this issue.

dushaniw commented 1 year ago

Fix not needed in master as not reproducible.