[jira] [Updated] (NIFI-10387) Scripted components incorrectly marking whether a script needs to be reloaded

2022-08-23 Thread Mark Payne (Jira)


 [ 
https://issues.apache.org/jira/browse/NIFI-10387?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Mark Payne updated NIFI-10387:
--
Fix Version/s: 1.18.0
   Resolution: Fixed
   Status: Resolved  (was: Patch Available)

> Scripted components incorrectly marking whether a script needs to be reloaded
> -
>
> Key: NIFI-10387
> URL: https://issues.apache.org/jira/browse/NIFI-10387
> Project: Apache NiFi
>  Issue Type: Bug
>Reporter: Matt Burgess
>Assignee: Matt Burgess
>Priority: Major
> Fix For: 1.18.0
>
>  Time Spent: 0.5h
>  Remaining Estimate: 0h
>
> In many of the scripted components (InvokeScriptedProcessor, scripted 
> controller services, etc.) there is a negative logic bug when setting the 
> scriptNeedsReload variable to indicate that the script should be reloaded. 
> Specifically, if the script does not load successfully, scriptNeedsReload is 
> set false when it should be true.  In most/all cases, this error does not 
> manifest because there is also a check to make sure there is an actual 
> lookupService object retrieved from the (successfully loaded) script. However 
> there may be situations in which this negative logic bug could manifest and 
> thus it should be fixed.



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


[jira] [Updated] (NIFI-10387) Scripted components incorrectly marking whether a script needs to be reloaded

2022-08-23 Thread Matt Burgess (Jira)


 [ 
https://issues.apache.org/jira/browse/NIFI-10387?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Matt Burgess updated NIFI-10387:

Status: Patch Available  (was: In Progress)

> Scripted components incorrectly marking whether a script needs to be reloaded
> -
>
> Key: NIFI-10387
> URL: https://issues.apache.org/jira/browse/NIFI-10387
> Project: Apache NiFi
>  Issue Type: Bug
>Reporter: Matt Burgess
>Assignee: Matt Burgess
>Priority: Major
>  Time Spent: 10m
>  Remaining Estimate: 0h
>
> In many of the scripted components (InvokeScriptedProcessor, scripted 
> controller services, etc.) there is a negative logic bug when setting the 
> scriptNeedsReload variable to indicate that the script should be reloaded. 
> Specifically, if the script does not load successfully, scriptNeedsReload is 
> set false when it should be true.  In most/all cases, this error does not 
> manifest because there is also a check to make sure there is an actual 
> lookupService object retrieved from the (successfully loaded) script. However 
> there may be situations in which this negative logic bug could manifest and 
> thus it should be fixed.



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