Details
-
Bug
-
Status: Resolved
-
Minor
-
Resolution: Fixed
-
3.8.0, 3.9.0
-
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
- links to