SignedURL authentication and PUT Method

167 views
Skip to first unread message

Droidment

unread,
Jun 22, 2012, 3:55:07 PM6/22/12
to gs-dis...@googlegroups.com
Hello,

I am using the SignedURL Authentication. I am able to get the list of contents in the bucket but unable to PUT to it. If I add the name of the new file to the canonical resource, for eg. /<Existing bucket>/<new file name> , I get a SignatureDoesnotMatch error. The canonical resource in the error message shows one /<Existing bucket>.

If I remove the file name and try to add the file anyway, I get a MalformedBucketConfiguration. 

The documentation for SignedUrl Authentication doesnot indicate PUT method is supported. Is it not?

Thanks
Droidment

Srikanth Pagadala

unread,
Jun 22, 2012, 4:10:37 PM6/22/12
to gs-dis...@googlegroups.com
Hi Droidment

I'm a GCS newbie myself, but from what I have understood Signed Urls is only for "GET" ( Signed URLs (Query String Authentication) ). Other HTTP verbs are not supported in Signed URL. Proof is: when you get the error message XML from GCS in browser, try to view-source. It will give you the full explanation of what it is actually expecting. I have noticed that GCS always expects GET verb, no matter which verb we send. I tried DELETE, PUT with no luck.

what you want to do is actually "semi" documented here:  PUT Object . However I have not been able to figure out how to create " Authorization " header in this process. I've an open question pending in this forum. I hope we will hear from GCS team soon.

shreky


Droidment

--
You received this message because you are subscribed to the Google Groups "Google Cloud Storage" group.
To view this discussion on the web visit https://groups.google.com/d/msg/gs-discussion/-/zpJUd0_qKZkJ.
To post to this group, send email to gs-dis...@googlegroups.com.
To unsubscribe from this group, send email to gs-discussio...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/gs-discussion?hl=en.

Navneet (Google)

unread,
Jun 22, 2012, 8:32:21 PM6/22/12
to gs-dis...@googlegroups.com
Hi Droidment,

This is definitely supported, so it sounds like you might be having trouble constructing the string to sign. If you're willing to share some code (either here or to gs-...@google.com), one of us can take a look.

Shrek: I'm answering your question in the thread that you started.

Thanks,
Navneet


Droidment

unread,
Jun 22, 2012, 11:40:13 PM6/22/12
to gs-dis...@googlegroups.com
Appreciate your quick reply, Navneet. I have sent the code to gs-team mail account. 
Reply all
Reply to author
Forward
0 new messages