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

camel-openstack - Cannot create ObjectStore V3 Client

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Minor
    • Resolution: Fixed
    • 3.8.0, 3.9.0
    • 3.7.5, 3.10.0
    • camel-openstack
    • None
    • Camel 3.8.0

      Ubuntu 20.04

      In my project I'm using camel in the "spring javaconfig" flavor.

    • Unknown

    Description

      I'm using camel-openstack component to retrieve files from an object storage (swift).

      The string I'm composing is the following:

      "openstack-swift:" + OS_AUTH_URL + "?" +
      "username=" + USER +
      "&password=" + PASSWORD +
      "&subsystem=objects" +
      "&domain=Default&operation=getAll"

      but I'm getting an exception: org.apache.camel.FailedToCreateProducerException.

      By digging in the source code I found the block that might be the problem (at least in my case) in class AbstractOpenstackEndpoint:

       

      private OSClient.OSClientV3 createV3Client() {

      {{ IOSClientBuilder.V3 builder = OSFactory.builderV3()}}
      {{ .endpoint(getHost()); builder.credentials(getUsername(), getPassword(), Identifier.byId(getDomain())); builder.scopeToProject(Identifier.byId(getProject())); if (getConfig() != null) {}}
      {{ builder.withConfig(getConfig()); }}}

      {{ return builder.authenticate();
      {color}}}}

      I managed to connect to swift by making these changes:

      - Identifier.byName(getDomain()) instead of byId

      - avoiding setting scopeToProject{{}}

       

      I am willing to create a pull request if it helps

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              gasdia73 roberto gasdia
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: