[ 
https://issues.apache.org/jira/browse/HBASE-28628?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Istvan Toth reassigned HBASE-28628:
-----------------------------------

    Assignee: Istvan Toth

> Use Base64.getUrlEncoder().withoutPaddding() in REST tests
> ----------------------------------------------------------
>
>                 Key: HBASE-28628
>                 URL: https://issues.apache.org/jira/browse/HBASE-28628
>             Project: HBase
>          Issue Type: Bug
>          Components: REST
>            Reporter: Istvan Toth
>            Assignee: Istvan Toth
>            Priority: Major
>              Labels: test
>
> The encoder returned by java.util.Base64.getUrlEncoder() is unsuitable for 
> the purpose.
> To get an encoder that is actually usable in URLs, 
> java.util.Base64.getUrlEncoder().withoutPadding() must be used.
> The relevant Java bug is https://bugs.openjdk.org/browse/JDK-8026330 , 
> however instead of fixing the encode, Java has decided to keep the broken 
> default, and add the .withoutPadding()  method as a way to get a working one.
> Due to sheer luck (or rather bad luck), this is not triggered in our tests, 
> but anyone using them as a template will be in for a ride when hit by this 
> problem.



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

Reply via email to