You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@nifi.apache.org by "Langheld, Christoph" <Ch...@merkur.de> on 2019/11/28 09:15:28 UTC
NiFi 1.10.0: Use of sensitive context parameters seems not to work
Hello,
we defined a context parameter with type 'sensitive value'.
If we refer to this parameter in the ListFTP process group, we get the following error after the processor has started its work:
2019-11-28 08:38:55,725 ERROR [Timer-Driven Process Thread-3] o.a.nifi.processors.standard.ListFTP ListFTP[id=b3cd3ce8-fb5e-1726-e0d5-c3f6ff7ec0bf] Failed to perform listing on remote host due to Could not login for user 'user_xy': java.io.IOException: Could not login for user 'user_xy'
java.io.IOException: Could not login for user 'user_xy'
at org.apache.nifi.processors.standard.util.FTPTransfer.getClient(FTPTransfer.java:601)
at org.apache.nifi.processors.standard.util.FTPTransfer.getListing(FTPTransfer.java:229)
at org.apache.nifi.processors.standard.util.FTPTransfer.getListing(FTPTransfer.java:192)
at org.apache.nifi.processors.standard.ListFileTransfer.performListing(ListFileTransfer.java:106)
at org.apache.nifi.processor.util.list.AbstractListProcessor.listByTrackingTimestamps(AbstractListProcessor.java:472)
at org.apache.nifi.processor.util.list.AbstractListProcessor.onTrigger(AbstractListProcessor.java:414)
at org.apache.nifi.processor.AbstractProcessor.onTrigger(AbstractProcessor.java:27)
at org.apache.nifi.controller.StandardProcessorNode.onTrigger(StandardProcessorNode.java:1176)
at org.apache.nifi.controller.tasks.ConnectableTask.invoke(ConnectableTask.java:213)
at org.apache.nifi.controller.scheduling.TimerDrivenSchedulingAgent$1.run(TimerDrivenSchedulingAgent.java:117)
at org.apache.nifi.engine.FlowEngine$2.run(FlowEngine.java:110)
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
at java.util.concurrent.FutureTask.runAndReset(FutureTask.java:308)
at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$301(ScheduledThreadPoolExecutor.java:180)
at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:294)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
at java.lang.Thread.run(Thread.java:748)
The ftp server shows the following entry:
Nov 28 08:38:55 ftpp01-v pure-ftpd: (?@10.32.32.2) [WARNING] Authentication failed for user [user_xy]
When I enter the password in the password field instead of using the parameter, there occurs no error.
Regards
Christoph
Re: NiFi 1.10.0: Use of sensitive context parameters seems not to work
Posted by Pierre Villard <pi...@gmail.com>.
Hi Christoph,
I believe this has been reported and fixed with this JIRA:
https://issues.apache.org/jira/browse/NIFI-6868
Pierre
Le jeu. 28 nov. 2019 à 10:15, Langheld, Christoph <
Christoph.Langheld@merkur.de> a écrit :
> Hello,
>
>
>
> we defined a context parameter with type 'sensitive value'.
>
> If we refer to this parameter in the ListFTP process group, we get the
> following error after the processor has started its work:
>
>
>
> 2019-11-28 08:38:55,725 ERROR [Timer-Driven Process Thread-3]
> o.a.nifi.processors.standard.ListFTP
> ListFTP[id=b3cd3ce8-fb5e-1726-e0d5-c3f6ff7ec0bf] Failed to perform listing
> on remote host due to Could not login for user 'user_xy':
> java.io.IOException: Could not login for user 'user_xy'
>
> java.io.IOException: Could not login for user 'user_xy'
>
> at
> org.apache.nifi.processors.standard.util.FTPTransfer.getClient(FTPTransfer.java:601)
>
> at
> org.apache.nifi.processors.standard.util.FTPTransfer.getListing(FTPTransfer.java:229)
>
> at
> org.apache.nifi.processors.standard.util.FTPTransfer.getListing(FTPTransfer.java:192)
>
> at
> org.apache.nifi.processors.standard.ListFileTransfer.performListing(ListFileTransfer.java:106)
>
> at
> org.apache.nifi.processor.util.list.AbstractListProcessor.listByTrackingTimestamps(AbstractListProcessor.java:472)
>
> at
> org.apache.nifi.processor.util.list.AbstractListProcessor.onTrigger(AbstractListProcessor.java:414)
>
> at
> org.apache.nifi.processor.AbstractProcessor.onTrigger(AbstractProcessor.java:27)
>
> at
> org.apache.nifi.controller.StandardProcessorNode.onTrigger(StandardProcessorNode.java:1176)
>
> at
> org.apache.nifi.controller.tasks.ConnectableTask.invoke(ConnectableTask.java:213)
>
> at
> org.apache.nifi.controller.scheduling.TimerDrivenSchedulingAgent$1.run(TimerDrivenSchedulingAgent.java:117)
>
> at org.apache.nifi.engine.FlowEngine$2.run(FlowEngine.java:110)
>
> at
> java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
>
> at java.util.concurrent.FutureTask.runAndReset(FutureTask.java:308)
>
> at
> java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$301(ScheduledThreadPoolExecutor.java:180)
>
> at
> java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:294)
>
> at
> java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
>
> at
> java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
>
> at java.lang.Thread.run(Thread.java:748)
>
>
>
>
>
> The ftp server shows the following entry:
>
> Nov 28 08:38:55 ftpp01-v pure-ftpd: (?@10.32.32.2) [WARNING]
> Authentication failed for user [user_xy]
>
>
>
> When I enter the password in the password field instead of using the
> parameter, there occurs no error.
>
>
>
> Regards
>
> Christoph
>