Details
-
Task
-
Status: Resolved
-
Major
-
Resolution: Fixed
-
None
-
None
Description
A resource call in the client demo fails with an NPE on the validator.
2016-02-29 21:17:30.066:WARN::/get_resource java.lang.NullPointerException at org.apache.oltu.oauth2.client.response.OAuthClientResponse.validate(OAuthClientResponse.java:80) at org.apache.oltu.oauth2.client.response.OAuthClientResponse.init(OAuthClientResponse.java:71) at org.apache.oltu.oauth2.client.response.OAuthClientResponseFactory.createCustomResponse(OAuthClientResponseFactory.java:63) at org.apache.oltu.oauth2.client.URLConnectionClient.execute(URLConnectionClient.java:115) at org.apache.oltu.oauth2.client.OAuthClient.resource(OAuthClient.java:81) at org.apache.oltu.oauth2.client.demo.controller.ResourceController.authorize(ResourceController.java:57) ...
To reproduce:
- start the demo client
- do the authorize flow for Facebook
- do a resource call for https://graph.facebook.com/me
The HTTP request towards Facebook succeeds, but it response cannot be converted into an OAuthResourceResponse.
The client demo uses the URLConnectionClient implementation for HttpClient.
Attachments
Issue Links
- is broken by
-
OLTU-185 OAuthClientResponse lack headers access to be used for correct RESTful client implementation
- Resolved