Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Fixed
-
2.7
-
Novice
Description
When an access token response is processed inside OAuthClientUtils class (method getAccessToken), the code checks if the key "OAuthConstants.ERROR_KEY" is present in the returned entity map, but the map's method used is "containsValue()" instead of "containsKey()":
source line:
} else if (400 == response.getStatus() && map.containsValue(OAuthConstants.ERROR_KEY))
{ should be: }else if (400 == response.getStatus() && map.containsKey(OAuthConstants.ERROR_KEY)) {