[
https://issues.apache.org/jira/browse/JCLOUDS-382?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13825265#comment-13825265
]
uma maheswari mohandoss commented on JCLOUDS-382:
-------------------------------------------------
I think the signature formation is wrong and hence resulting in"[401
Unauthorized: Temp URL invalid]" . Here is the log/error.
********************************************
[TestNG] Running:
C:\Users\umamahem\AppData\Local\Temp\testng-eclipse-122379061\testng-customsuite.xml
Generate GET Temp URL
GET
https://region-b.geo-1.objects.hpcloudsvc.com/v1/10980892616038/hello-blobstore/object.txt?temp_url_sig=10980892616038%3Apaastest_prod%3A6d10ec6d982400073d70d2c797dfe7e2cbd201ba&temp_url_expires=1384773362Generate
PUT Temp URL
PUT
https://region-b.geo-1.objects.hpcloudsvc.com/v1/10980892616038/hello-blobstore/object.txt?temp_url_sig=10980892616038%3Apaastest_prod%3A25cdbd5f66c4edcc05a6f6697a4f33f3a7ab939e&temp_url_expires=1384778765[ObjectInfoImpl{name=stringObject1,
container=hello-hp,
uri=https://region-b.geo-1.objects.hpcloudsvc.com/v1/10980892616038/hello-hp/stringObject1,
hash=[71, 19, -8, 7, 54, -64, -4, -45, -67, -86, 13, 27, -29, 42, -24, -20],
bytes=37, contentType=application/unknown, lastModified=Mon Nov 18 16:33:11 IST
2013}]
[[type=BLOB, id=null, name=junk1, location=null,
uri=https://region-b.geo-1.objects.hpcloudsvc.com/v1/10980892616038/hello-blobstore/junk1,
userMetadata={}]]
PASSED: testListContainer
PASSED: testSimpleUploadThroughBlobStore
PASSED: testUploadThroughHPApi
FAILED: generateGetTempURL
org.jclouds.rest.AuthorizationException: command: GET
https://region-b.geo-1.objects.hpcloudsvc.com/v1/10980892616038/hello-blobstore/object.txt?temp_url_sig=10980892616038%3Apaastest_prod%3A6d10ec6d982400073d70d2c797dfe7e2cbd201ba&temp_url_expires=1384773362
HTTP/1.1 failed with response: HTTP/1.1 401 Unauthorized; content: [401
Unauthorized: Temp URL invalid
]
at
org.jclouds.openstack.swift.handlers.ParseSwiftErrorFromHttpResponse.handleError(ParseSwiftErrorFromHttpResponse.java:61)
at
org.jclouds.http.handlers.DelegatingErrorHandler.handleError(DelegatingErrorHandler.java:67)
at
org.jclouds.http.internal.BaseHttpCommandExecutorService.shouldContinue(BaseHttpCommandExecutorService.java:180)
at
org.jclouds.http.internal.BaseHttpCommandExecutorService.invoke(BaseHttpCommandExecutorService.java:150)
at
org.jclouds.rest.internal.InvokeSyncToAsyncHttpMethod.invoke(InvokeSyncToAsyncHttpMethod.java:131)
at
org.jclouds.rest.internal.InvokeSyncToAsyncHttpMethod.apply(InvokeSyncToAsyncHttpMethod.java:97)
at
org.jclouds.rest.internal.InvokeSyncToAsyncHttpMethod.apply(InvokeSyncToAsyncHttpMethod.java:58)
at
org.jclouds.rest.internal.DelegatesToInvocationFunction.handle(DelegatesToInvocationFunction.java:157)
at
org.jclouds.rest.internal.DelegatesToInvocationFunction.invoke(DelegatesToInvocationFunction.java:124)
at com.sun.proxy.$Proxy62.invoke(Unknown Source)
at
com.hpcloud.jclouds.cloud_v1.tests.compute.GenerateTempURL.generateGetTempURL(GenerateTempURL.java:127)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:606)
at
org.testng.internal.MethodInvocationHelper.invokeMethod(MethodInvocationHelper.java:84)
at org.testng.internal.Invoker.invokeMethod(Invoker.java:714)
at org.testng.internal.Invoker.invokeTestMethod(Invoker.java:901)
at org.testng.internal.Invoker.invokeTestMethods(Invoker.java:1231)
at
org.testng.internal.TestMethodWorker.invokeTestMethods(TestMethodWorker.java:127)
at org.testng.internal.TestMethodWorker.run(TestMethodWorker.java:111)
at org.testng.TestRunner.privateRun(TestRunner.java:767)
at org.testng.TestRunner.run(TestRunner.java:617)
at org.testng.SuiteRunner.runTest(SuiteRunner.java:334)
at org.testng.SuiteRunner.runSequentially(SuiteRunner.java:329)
at org.testng.SuiteRunner.privateRun(SuiteRunner.java:291)
at org.testng.SuiteRunner.run(SuiteRunner.java:240)
at org.testng.SuiteRunnerWorker.runSuite(SuiteRunnerWorker.java:52)
at org.testng.SuiteRunnerWorker.run(SuiteRunnerWorker.java:86)
at org.testng.TestNG.runSuitesSequentially(TestNG.java:1224)
at org.testng.TestNG.runSuitesLocally(TestNG.java:1149)
at org.testng.TestNG.run(TestNG.java:1057)
at org.testng.remote.RemoteTestNG.run(RemoteTestNG.java:111)
at org.testng.remote.RemoteTestNG.initAndRun(RemoteTestNG.java:204)
at org.testng.remote.RemoteTestNG.main(RemoteTestNG.java:175)
Caused by: org.jclouds.http.HttpResponseException: command: GET
https://region-b.geo-1.objects.hpcloudsvc.com/v1/10980892616038/hello-blobstore/object.txt?temp_url_sig=10980892616038%3Apaastest_prod%3A6d10ec6d982400073d70d2c797dfe7e2cbd201ba&temp_url_expires=1384773362
HTTP/1.1 failed with response: HTTP/1.1 401 Unauthorized; content: [401
Unauthorized: Temp URL invalid
]
at
org.jclouds.openstack.swift.handlers.ParseSwiftErrorFromHttpResponse.handleError(ParseSwiftErrorFromHttpResponse.java:55)
... 34 more
FAILED: generatePutTempURL
org.jclouds.rest.AuthorizationException: request: PUT
https://region-b.geo-1.objects.hpcloudsvc.com/v1/10980892616038/hello-blobstore/object.txt?temp_url_sig=10980892616038%3Apaastest_prod%3A25cdbd5f66c4edcc05a6f6697a4f33f3a7ab939e&temp_url_expires=1384778765
HTTP/1.1 [This object will be public for 10 minutes.] failed with response:
HTTP/1.1 401 Unauthorized
at
org.jclouds.openstack.swift.handlers.ParseSwiftErrorFromHttpResponse.handleError(ParseSwiftErrorFromHttpResponse.java:61)
at
org.jclouds.http.handlers.DelegatingErrorHandler.handleError(DelegatingErrorHandler.java:67)
at
org.jclouds.http.internal.BaseHttpCommandExecutorService.shouldContinue(BaseHttpCommandExecutorService.java:180)
at
org.jclouds.http.internal.BaseHttpCommandExecutorService.invoke(BaseHttpCommandExecutorService.java:150)
at
org.jclouds.rest.internal.InvokeSyncToAsyncHttpMethod.invoke(InvokeSyncToAsyncHttpMethod.java:131)
at
org.jclouds.rest.internal.InvokeSyncToAsyncHttpMethod.apply(InvokeSyncToAsyncHttpMethod.java:97)
at
org.jclouds.rest.internal.InvokeSyncToAsyncHttpMethod.apply(InvokeSyncToAsyncHttpMethod.java:58)
at
org.jclouds.rest.internal.DelegatesToInvocationFunction.handle(DelegatesToInvocationFunction.java:157)
at
org.jclouds.rest.internal.DelegatesToInvocationFunction.invoke(DelegatesToInvocationFunction.java:124)
at com.sun.proxy.$Proxy62.invoke(Unknown Source)
at
com.hpcloud.jclouds.cloud_v1.tests.compute.GenerateTempURL.generatePutTempURL(GenerateTempURL.java:104)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:606)
at
org.testng.internal.MethodInvocationHelper.invokeMethod(MethodInvocationHelper.java:84)
at org.testng.internal.Invoker.invokeMethod(Invoker.java:714)
at org.testng.internal.Invoker.invokeTestMethod(Invoker.java:901)
at org.testng.internal.Invoker.invokeTestMethods(Invoker.java:1231)
at
org.testng.internal.TestMethodWorker.invokeTestMethods(TestMethodWorker.java:127)
at org.testng.internal.TestMethodWorker.run(TestMethodWorker.java:111)
at org.testng.TestRunner.privateRun(TestRunner.java:767)
at org.testng.TestRunner.run(TestRunner.java:617)
at org.testng.SuiteRunner.runTest(SuiteRunner.java:334)
at org.testng.SuiteRunner.runSequentially(SuiteRunner.java:329)
at org.testng.SuiteRunner.privateRun(SuiteRunner.java:291)
at org.testng.SuiteRunner.run(SuiteRunner.java:240)
at org.testng.SuiteRunnerWorker.runSuite(SuiteRunnerWorker.java:52)
at org.testng.SuiteRunnerWorker.run(SuiteRunnerWorker.java:86)
at org.testng.TestNG.runSuitesSequentially(TestNG.java:1224)
at org.testng.TestNG.runSuitesLocally(TestNG.java:1149)
at org.testng.TestNG.run(TestNG.java:1057)
at org.testng.remote.RemoteTestNG.run(RemoteTestNG.java:111)
at org.testng.remote.RemoteTestNG.initAndRun(RemoteTestNG.java:204)
at org.testng.remote.RemoteTestNG.main(RemoteTestNG.java:175)
Caused by: org.jclouds.http.HttpResponseException: request: PUT
https://region-b.geo-1.objects.hpcloudsvc.com/v1/10980892616038/hello-blobstore/object.txt?temp_url_sig=10980892616038%3Apaastest_prod%3A25cdbd5f66c4edcc05a6f6697a4f33f3a7ab939e&temp_url_expires=1384778765
HTTP/1.1 [This object will be public for 10 minutes.] failed with response:
HTTP/1.1 401 Unauthorized
at
org.jclouds.openstack.swift.handlers.ParseSwiftErrorFromHttpResponse.handleError(ParseSwiftErrorFromHttpResponse.java:55)
... 34 more
===============================================
Default test
Tests run: 5, Failures: 2, Skips: 0
===============================================
===============================================
Default suite
Total tests run: 5, Failures: 2, Skips: 0
===============================================
[TestNG] Time taken by org.testng.reporters.EmailableReporter2@7f2b86b2: 16 ms
[TestNG] Time taken by org.testng.reporters.XMLReporter@17a220d7: 14 ms
[TestNG] Time taken by [FailedReporter passed=0 failed=0 skipped=0]: 22 ms
[TestNG] Time taken by org.testng.reporters.jq.Main@48507269: 48 ms
[TestNG] Time taken by org.testng.reporters.SuiteHTMLReporter@16352be6: 744 ms
[TestNG] Time taken by org.testng.reporters.JUnitReportReporter@4ec57293: 13 ms
*********************************************
> PUT and GET tempurl gives 401 unauthorized URL.
> -----------------------------------------------
>
> Key: JCLOUDS-382
> URL: https://issues.apache.org/jira/browse/JCLOUDS-382
> Project: jclouds
> Issue Type: Bug
> Components: jclouds-core
> Reporter: uma maheswari mohandoss
> Attachments: GenerateTempURL.java
>
>
> Use JClouds version 1.6.2-incubating and generate the PUT and GET tempurl,
> the temp_url_signature has some issue and always fails with "401
> unauthorized temp url" error.
> Usually the tempurl signature format is
> <projectid>:<accesskey>:<encodedsignature>
--
This message was sent by Atlassian JIRA
(v6.1#6144)