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

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

Commit 584b3fc1652809e49f7d8f34602208ad20e6e1d0 in nifi's branch 
refs/heads/main from Chris Sampson
[ https://gitbox.apache.org/repos/asf?p=nifi.git;h=584b3fc165 ]

NIFI-12214 This closes #7869. ConsumeElasticsearch Query Builder properties do 
not dependOn the Query Definition Style

Signed-off-by: Joseph Witt <joew...@apache.org>


> ConsumeElasticsearch doc generation broken
> ------------------------------------------
>
>                 Key: NIFI-12214
>                 URL: https://issues.apache.org/jira/browse/NIFI-12214
>             Project: Apache NiFi
>          Issue Type: Bug
>    Affects Versions: 2.0.0, 1.24.0
>            Reporter: Chris Sampson
>            Assignee: Chris Sampson
>            Priority: Minor
>             Fix For: 1.latest, 2.latest
>
>          Time Spent: 10m
>  Remaining Estimate: 0h
>
> The NiFi DocGenerator is throwing a WARNing during startup when processing 
> the {{ConsumeElasticsearch}} properties.
> {code:java}
> java.io.IOException: Unable to create XMLOutputStream
>       at 
> org.apache.nifi.documentation.html.HtmlDocumentationWriter.write(HtmlDocumentationWriter.java:102)
>       at 
> org.apache.nifi.documentation.DocGenerator.document(DocGenerator.java:142)
>       at 
> org.apache.nifi.documentation.DocGenerator.documentConfigurableComponent(DocGenerator.java:107)
>       at 
> org.apache.nifi.documentation.DocGenerator.generate(DocGenerator.java:64)
>       at org.apache.nifi.web.server.JettyServer.start(JettyServer.java:763)
>       at org.apache.nifi.NiFi.<init>(NiFi.java:172)
>       at org.apache.nifi.NiFi.<init>(NiFi.java:83)
>       at org.apache.nifi.NiFi.main(NiFi.java:332)
> Caused by: javax.xml.stream.XMLStreamException: No property was found 
> matching the name 'el-rest-query-definition-style'
>       at 
> org.apache.nifi.documentation.html.HtmlDocumentationWriter.writeProperties(HtmlDocumentationWriter.java:743)
>       at 
> org.apache.nifi.documentation.html.HtmlDocumentationWriter.writeBody(HtmlDocumentationWriter.java:166)
>       at 
> org.apache.nifi.documentation.html.HtmlDocumentationWriter.write(HtmlDocumentationWriter.java:98)
>       ... 7 common frames omitted
> {code}
> This is due to the Query Builder properties inherrited from 
> {{ElasticsearchRestProcessor}} that {{dependOn}} the 
> {{QUERY_DEFINITION_STYLE}} property, which is omitted from 
> {{ConsumeElasticsearch}} because it doesn't make sense to use (one must build 
> the Elasticsearch {{query}} from the Query Builder properties rather than 
> defining the whole {{query}}).



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

Reply via email to