afs commented on code in PR #2409:
URL: https://github.com/apache/jena/pull/2409#discussion_r1561257939


##########
jena-integration-tests/src/test/java/org/apache/jena/http/AuthBearerTestLib.java:
##########
@@ -81,7 +80,7 @@ public static String generateTestToken(String user) {
     private static String enc64(String x) {
         byte[] bytes = x.getBytes(StandardCharsets.UTF_8);
         // URL encoding, no padding, no chunking line breaks.
-        String s = 
org.apache.commons.codec.binary.Base64.encodeBase64URLSafeString(bytes);
+        String s = Base64.getUrlEncoder().encodeToString(bytes);

Review Comment:
   OAuth at least is not `base64url`, but is `base64`.
   This bug is concealed by using the general decoder. If changing the decoder 
to only `base64`, this test needs to be fixed.
   
   ```suggestion
           String s = Base64.getEncoder().encodeToString(bytes);
   ```



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


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to