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

Lars Kampen edited comment on NIFI-5717 at 9/14/22 6:06 AM:
------------------------------------------------------------

Hi David,

the problem is even worse - we are accessing different 'servers' listening on 
different _ports_ on the same host. Daniel's analysis is definitely correct - 
as long as the hostname is identical, the connection will be reused.

If time allows, I will try to
 * set up a development environment for nifi,
 * ideally write a test,
 * fix the bug
 * and provide a patch to GitHub.

Let's see how far I will get. I already inspected the code and found the 
problem, but have not yet looked up how the tests are organized or how to set 
up a development environment for nifi at all.


was (Author: JIRAUSER295670):
Hi David,

the problem is even worse - we are accessing different 'servers' listening on 
different _ports_ on the same host. Your analysis is definitely correct - as 
long as the hostname is identical, the connection will be reused.

If time allows, I will try to
 * set up a development environment for nifi,
 * ideally write a test,
 * fix the bug
 * and provide a patch to GitHub.

Let's see how far I will get. I already inspected the code and found the 
problem, but have not yet looked up how the tests are organized or how to set 
up a development environment for nifi at all.

> FTPTransfer can't connect to different users in a same host
> -----------------------------------------------------------
>
>                 Key: NIFI-5717
>                 URL: https://issues.apache.org/jira/browse/NIFI-5717
>             Project: Apache NiFi
>          Issue Type: Bug
>          Components: Core Framework
>    Affects Versions: 1.7.1
>            Reporter: Daniel do Vale
>            Priority: Major
>   Original Estimate: 1h
>  Remaining Estimate: 1h
>
> 1) I have one FTP server host which different users can access.
> 2) I'm trying to connect with 2 different users in the same host. These users 
> have different root folders configurated inside my host.
> 3) The first user can connect to FTP without any problems.
> 4) The second user can't connect to FTP properly, because nifi FTPTransfer 
> class have one verification that sees if the host is the same that previous 
> access, it don't reconnect (just reuse the current connection). For this 
> reason, the folders path dont match when i try to get some files.
>  
> The problem occurs inside "getClient" method in FTPTransfer util class.



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

Reply via email to