Closed egnchen closed 4 years ago
PS. Only a dozen tests failed on my zh-CN linux machine, strange...
Hi @eyeKill, can you take time to verify if this issue has been fixed in PR https://github.com/Azure/azure-storage-cpplite/pull/85? Thanks.
Problem resolved, no more 403s(although I don't understand the reason to treat rfc1123 and iso8601 separately).
Using this package here to do some azure blob storage development. Worked fine on my cloud ubuntu VM but received endless 403 responses on my ubuntu laptop.
Turns out
get_ms_date
insrc/utility.cpp
is mistakenly following system locale settings. My laptop have locale settings as simplified Chinese, which causesstrftime
to output Chinese date & time strings. Such date & time information won't be recognized by azure and thus 403.Workaround: Plz use
std::time_put
instead ofstrftime
inget_ms_date
, locale settings of which can be specified(reference here).