vrongmeal opened a new issue, #158:
URL: https://github.com/apache/arrow-rs-object-store/issues/158

   **Describe the bug**
   <!--
   A clear and concise description of what the bug is.
   -->
   
   When trying to fetch public objects, GCP returns the 401 code. This is 
because the object store sends the `Authorization: Bearer `. Even when the 
bearer is empty, it tries to authorize.
   
   **To Reproduce**
   <!--
   Steps to reproduce the behavior:
   -->
   
   Try fetching a public object with the header:
   
   ```sh
   $ curl -H 'Authorization: Bearer ' 
https://storage.googleapis.com/<bucket>/<object-location>
   <?xml version='1.0' 
encoding='UTF-8'?><Error><Code>AuthenticationRequired</Code><Message>Authentication
 required.</Message></Error>
   
   # whereas without the header this works
   $ curl https://storage.googleapis.com/<bucket>/<object-location>
   ```
   
   **Expected behavior**
   <!--
   A clear and concise description of what you expected to happen.
   -->
   
   Should be able to access the public object.
   
   **Additional context**
   <!--
   Add any other context about the problem here.
   -->
   
   Once the object is fetched, sometimes GCP caches and returns the result even 
with the header. But this is not reliable.


-- 
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: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to