oltu-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Dominik Schürmann (JIRA) <j...@apache.org>
Subject [jira] [Updated] (OLTU-107) ResourceHeaderEndpoint should use getUri()
Date Thu, 16 May 2013 17:11:16 GMT

     [ https://issues.apache.org/jira/browse/OLTU-107?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Dominik Schürmann updated OLTU-107:
-----------------------------------

    Description: 
ResourceHeaderEndpoint integration test uses getDescription instead of getUri:
OAuthResponse oauthResponse = OAuthRSResponse
                .errorResponse(HttpServletResponse.SC_UNAUTHORIZED)
                .setRealm(Common.RESOURCE_SERVER_NAME)
                .setError(e.getError())
                .setErrorDescription(e.getDescription())
                .setErrorUri(e.getDescription())
                .buildHeaderMessage();

See patch.

  was:
Following Code uses getDescription instead of getUri:
OAuthResponse oauthResponse = OAuthRSResponse
                .errorResponse(HttpServletResponse.SC_UNAUTHORIZED)
                .setRealm(Common.RESOURCE_SERVER_NAME)
                .setError(e.getError())
                .setErrorDescription(e.getDescription())
                .setErrorUri(e.getDescription())
                .buildHeaderMessage();

See patch.

    
> ResourceHeaderEndpoint should use getUri()
> ------------------------------------------
>
>                 Key: OLTU-107
>                 URL: https://issues.apache.org/jira/browse/OLTU-107
>             Project: Apache Oltu
>          Issue Type: Bug
>          Components: oauth2-integration-tests
>    Affects Versions: 0.31
>         Environment: current svn trunk
>            Reporter: Dominik Schürmann
>            Priority: Trivial
>         Attachments: OLTU-107.patch
>
>
> ResourceHeaderEndpoint integration test uses getDescription instead of getUri:
> OAuthResponse oauthResponse = OAuthRSResponse
>                 .errorResponse(HttpServletResponse.SC_UNAUTHORIZED)
>                 .setRealm(Common.RESOURCE_SERVER_NAME)
>                 .setError(e.getError())
>                 .setErrorDescription(e.getDescription())
>                 .setErrorUri(e.getDescription())
>                 .buildHeaderMessage();
> See patch.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

Mime
View raw message