You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@nifi.apache.org by "Yoshiaki Takahashi (Jira)" <ji...@apache.org> on 2025/02/21 02:44:00 UTC
[jira] [Created] (NIFI-14290) User name lists are not parsed correctly in the NiFi Registry commands of the Toolkit CLI
Yoshiaki Takahashi created NIFI-14290:
-----------------------------------------
Summary: User name lists are not parsed correctly in the NiFi Registry commands of the Toolkit CLI
Key: NIFI-14290
URL: https://issues.apache.org/jira/browse/NIFI-14290
Project: Apache NiFi
Issue Type: Bug
Components: Tools and Build
Reporter: Yoshiaki Takahashi
Assignee: Yoshiaki Takahashi
In the Toolkit CLI, user name lists for NiFi commands are parsed by a CSV parsing library as shown below:
* https://github.com/apache/nifi/blob/a51f1d4802c37bde0efeb390d621b21091a3c179/nifi-toolkit/nifi-toolkit-cli/src/main/java/org/apache/nifi/toolkit/cli/impl/command/nifi/tenants/UpdateUserGroup.java#L92-L100
** https://github.com/apache/nifi/blob/a51f1d4802c37bde0efeb390d621b21091a3c179/nifi-toolkit/nifi-toolkit-cli/src/main/java/org/apache/nifi/toolkit/cli/impl/command/nifi/AbstractNiFiCommand.java#L121-L122
However, for NiFi Registry commands, user names are simply split by commas as shown below, so user names that contain commas cannot be properly parsed:
* https://github.com/apache/nifi/blob/a51f1d4802c37bde0efeb390d621b21091a3c179/nifi-toolkit/nifi-toolkit-cli/src/main/java/org/apache/nifi/toolkit/cli/impl/command/registry/tenant/UpdateUserGroup.java#L77
** https://github.com/apache/nifi/blob/a51f1d4802c37bde0efeb390d621b21091a3c179/nifi-toolkit/nifi-toolkit-cli/src/main/java/org/apache/nifi/toolkit/cli/impl/command/registry/tenant/TenantHelper.java#L32-L34
--
This message was sent by Atlassian Jira
(v8.20.10#820010)