Auth. fail when using cyrillic in prefix at listBlobs() #282

Closed
elarcent opened this Issue Jul 23, 2012 · 3 comments

Comments

Projects
None yet
7 participants

I'm receiving nasty AuthenticationFailed error, when try to list blobs with listBlobs() method, when prefix option is set in cyrilic letters:

"error": {
"code":"AuthenticationFailed",
"message":"Server failed to authenticate the request. Make sure the value of Authorization header is formed correctly including the signature.\nRequestId:a63a444c-88f9-4035-8d22-bf516a23606b\nTime:2012-07-23T15:16:50.5947150Z",
"authenticationerrordetail":"The MAC signature found in the HTTP request 'UGwrQC3qbSpEKAQ4NH27pxcaKXlW0UMVvsyWqD+VD/w=' is not the same as any computed signature. Server used following string to sign: 'GET\n\n\n\n\n\n\n\n\n\n\n\nx-ms-date:Mon, 23 Jul 2012 15:16:51 GMT\nx-ms-version:2011-08-18\n/testacc/064f356c-1141-41f2-87fc-b656b7d9aabc\ncomp:list\ndelimiter:/\ninclude:metadata\nprefix:newdir/прабабакер/\nrestype:container'."}

Uploading files with createBlobFrom works well for cyrillic though.

#282

npenin commented Aug 12, 2012

Have you tried encodeURIComponent on your prefix ?

Well, it seems like it's fundamental problem with Azure Blob Storage, because any information sent via HTTP headers(prefix, metadata and etc) cannot be set in UTF8 encoding, just according to RFC. Everything is converted to ASCII.
The only workaround I've found is to convert strings to series of unicode integer codes before sending to azure, and convert back to characters when receiving from azure, at software layer.

azuresdkci removed the Hold label Aug 11, 2014

@azuresdkci azuresdkci assigned andrerod and unassigned bradygaster Aug 11, 2014

azuresdkci changed the title from Auth. fail when using cyrillic in prefix at listBlobs() to Duplicate item created by TFS bridge 164 Aug 11, 2014

azuresdkci closed this Aug 11, 2014

andrerod reopened this Aug 11, 2014

andrerod changed the title from Duplicate item created by TFS bridge 164 to Auth. fail when using cyrillic in prefix at listBlobs() Aug 11, 2014

@azuresdkci azuresdkci assigned bradygaster and unassigned andrerod Aug 13, 2014

@azuresdkci azuresdkci assigned guangyang and unassigned bradygaster Aug 20, 2014

azuresdkci closed this Aug 25, 2014

azuresdkci reopened this Aug 25, 2014

@azuresdkci azuresdkci added P4 and removed P3 labels Aug 25, 2014

Contributor

yugangw-msft commented Sep 13, 2014

Closing as part of xplat backlog scrub.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment