[
https://issues.apache.org/jira/browse/NIFI-14290?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17929836#comment-17929836
]
ASF subversion and git services commented on NIFI-14290:
--------------------------------------------------------
Commit 109731848d8074ad4747e0398f5bb4b9959dfdd3 in nifi's branch
refs/heads/main from Yoshiaki Takahashi
[ https://gitbox.apache.org/repos/asf?p=nifi.git;h=109731848d ]
NIFI-14290 Allow Toolkit CLI for Registry to include usernames with commas
(#9736)
Signed-off-by: David Handermann <[email protected]>
> 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
> Priority: Minor
> Time Spent: 0.5h
> Remaining Estimate: 0h
>
> 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)