This is an automated email from the ASF dual-hosted git repository.

exceptionfactory pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/nifi.git


The following commit(s) were added to refs/heads/main by this push:
     new f6735069be NIFI-13326 Fixed JWT Base64 Decoding in NiFi Registry
f6735069be is described below

commit f6735069be6af390b3c80e310244d1391a96890d
Author: Night Gryphon <ngr...@gmail.com>
AuthorDate: Tue Jun 18 18:36:07 2024 +0300

    NIFI-13326 Fixed JWT Base64 Decoding in NiFi Registry
    
    This closes #8977
    
    Signed-off-by: David Handermann <exceptionfact...@apache.org>
---
 .../nifi-registry-web-ui/src/main/webapp/services/nf-storage.service.js | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git 
a/nifi-registry/nifi-registry-core/nifi-registry-web-ui/src/main/webapp/services/nf-storage.service.js
 
b/nifi-registry/nifi-registry-core/nifi-registry-web-ui/src/main/webapp/services/nf-storage.service.js
index e3a5377707..531eca4bfa 100644
--- 
a/nifi-registry/nifi-registry-core/nifi-registry-web-ui/src/main/webapp/services/nf-storage.service.js
+++ 
b/nifi-registry/nifi-registry-core/nifi-registry-web-ui/src/main/webapp/services/nf-storage.service.js
@@ -183,7 +183,7 @@ NfRegistryStorage.prototype = {
      */
     getJwtPayload: function (jwt) {
         if (isDefinedAndNotNull(jwt)) {
-            var segments = jwt.split(/\./);
+            var segments = jwt.replace(/[\-]/g, '+').replace(/[\_]/g, 
'/').split(/\./);
             if (segments.length !== 3) {
                 return '';
             }

Reply via email to