[ 
https://issues.apache.org/jira/browse/NIFI-15250?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=18040497#comment-18040497
 ] 

ASF subversion and git services commented on NIFI-15250:
--------------------------------------------------------

Commit 639a43c2ea43a4d72d7f54892db22fcf645a50ec in nifi's branch 
refs/heads/main from dan-s1
[ https://gitbox.apache.org/repos/asf?p=nifi.git;h=639a43c2ea ]

NIFI-15250 Added Log Level Validator to LogMessage Processor (#10560)

Signed-off-by: David Handermann <[email protected]>

> IllegalArgumentException thrown in the LogMessage processor if the value for 
> Log Level is not a Expression Language expression and not a valid log level
> --------------------------------------------------------------------------------------------------------------------------------------------------------
>
>                 Key: NIFI-15250
>                 URL: https://issues.apache.org/jira/browse/NIFI-15250
>             Project: Apache NiFi
>          Issue Type: Bug
>            Reporter: Daniel Stieglitz
>            Assignee: Daniel Stieglitz
>            Priority: Minor
>          Time Spent: 20m
>  Remaining Estimate: 0h
>
> Currently the log level value in LogMessage is entered by hand. If it does 
> not match the accepted log levels irrelevant of case, an 
> IllegalArgumentException is thrown as seen in the error message below
> {code:java}
> ERROR
> LogMessage[id=b74f1a87-019a-1000-e69c-2f8a246b2b0f] Processing failed: 
> org.apache.nifi.processor.exception.ProcessException: 
> java.lang.IllegalArgumentException: No enum constant 
> org.apache.nifi.processors.standard.LogMessage.MessageLogLevel.whatever
> - Caused by: java.lang.IllegalArgumentException: No enum constant 
> org.apache.nifi.processors.standard.LogMessage.MessageLogLevel.whatever{code}
> This ticket proposes validation on the entered text if its anything other 
> than a Expression Language expression thereby preventing the above scenario 
> of an IllegalArgumentException thrown at run time.



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

Reply via email to