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

olingo4 component serviceUri not set

    XMLWordPrintableJSON

Details

    • Unknown

    Description

      I think there is a bug in the olingo4 component/endpoint. The (1) states that the serviceUri can be used as a query hence

      from("olingo4://read/Products?serviceUri=" + serviceUri);

      However, adding this to a simple test script (2), this results in an exception (3) that the serviceUri has not been set. Digging into the code it seems that the Olingo4Configuration is applied to the endpoint but only has the apiName and methodName set. Consequently, when the call configuration.getServiceUri() is called, the value is null.

       

      [1] https://github.com/apache/camel/blob/master/components/camel-olingo4/camel-olingo4-component/src/main/docs/olingo4-component.adoc
      [2] https://gist.github.com/phantomjinx/085df03915c5813a1f04b32e09d00049#filesimpleolingo4test-java
      [3] https://gist.github.com/phantomjinx/085df03915c5813a1f04b32e09d00049#gistcomment-2784671

      Attachments

        Issue Links

          Activity

            People

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

              Dates

                Created:
                Updated:
                Resolved: