You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@camel.apache.org by Christoph Schmid <se...@s-c-h.de> on 2014/05/02 14:04:31 UTC
camel-jclouds parameter "operation" ignored
Hi all,
I am running jclouds in a servicemix 4.5.3 environment (=> camel 2.7.10),
camel-jclouds (=> jclouds-1.4.0)
I tried to access a blob using simiar code to
http://camel.apache.org/jclouds.html
from("direct:start")
.to("jclouds:blobstore:aws-s3" +
"?operation=GET" +
"&container=mycontainer" +
"&blobName=myblob");
PUT does work, GET is ignored (returns nothing).
Using the header CamelJcloudsOperation=GET doesn't work either.
Am I using it wrong? Or is there any additional Documentation for this
component?
Thank you for your time
Christoph
--
View this message in context: http://camel.465427.n5.nabble.com/camel-jclouds-parameter-operation-ignored-tp5750789.html
Sent from the Camel - Users mailing list archive at Nabble.com.
Re: camel-jclouds parameter "operation" ignored
Posted by Claus Ibsen <cl...@gmail.com>.
Hi
Thanks. I logged a ticket to not forget about this
https://issues.apache.org/jira/browse/CAMEL-7477
On Fri, May 2, 2014 at 3:52 PM, Christoph Schmid <se...@s-c-h.de> wrote:
> Ok, I found the problem. camel-jclouds is checking inf the parameter
> CamelJcloudsOperation is 'CamelJcloudsGet', not 'GET', same for the
> uri-operation. So it should have been
>
>
> from("direct:start")
> .to("jclouds:blobstore:aws-s3" +
> "?operation=CamelJcloudsGet" +
> "&container=mycontainer" +
> "&blobName=myblob");
>
> or
>
> from("direct:start)
> .setHeader(CamelJcloudsOperation, constant("CamelJcloudsGet"))
> .to("jclouds:blobstore:aws-s3" +
> "?container=mycontainer" +
> "&blobName=myblob");
>
> So i guess there is an error in the component description at
> http://camel.apache.org/jclouds.html. Is there a way to inform the website
> admin?
>
> Best regards
> Chris
>
>
>
> --
> View this message in context: http://camel.465427.n5.nabble.com/camel-jclouds-parameter-operation-ignored-tp5750789p5750791.html
> Sent from the Camel - Users mailing list archive at Nabble.com.
--
Claus Ibsen
-----------------
Red Hat, Inc.
Email: cibsen@redhat.com
Twitter: davsclaus
Blog: http://davsclaus.com
Author of Camel in Action: http://www.manning.com/ibsen
hawtio: http://hawt.io/
fabric8: http://fabric8.io/
Re: camel-jclouds parameter "operation" ignored
Posted by Christoph Schmid <se...@s-c-h.de>.
Ok, I found the problem. camel-jclouds is checking inf the parameter
CamelJcloudsOperation is 'CamelJcloudsGet', not 'GET', same for the
uri-operation. So it should have been
from("direct:start")
.to("jclouds:blobstore:aws-s3" +
"?operation=CamelJcloudsGet" +
"&container=mycontainer" +
"&blobName=myblob");
or
from("direct:start)
.setHeader(CamelJcloudsOperation, constant("CamelJcloudsGet"))
.to("jclouds:blobstore:aws-s3" +
"?container=mycontainer" +
"&blobName=myblob");
So i guess there is an error in the component description at
http://camel.apache.org/jclouds.html. Is there a way to inform the website
admin?
Best regards
Chris
--
View this message in context: http://camel.465427.n5.nabble.com/camel-jclouds-parameter-operation-ignored-tp5750789p5750791.html
Sent from the Camel - Users mailing list archive at Nabble.com.