Uploaded image for project: 'Camel'
  1. Camel
  2. CAMEL-13012

camel-olingo4 - AbstractFutureCallback generates NPE when response is a 401

    XMLWordPrintableJSON

    Details

    • Estimated Complexity:
      Unknown

      Description

      The class AbstractFutureCallback throws a NullPointerException when the server is secured with basic authentication and the camel client fails to provide the correct credentials.

      1. Implement an odata server secured with basic authentication;
      2. Crate a camel route to access the odata server but do not specify the correct authentication credentials;
      3. While fetching the Edm object from the endpoint proxy, an http client request is made using the provided parameters and of course fails with a 401 error.
      4. The response is processed by AbstractFutureCallback but responseContentType is null hence the NPE.

       

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                dmvolod Dmitry Volodin
                Reporter:
                phantomjinx Paul Richardson
              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:

                  Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0h
                  0h
                  Logged:
                  Time Spent - 20m
                  20m