oltu-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Antonio Sanso (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (OLTU-178) initial responseCode not set in the OAuthProblemException
Date Mon, 14 Sep 2015 09:22:45 GMT

    [ https://issues.apache.org/jira/browse/OLTU-178?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14743221#comment-14743221

Antonio Sanso commented on OLTU-178:

[~dplaindoux] any chance you can provide a unit test showing the issue ? :)

> initial responseCode not set in the OAuthProblemException
> ---------------------------------------------------------
>                 Key: OLTU-178
>                 URL: https://issues.apache.org/jira/browse/OLTU-178
>             Project: Apache Oltu
>          Issue Type: Bug
>          Components: oauth2-client
>    Affects Versions: oauth2-1.0.0
>            Reporter: Plaindoux
> In the {{OAuthClientValidator#validateErrorResponse()}} method the responseCode is not
set when a custom exception is built. As a consequence it always returns a bad request status
> This value is correctly set in the OAuthClientResponse but it's lost later in the call
stack. In order to fix it {{OAuthClientValidator#responseStatus(int)}} can be call in the
validateErrorResponse method.

This message was sent by Atlassian JIRA

View raw message