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

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

Commit 2282a96c615ca8191b17bdd7d4fbdc1a4545dea2 in nifi's branch 
refs/heads/NIFI-12214 from Chris Sampson
[ https://gitbox.apache.org/repos/asf?p=nifi.git;h=2282a96c61 ]

NIFI-12214 ConsumeElasticsearch Query Builder properties do not dependOn the 
Query Definition Style


> 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
>            Priority: Minor
>             Fix For: 1.latest, 2.latest
>
>
> 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