eye-gu opened a new issue, #8665:
URL: https://github.com/apache/paimon/issues/8665

   ### Search before asking
   
   - [x] I searched in the [issues](https://github.com/apache/paimon/issues) 
and found nothing similar.
   
   
   ### Paimon version
   
   master
   
   ### Compute Engine
   
   -
   
   ### Minimal reproduce step
   
   In RESTApi's constructor, the warehouse option is manually URL-encoded 
before being sent as a query parameter:
   
   
https://github.com/apache/paimon/blob/f7ec93b3cc1edeccd10ac23399c0fbcd3569676c/paimon-api/src/main/java/org/apache/paimon/rest/RESTApi.java#L197
   
   The query parameter value is then encoded again by `RESTUtil#buildRequestUrl`
   
   Result: the server decodes the query parameter once and receives an 
still-encoded value instead of the original warehouse.
   
   For warehouse = file:///var/data/paimon:
   
   `RESTUtil.encodeString` → file%3A%2F%2F%2Fvar%2Fdata%2Fpaimon
   `RESTUtil#buildRequestUrl`→ file%253A%252F%252F%252Fvar%252Fdata%252Fpaimon
   
   ### What doesn't meet your expectations?
   
   -
   
   ### Anything else?
   
   _No response_
   
   ### Are you willing to submit a PR?
   
   - [x] I'm willing to submit a PR!


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