You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@nifi.apache.org by "Chris Sampson (Jira)" <ji...@apache.org> on 2023/10/11 19:57:00 UTC

[jira] [Created] (NIFI-12214) ConsumeElasticsearch doc generation broken

Chris Sampson created NIFI-12214:
------------------------------------

             Summary: 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
             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)