[
https://issues.apache.org/jira/browse/NIFI-7910?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Sergey Naranov updated NIFI-7910:
---------------------------------
Description:
Hello,
I'm using ListFTP within the following settings
- Remote Path: {color:#de350b}.{color}
- Search Recursively: true
- Path Filter Regex:
fcs_regions/(?:Altaj_Resp|Tyva_Resp)/notifications/currMonth$
PathFilterRegex says: "When Search Recursively is true, then only
subdirectories whose path matches the given Regular Expression will be scanned"
so i expect to list all files at directories:
{color:#de350b}fcs_regions{color}/{color:#4c9aff}Tyva_Resp{color}/notifications/currMonth/
{color:#de350b}fcs_regions{color}/{color:#4c9aff}Altaj_Resp{color}/notifications/currMonth/
and so on.
directory {color:#de350b}fcs_regions{color} locates at root directory
But result list of files contains files from root directory also.
If i set folowwing settings:
- Remote Path: /fcs_regions
- Search Recursively: true
- Path Filter Regex: (?:Altaj_Resp|Tyva_Resp)/notifications/currMonth$
Result list contains files from fcs_regions directory also
How to prevent this behavior? Or is it a bug?
If it is not a bug, please, explain, how to give absolute regex path from the
root directory?
these expressions don't scan directories
^/fcs_regions/(?:Altaj_Resp|Tyva_Resp)/notifications/currMonth$
^./fcs_regions/(?:Altaj_Resp|Tyva_Resp)/notifications/currMonth$
^\\./fcs_regions/(?:Altaj_Resp|Tyva_Resp)/notifications/currMonth$
and result list contains files only from the root directory.
was:
Hello,
I'm using ListFTP within the following settings
- Remote Path: {color:#de350b}.{color}
- Search Recursively: true
- Path Filter Regex:
fcs_regions/(?:Altaj_Resp|Tyva_Resp)/notifications/currMonth$
PathFilterRegex says: "When Search Recursively is true, then only
subdirectories whose path matches the given Regular Expression will be scanned"
so i expect to list all files at directories:
{color:#de350b}fcs_regions{color}/{color:#4c9aff}Tyva_Resp{color}/notifications/currMonth/
{color:#de350b}fcs_regions{color}/{color:#4c9aff}Altaj_Resp{color}/notifications/currMonth/
and so on.
directory {color:#de350b}fcs_regions{color} locates at root directory
But result list of files contains files from root directory also.
If i set folowwing settings:
- Remote Path: /fcs_regions
- Search Recursively: true
- Path Filter Regex: (?:Altaj_Resp|Tyva_Resp)/notifications/currMonth$
Result list contains files from fcs_regions directory also
How to prevent this behavior? Or is it a bug?
If it is not a bug, please, explain, how to give absolute regex path from the
root directory?
these expressions don't scan directories
^/fcs_regions/(?:Altaj_Resp|Tyva_Resp)/notifications/currMonth$
^./fcs_regions/(?:Altaj_Resp|Tyva_Resp)/notifications/currMonth$
^./fcs_regions/(?:Altaj_Resp|Tyva_Resp)/notifications/currMonth$
and result list contains files only from the root directory.
> ListSFP Path Filter Regex
> --------------------------
>
> Key: NIFI-7910
> URL: https://issues.apache.org/jira/browse/NIFI-7910
> Project: Apache NiFi
> Issue Type: Bug
> Affects Versions: 1.12.1
> Environment: windows 10
> Reporter: Sergey Naranov
> Priority: Major
>
> Hello,
> I'm using ListFTP within the following settings
> - Remote Path: {color:#de350b}.{color}
> - Search Recursively: true
> - Path Filter Regex:
> fcs_regions/(?:Altaj_Resp|Tyva_Resp)/notifications/currMonth$
> PathFilterRegex says: "When Search Recursively is true, then only
> subdirectories whose path matches the given Regular Expression will be
> scanned"
> so i expect to list all files at directories:
>
> {color:#de350b}fcs_regions{color}/{color:#4c9aff}Tyva_Resp{color}/notifications/currMonth/
>
> {color:#de350b}fcs_regions{color}/{color:#4c9aff}Altaj_Resp{color}/notifications/currMonth/
> and so on.
> directory {color:#de350b}fcs_regions{color} locates at root directory
> But result list of files contains files from root directory also.
> If i set folowwing settings:
> - Remote Path: /fcs_regions
> - Search Recursively: true
> - Path Filter Regex: (?:Altaj_Resp|Tyva_Resp)/notifications/currMonth$
> Result list contains files from fcs_regions directory also
> How to prevent this behavior? Or is it a bug?
> If it is not a bug, please, explain, how to give absolute regex path from
> the root directory?
> these expressions don't scan directories
> ^/fcs_regions/(?:Altaj_Resp|Tyva_Resp)/notifications/currMonth$
> ^./fcs_regions/(?:Altaj_Resp|Tyva_Resp)/notifications/currMonth$
> ^\\./fcs_regions/(?:Altaj_Resp|Tyva_Resp)/notifications/currMonth$
> and result list contains files only from the root directory.
--
This message was sent by Atlassian Jira
(v8.3.4#803005)