Night Gryphon created NIFI-13399:
------------------------------------
Summary: NiFi Registry login page crash on unicode characters in
password
Key: NIFI-13399
URL: https://issues.apache.org/jira/browse/NIFI-13399
Project: Apache NiFi
Issue Type: Bug
Components: NiFi Registry
Affects Versions: 2.0.0-M3
Environment: Ubuntu 22.04
Open JDK 21
NiFi Registry 2.0.0.M3 + LDAP (Microsoft AD)
Reporter: Night Gryphon
Registry login page crash with unicode non latin1 characters in user password.
While trying to submit such password UI just do nothing. No error popup for
user while browser Javascript console shows an error:
{code:java}
vendor.min.4dc8237ea10851b143e5.js:424 ERROR DOMException: Failed to execute
'btoa' on 'Window': The string to be encoded contains characters outside of the
Latin1 range.
at A.postToLogin
(https://registry.nifi.local:8443/nifi-registry/nf-registry.bundle.min.51cc86964e9d4d96daf1.js:1:154149)
at Y.login
(https://registry.nifi.local:8443/nifi-registry/nf-registry.bundle.min.51cc86964e9d4d96daf1.js:1:186924)
at Object.eval [as handleEvent] (ng:///Te/Y.ngfactory.js:133:35)
at Object.handleEvent
(https://registry.nifi.local:8443/nifi-registry/vendor.min.4dc8237ea10851b143e5.js:1499:1487)
at Object.handleEvent
(https://registry.nifi.local:8443/nifi-registry/vendor.min.4dc8237ea10851b143e5.js:1506:1059)
at fg
(https://registry.nifi.local:8443/nifi-registry/vendor.min.4dc8237ea10851b143e5.js:1182:1000)
at
https://registry.nifi.local:8443/nifi-registry/vendor.min.4dc8237ea10851b143e5.js:1463:2610
at
https://registry.nifi.local:8443/nifi-registry/vendor.min.4dc8237ea10851b143e5.js:5609:594
at
https://registry.nifi.local:8443/nifi-registry/vendor.min.4dc8237ea10851b143e5.js:5638:209
at c.invoke
(https://registry.nifi.local:8443/nifi-registry/vendor.min.4dc8237ea10851b143e5.js:6537:6401)
Ls @ vendor.min.4dc8237ea10851b143e5.js:424
vendor.min.4dc8237ea10851b143e5.js:424 ERROR DOMException: Failed to execute
'btoa' on 'Window': The string to be encoded contains characters outside of the
Latin1 range.
at A.postToLogin
(https://registry.nifi.local:8443/nifi-registry/nf-registry.bundle.min.51cc86964e9d4d96daf1.js:1:154149)
at Y.login
(https://registry.nifi.local:8443/nifi-registry/nf-registry.bundle.min.51cc86964e9d4d96daf1.js:1:186924)
at Object.eval [as handleEvent] (ng:///Te/Y.ngfactory.js:168:31)
at Object.handleEvent
(https://registry.nifi.local:8443/nifi-registry/vendor.min.4dc8237ea10851b143e5.js:1499:1487)
at Object.handleEvent
(https://registry.nifi.local:8443/nifi-registry/vendor.min.4dc8237ea10851b143e5.js:1506:1059)
at fg
(https://registry.nifi.local:8443/nifi-registry/vendor.min.4dc8237ea10851b143e5.js:1182:1000)
at
https://registry.nifi.local:8443/nifi-registry/vendor.min.4dc8237ea10851b143e5.js:1463:2610
at HTMLButtonElement.<anonymous>
(https://registry.nifi.local:8443/nifi-registry/vendor.min.4dc8237ea10851b143e5.js:5609:594)
at c.invokeTask
(https://registry.nifi.local:8443/nifi-registry/vendor.min.4dc8237ea10851b143e5.js:6537:7019)
at Object.onInvokeTask
(https://registry.nifi.local:8443/nifi-registry/vendor.min.4dc8237ea10851b143e5.js:1377:1589)
Ls @ vendor.min.4dc8237ea10851b143e5.js:424
vendor.min.4dc8237ea10851b143e5.js:424 ERROR DOMException: Failed to execute
'btoa' on 'Window': The string to be encoded contains characters outside of the
Latin1 range.
at A.postToLogin
(https://registry.nifi.local:8443/nifi-registry/nf-registry.bundle.min.51cc86964e9d4d96daf1.js:1:154149)
at Y.login
(https://registry.nifi.local:8443/nifi-registry/nf-registry.bundle.min.51cc86964e9d4d96daf1.js:1:186924)
at Object.eval [as handleEvent] (ng:///Te/Y.ngfactory.js:133:35)
at Object.handleEvent
(https://registry.nifi.local:8443/nifi-registry/vendor.min.4dc8237ea10851b143e5.js:1499:1487)
at Object.handleEvent
(https://registry.nifi.local:8443/nifi-registry/vendor.min.4dc8237ea10851b143e5.js:1506:1059)
at fg
(https://registry.nifi.local:8443/nifi-registry/vendor.min.4dc8237ea10851b143e5.js:1182:1000)
at
https://registry.nifi.local:8443/nifi-registry/vendor.min.4dc8237ea10851b143e5.js:1463:2610
at
https://registry.nifi.local:8443/nifi-registry/vendor.min.4dc8237ea10851b143e5.js:5609:594
at
https://registry.nifi.local:8443/nifi-registry/vendor.min.4dc8237ea10851b143e5.js:5638:209
at c.invoke
(https://registry.nifi.local:8443/nifi-registry/vendor.min.4dc8237ea10851b143e5.js:6537:6401)
Ls @ vendor.min.4dc8237ea10851b143e5.js:424
2vendor.min.4dc8237ea10851b143e5.js:424 ERROR DOMException: Failed to execute
'btoa' on 'Window': The string to be encoded contains characters outside of the
Latin1 range.
at A.postToLogin
(https://registry.nifi.local:8443/nifi-registry/nf-registry.bundle.min.51cc86964e9d4d96daf1.js:1:154149)
at Y.login
(https://registry.nifi.local:8443/nifi-registry/nf-registry.bundle.min.51cc86964e9d4d96daf1.js:1:186924)
at Object.eval [as handleEvent] (ng:///Te/Y.ngfactory.js:168:31)
at Object.handleEvent
(https://registry.nifi.local:8443/nifi-registry/vendor.min.4dc8237ea10851b143e5.js:1499:1487)
at Object.handleEvent
(https://registry.nifi.local:8443/nifi-registry/vendor.min.4dc8237ea10851b143e5.js:1506:1059)
at fg
(https://registry.nifi.local:8443/nifi-registry/vendor.min.4dc8237ea10851b143e5.js:1182:1000)
at
https://registry.nifi.local:8443/nifi-registry/vendor.min.4dc8237ea10851b143e5.js:1463:2610
at HTMLButtonElement.<anonymous>
(https://registry.nifi.local:8443/nifi-registry/vendor.min.4dc8237ea10851b143e5.js:5609:594)
at c.invokeTask
(https://registry.nifi.local:8443/nifi-registry/vendor.min.4dc8237ea10851b143e5.js:6537:7019)
at Object.onInvokeTask
(https://registry.nifi.local:8443/nifi-registry/vendor.min.4dc8237ea10851b143e5.js:1377:1589)
{code}
This bug block NiFi Registry usage in actual company environment with actual
users credentials.
--
This message was sent by Atlassian Jira
(v8.20.10#820010)
