twick00 opened a new pull request, #208:
URL: https://github.com/apache/jclouds/pull/208

   Despite [JCLOUDS-1615](https://issues.apache.org/jira/browse/JCLOUDS-1615), 
using base64url encoded values is not supported by the [Put 
Block](https://learn.microsoft.com/en-us/rest/api/storageservices/put-block) 
endpoint.
   
   When attempting to query this endpoint with `partNumber` set to `248` (which 
is `blockid: AAAA-A==`) I received this error:
   
   ```xml
   <?xml version="1.0" 
encoding="utf-8"?><Error><Code>InvalidQueryParameterValue</Code><Message>Value 
for one of the query parameters specified in the request URI is invalid.
   RequestId:632a8422-501e-006c-3db4-e238fb000000
   
Time:2024-07-30T19:10:34.4638223Z</Message><QueryParameterName>blockid</QueryParameterName><QueryParameterValue>AAAA-A==</QueryParameterValue><Reason>Not
 a valid base64 string.</Reason></Error>
   ```
   
   I have confirmed directly with Microsoft that the correct value here is a 
standard base64 string that is url encoded, which should not be confused with 
base64url encoding which is NOT supported.
   
   As far as the original ticket 
([JCLOUDS-1615](https://issues.apache.org/jira/browse/JCLOUDS-1615)) which 
mentions an error related to  `+` reporting as not a valid base64 string, I 
have tried to replicate the issue and I am unable to do so. My guess is that 
this was a bug that existed on Microsoft's side and they have since fixed it. 
Either way, from their own words, it should be a base64 string. `+` and `/` are 
supported.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscr...@jclouds.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org

Reply via email to