Istvan Toth created HBASE-28628:
-----------------------------------
Summary: 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
The encoder returned by java.util.Base64.getUrlEncoder() is unsuitable for the
purpose.
To get an encode that is actually usable in URLs,
ava.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)