Uploaded image for project: 'jclouds'
  1. jclouds
  2. JCLOUDS-1347

Using BlobStore to copy a blob with non-ascii characters in its name fails to AWS signature error

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Open
    • Priority: Minor
    • Resolution: Unresolved
    • Affects Version/s: 2.0.2
    • Fix Version/s: None
    • Component/s: jclouds-blobstore
    • Labels:

      Description

      The copyBlob method with Amazon S3 provider fails if the copied blob name has for example a scandinavian letter รค included in its name. Some encoding must be missing which breaks the AWS request signature verification. Older methods like putBlob work fine with scandinavian letters.

      Stacktrace:

      org.jclouds.rest.AuthorizationException: The request signature we calculated does not match the signature you provided. Check your key and signing method.
      	at org.jclouds.aws.handlers.ParseAWSErrorFromXmlContent.refineException(ParseAWSErrorFromXmlContent.java:122) ~[sts-2.0.2.jar:2.0.2]
      	at org.jclouds.s3.handlers.ParseS3ErrorFromXmlContent.refineException(ParseS3ErrorFromXmlContent.java:97) ~[s3-2.0.2.jar:2.0.2]
      	at org.jclouds.aws.handlers.ParseAWSErrorFromXmlContent.handleError(ParseAWSErrorFromXmlContent.java:89) ~[sts-2.0.2.jar:2.0.2]
      	at org.jclouds.http.handlers.DelegatingErrorHandler.handleError(DelegatingErrorHandler.java:65) ~[jclouds-core-2.0.2.jar:2.0.2]
      	at org.jclouds.http.internal.BaseHttpCommandExecutorService.shouldContinue(BaseHttpCommandExecutorService.java:140) ~[jclouds-core-2.0.2.jar:2.0.2]
      	at org.jclouds.http.internal.BaseHttpCommandExecutorService.invoke(BaseHttpCommandExecutorService.java:109) ~[jclouds-core-2.0.2.jar:2.0.2]
      	at org.jclouds.rest.internal.InvokeHttpMethod.invoke(InvokeHttpMethod.java:90) ~[jclouds-core-2.0.2.jar:2.0.2]
      	at org.jclouds.rest.internal.InvokeHttpMethod.apply(InvokeHttpMethod.java:73) ~[jclouds-core-2.0.2.jar:2.0.2]
      	at org.jclouds.rest.internal.InvokeHttpMethod.apply(InvokeHttpMethod.java:44) ~[jclouds-core-2.0.2.jar:2.0.2]
      	at org.jclouds.rest.internal.DelegatesToInvocationFunction.handle(DelegatesToInvocationFunction.java:156) ~[jclouds-core-2.0.2.jar:2.0.2]
      	at org.jclouds.rest.internal.DelegatesToInvocationFunction.invoke(DelegatesToInvocationFunction.java:123) ~[jclouds-core-2.0.2.jar:2.0.2]
      	at com.sun.proxy.$Proxy202.copyObject(Unknown Source) ~[?:?]
      	at org.jclouds.s3.blobstore.S3BlobStore.copyBlob(S3BlobStore.java:322) ~[s3-2.0.2.jar:2.0.2]
      

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                Unassigned
                Reporter:
                joosa Joosa Kurvinen
              • Votes:
                2 Vote for this issue
                Watchers:
                5 Start watching this issue

                Dates

                • Created:
                  Updated: