You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@nifi.apache.org by Sven Davison <sv...@gmail.com> on 2019/03/14 15:45:54 UTC

NIFI var.startsWith("ch") bug?

i've found our system picks up files that would normaly be considered
temporary/hidden files. files such as ".somename.txt" i've set the pickup
file filter to exclude those but to no avail.

i added a route on attribute to route to bucketA if it starts with a "."
and everything else to another bucket.. also to no avail. HOWEVER.. if i
change that from a "." to something like "s" (for something.txt without the
. at the beginning), it works fine.

has anyone experianced this issue? Is it a bug? I'm sure one of the first
things asked will be version and i cant tell you at the moment but i'm sure
it's not the most recent nor can i blindly hope that'll fix it. if it's
documented somewhere that these were bugs and are now fixed in version X..
that's different.

Re: NIFI var.startsWith("ch") bug?

Posted by Bryan Bende <bb...@gmail.com>.
The File Filter property in ListFile is a good example of this. The
default is "[^\\.].*" which excludes anything that starts with '.'

On Thu, Mar 14, 2019 at 12:02 PM Otto Fowler <ot...@gmail.com> wrote:
>
> What property are you setting specifically?
> If it is one that supports regular expressions, I would expect this to happen, since ‘.’ is _special_.
> If that _is_ the case, then you need to escape a literal ‘.’, probably as ‘\.’
>
>
>
> On March 14, 2019 at 11:46:10, Sven Davison (svendavison@gmail.com) wrote:
>
> i've found our system picks up files that would normaly be considered temporary/hidden files. files such as ".somename.txt" i've set the pickup file filter to exclude those but to no avail.
>
> i added a route on attribute to route to bucketA if it starts with a "." and everything else to another bucket.. also to no avail. HOWEVER.. if i change that from a "." to something like "s" (for something.txt without the . at the beginning), it works fine.
>
> has anyone experianced this issue? Is it a bug? I'm sure one of the first things asked will be version and i cant tell you at the moment but i'm sure it's not the most recent nor can i blindly hope that'll fix it. if it's documented somewhere that these were bugs and are now fixed in version X.. that's different.

Re: NIFI var.startsWith("ch") bug?

Posted by Otto Fowler <ot...@gmail.com>.
What property are you setting specifically?
If it is one that supports regular expressions, I would expect this to
happen, since ‘.’ is _special_.
If that _is_ the case, then you need to escape a literal ‘.’, probably as
‘\.’



On March 14, 2019 at 11:46:10, Sven Davison (svendavison@gmail.com) wrote:

i've found our system picks up files that would normaly be considered
temporary/hidden files. files such as ".somename.txt" i've set the pickup
file filter to exclude those but to no avail.

i added a route on attribute to route to bucketA if it starts with a "."
and everything else to another bucket.. also to no avail. HOWEVER.. if i
change that from a "." to something like "s" (for something.txt without the
. at the beginning), it works fine.

has anyone experianced this issue? Is it a bug? I'm sure one of the first
things asked will be version and i cant tell you at the moment but i'm sure
it's not the most recent nor can i blindly hope that'll fix it. if it's
documented somewhere that these were bugs and are now fixed in version X..
that's different.