[
https://issues.apache.org/jira/browse/NIFI-5560?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Hemantha kumara M S updated NIFI-5560:
--------------------------------------
Description:
*Here is the configuration*
----
*SFTP Server side:*
-bash-4.2$ mkdir -p /tmp/testData
-bash-4.2$
-bash-4.2$ mkdir -p /tmp/toRead
-bash-4.2$ ln -s /tmp/testData /tmp/toRead/data1
-bash-4.2$ touch /tmp/testData/1.txt
-bash-4.2$ touch /tmp/testData/2.txt
-bash-4.2$ touch /tmp/toRead/t.txt
-bash-4.2$ mkdir /tmp/toRead/data2
-bash-4.2$ touch /tmp/toRead/data2/22.txt
-bash-4.2$ cd /tmp/toRead/
-bash-4.2$ tree
.
├── data1 -> /tmp/testData
├── data2
│ └── 22.txt
└── t.txt
2 directories, 2 files
-bash-4.2$ pwd
/tmp/toRead
-bash-4.2$ tree
.
├── data1 -> /tmp/testData
├── data2
│ └── 22.txt
└── t.txt
2 directories, 2 files
-bash-4.2$ touch data
data1/ data2/
-bash-4.2$ touch data2/22.txt
-bash-4.2$ touch t.txt
-bash-4.2$ tree /tmp/testData
/tmp/testData
├── 1.txt
└── 2.txt
0 directories, 2 files
*Nifi:*
Configured ListSFTP +Remote Path+ to +/tmp/toRead/+ and +Search Recursively+
to +true+
*+Expected result:+*
Should list 4 files(1.txt, 2.txt, t.txt, data2/22.txt)
*+Actual result:+*
listed only two files(t.txt, data2/22.txt)
was:
*Here is the configuration*
----
*SFTP Server side:*
-bash-4.2$ mkdir -p /tmp/testData
-bash-4.2$
-bash-4.2$ mkdir -p /tmp/toRead
-bash-4.2$ ln -s /tmp/testData /tmp/toRead/data1
-bash-4.2$ touch /tmp/testData/1.txt
-bash-4.2$ touch /tmp/testData/2.txt
-bash-4.2$ touch /tmp/toRead/t.txt
*Nifi:*
Configured ListSFTP Remote Path to /tmp/toRead/
*+Expected result:+*
Should list 3 files(1.txt, 2.txt, t.txt)
*+Actual result:+*
listed only one file(t.txt)
> Sub directory(soft linked to directory) files are not getting listed in
> ListSFTP(ListSFTP does not Follow symbolic links)
> -------------------------------------------------------------------------------------------------------------------------
>
> Key: NIFI-5560
> URL: https://issues.apache.org/jira/browse/NIFI-5560
> Project: Apache NiFi
> Issue Type: Bug
> Affects Versions: 1.7.1
> Reporter: Hemantha kumara M S
> Priority: Major
>
> *Here is the configuration*
> ----
> *SFTP Server side:*
> -bash-4.2$ mkdir -p /tmp/testData
> -bash-4.2$
> -bash-4.2$ mkdir -p /tmp/toRead
> -bash-4.2$ ln -s /tmp/testData /tmp/toRead/data1
> -bash-4.2$ touch /tmp/testData/1.txt
> -bash-4.2$ touch /tmp/testData/2.txt
> -bash-4.2$ touch /tmp/toRead/t.txt
> -bash-4.2$ mkdir /tmp/toRead/data2
> -bash-4.2$ touch /tmp/toRead/data2/22.txt
> -bash-4.2$ cd /tmp/toRead/
> -bash-4.2$ tree
> .
> ├── data1 -> /tmp/testData
> ├── data2
> │ └── 22.txt
> └── t.txt
> 2 directories, 2 files
> -bash-4.2$ pwd
> /tmp/toRead
> -bash-4.2$ tree
> .
> ├── data1 -> /tmp/testData
> ├── data2
> │ └── 22.txt
> └── t.txt
> 2 directories, 2 files
> -bash-4.2$ touch data
> data1/ data2/
> -bash-4.2$ touch data2/22.txt
> -bash-4.2$ touch t.txt
> -bash-4.2$ tree /tmp/testData
> /tmp/testData
> ├── 1.txt
> └── 2.txt
> 0 directories, 2 files
>
> *Nifi:*
> Configured ListSFTP +Remote Path+ to +/tmp/toRead/+ and +Search Recursively+
> to +true+
>
> *+Expected result:+*
> Should list 4 files(1.txt, 2.txt, t.txt, data2/22.txt)
> *+Actual result:+*
> listed only two files(t.txt, data2/22.txt)
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)