[ 
https://issues.apache.org/jira/browse/NIFI-10532?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17608864#comment-17608864
 ] 

Joe Witt commented on NIFI-10532:
---------------------------------

If hostname, port, username, or password as evaluated against each flowfile 
results in a difference from the previous transfer created then we need to 
close the connection and make a new one.  We need to make it clear to users 
that this usage pattern is convenient but inefficient so should not be used 
when performance is desired.  Also, in general, it is never a great idea to put 
sensitive values in flowfile attributes.  

> PutFTP does not group the batch by user name
> --------------------------------------------
>
>                 Key: NIFI-10532
>                 URL: https://issues.apache.org/jira/browse/NIFI-10532
>             Project: Apache NiFi
>          Issue Type: Bug
>          Components: Core Framework
>    Affects Versions: 1.17.0, 1.16.1
>            Reporter: Christoph Langheld
>            Assignee: Joe Witt
>            Priority: Critical
>             Fix For: 1.18.0
>
>         Attachments: 01-PutFTP-ProcessGroup.png, 02-PutFTP-Setting.png, 
> 03-PutFTP-Result.png, PutFTP-Bug.xml
>
>
> Hello,
> for the PutFTP processor we set the host, name, password, port, and target 
> directory dynamically via UpdateAttribute.
> We now have the problem, that the PutFTP processor transmits every file with 
> the same user even the ftp user name changed. The target host does not 
> change, only the user.
> To reproduce I attached a process group as template ([^PutFTP-Bug.xml]). You 
> have to adapt the ftp server settings within the UpdateAttribute processor to 
> your environment.
> The process group generates 50 flow files.
> UpdateAttribute sets the ftp user credentials and sets a filename prefix 
> (NIFI-A_ respectively NIFI-B_).
> If everything would work correctly all files with prefix NIFI-A_ should be 
> transfered to the ftp server as user nifi-a and the rest as user nifi-b.
> But every file will be transferred as the same user (nifi-a).
> PutFTP should group the batch by host, login credentials (user, password, 
> port) and target directory.
> !01-PutFTP-ProcessGroup.png|width=639,height=607!
> PutFTP settings:
> !02-PutFTP-Setting.png|width=750,height=523!
> Result on the ftp server (logged in as user nifi-a):
> !03-PutFTP-Result.png|width=268,height=482!
>  
> Thank you and regards
> Christoph
>  



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

Reply via email to