tustvold opened a new issue, #5017:
URL: https://github.com/apache/arrow-rs/issues/5017

   **Describe the bug**
   <!--
   A clear and concise description of what the bug is.
   -->
   
   `ObjectStore::parse_url` does not correctly decode URL paths, resulting in 
unfortunate behaviour for paths containing spaces (or other non URL-safe 
characters).
   
   **To Reproduce**
   <!--
   Steps to reproduce the behavior:
   -->
   
   **Expected behavior**
   <!--
   A clear and concise description of what you expected to happen.
   -->
   
   ```
   #[test]
   fn test_url_spaces() {
       let url = Url::parse("file:///my file with spaces").unwrap();
       assert_eq!(url.path(), "/my%20file%20with%20spaces");
       let (_, path) = parse_url(&url).unwrap();
       assert_eq!(path.as_ref(), "my file with spaces");
   }
   ```
   
   **Additional context**
   <!--
   Add any other context about the problem here.
   -->


-- 
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