You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@cxf.apache.org by "Jordi Torrente (JIRA)" <ji...@apache.org> on 2012/07/17 15:04:33 UTC
[jira] [Created] (CXF-4429) Incorrect response check
Jordi Torrente created CXF-4429:
-----------------------------------
Summary: Incorrect response check
Key: CXF-4429
URL: https://issues.apache.org/jira/browse/CXF-4429
Project: CXF
Issue Type: Bug
Components: JAX-RS Security
Affects Versions: 2.7.0
Reporter: Jordi Torrente
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)) {
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] [Resolved] (CXF-4429) Incorrect response check
Posted by "Sergey Beryozkin (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/CXF-4429?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Sergey Beryozkin resolved CXF-4429.
-----------------------------------
Resolution: Fixed
Fix Version/s: 2.7.0
2.6.2
Assignee: Sergey Beryozkin
thanks for catching it
> Incorrect response check
> -------------------------
>
> Key: CXF-4429
> URL: https://issues.apache.org/jira/browse/CXF-4429
> Project: CXF
> Issue Type: Bug
> Components: JAX-RS Security
> Affects Versions: 2.7.0
> Reporter: Jordi Torrente
> Assignee: Sergey Beryozkin
> Labels: oauth2
> Fix For: 2.6.2, 2.7.0
>
>
> 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)) {
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] [Updated] (CXF-4429) Incorrect response check
Posted by "Jordi Torrente (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/CXF-4429?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Jordi Torrente updated CXF-4429:
--------------------------------
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)) {
was:
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)) {
> Incorrect response check
> -------------------------
>
> Key: CXF-4429
> URL: https://issues.apache.org/jira/browse/CXF-4429
> Project: CXF
> Issue Type: Bug
> Components: JAX-RS Security
> Affects Versions: 2.7.0
> Reporter: Jordi Torrente
> Labels: oauth2
>
> 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)) {
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] [Updated] (CXF-4429) Incorrect response check
Posted by "Jordi Torrente (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/CXF-4429?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Jordi Torrente updated CXF-4429:
--------------------------------
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)) {
was:
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)) {
> Incorrect response check
> -------------------------
>
> Key: CXF-4429
> URL: https://issues.apache.org/jira/browse/CXF-4429
> Project: CXF
> Issue Type: Bug
> Components: JAX-RS Security
> Affects Versions: 2.7.0
> Reporter: Jordi Torrente
> Labels: oauth2
>
> 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)) {
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] [Updated] (CXF-4429) Incorrect response check
Posted by "Jordi Torrente (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/CXF-4429?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Jordi Torrente updated CXF-4429:
--------------------------------
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)) {
was:
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)) {
> Incorrect response check
> -------------------------
>
> Key: CXF-4429
> URL: https://issues.apache.org/jira/browse/CXF-4429
> Project: CXF
> Issue Type: Bug
> Components: JAX-RS Security
> Affects Versions: 2.7.0
> Reporter: Jordi Torrente
> Labels: oauth2
>
> 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)) {
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira