You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@camel.apache.org by "ASF GitHub Bot (JIRA)" <ji...@apache.org> on 2019/01/09 13:14:00 UTC

[jira] [Work logged] (CAMEL-13012) camel-olingo4 - AbstractFutureCallback generates NPE when response is a 401

     [ https://issues.apache.org/jira/browse/CAMEL-13012?focusedWorklogId=183060&page=com.atlassian.jira.plugin.system.issuetabpanels:worklog-tabpanel#worklog-183060 ]

ASF GitHub Bot logged work on CAMEL-13012:
------------------------------------------

                Author: ASF GitHub Bot
            Created on: 09/Jan/19 13:13
            Start Date: 09/Jan/19 13:13
    Worklog Time Spent: 10m 
      Work Description: dmvolod commented on pull request #2702: CAMEL-13012: AbstractFutureCallback generates NPE when response is a 401
URL: https://github.com/apache/camel/pull/2702
 
 
   
 
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Issue Time Tracking
-------------------

            Worklog Id:     (was: 183060)
            Time Spent: 10m
    Remaining Estimate: 0h

> camel-olingo4 - AbstractFutureCallback generates NPE when response is a 401
> ---------------------------------------------------------------------------
>
>                 Key: CAMEL-13012
>                 URL: https://issues.apache.org/jira/browse/CAMEL-13012
>             Project: Camel
>          Issue Type: Bug
>          Components: camel-olingo4
>    Affects Versions: 2.21.0, 2.22.2, 2.23.0
>            Reporter: Paul Richardson
>            Assignee: Dmitry Volodin
>            Priority: Major
>          Time Spent: 10m
>  Remaining Estimate: 0h
>
> The class [AbstractFutureCallback|https://github.com/apache/camel/blob/master/components/camel-olingo4/camel-olingo4-api/src/main/java/org/apache/camel/component/olingo4/api/impl/AbstractFutureCallback.java] throws a NullPointerException when the server is secured with basic authentication and the camel client fails to provide the correct credentials.
>  # Implement an odata server secured with basic authentication;
>  # Crate a camel route to access the odata server but do not specify the correct authentication credentials;
>  # While fetching the Edm [object|https://github.com/apache/camel/blob/master/components/camel-olingo4/camel-olingo4-component/src/main/java/org/apache/camel/component/olingo4/Olingo4Endpoint.java#L166] from the endpoint proxy, an http client request is made using the provided parameters and of course fails with a 401 error.
>  # The response is processed by [AbstractFutureCallback|https://github.com/apache/camel/blob/master/components/camel-olingo4/camel-olingo4-api/src/main/java/org/apache/camel/component/olingo4/api/impl/AbstractFutureCallback.java#L60] but _responseContentType_ is null hence the NPE.
>  



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)