[
https://issues.apache.org/jira/browse/NIFI-3051?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15676236#comment-15676236
]
ASF subversion and git services commented on NIFI-3051:
-------------------------------------------------------
Commit 8568d40cd80ad12a258fbee498b733b78428a608 in nifi's branch
refs/heads/master from [~alopresto]
[ https://git-wip-us.apache.org/repos/asf?p=nifi.git;h=8568d40 ]
NIFI-3051 Fixed issue serializing commented or empty
login-identity-providers.xml.
Cleaned up commented pom.xml contents. (+4 squashed commits)
Squashed commits:
[725860b] NIFI-3051 Switched CET test logging dependency from logback to log4j
as Zookeeper migration has an explicit dependency on log4j as the logging
provider and the two libraries were causing classpath collisions. Now the tests
run in both Maven and Intellij, the tools all build successfully, and the tools
all run (TLS Toolkit, CET, and ZK) without logging provider warnings and print
the expected output to the console.
[0e604c7] NIFI-3051 Changed provider element selection in serialize method to
be by class (org.apache.nifi.ldap.LdapProvider) rather than identifier in case
it has been modified.
Added unit tests.
[300a23d] NIFI-3051 Changed provider element selection to be by class
(org.apache.nifi.ldap.LdapProvider) rather than identifier in case it has been
modified.
Added unit tests.
[a0cdd40] NIFI-3051 Fixed issue serializing commented or empty
login-identity-providers.xml.
Updated and added unit tests. (+1 squashed commit)
Squashed commits:
[b187202] NIFI-3051 - checked in test demonstrating failure to serialize
commented ldap-provider section.
This closes #1238.
Signed-off-by: Andy LoPresto <[email protected]>
> Encrypt Config - XML Parse Exception Occurs on Login Identity Providers File
> ----------------------------------------------------------------------------
>
> Key: NIFI-3051
> URL: https://issues.apache.org/jira/browse/NIFI-3051
> Project: Apache NiFi
> Issue Type: Bug
> Components: Tools and Build
> Affects Versions: 1.1.0
> Reporter: Yolanda M. Davis
> Assignee: Andy LoPresto
>
> I encountered an error when attempting to run encrypt config on a
> login-identity-provider.xml file where the provider with "ldap-provider"
> identity was commented out. The exception received is below:
> org.xml.sax.SAXParseException; lineNumber: 2; columnNumber: 1; Premature end
> of file.
> at groovy.xml.XmlUtil.serialize(XmlUtil.java:454)
> at groovy.xml.XmlUtil.serialize(XmlUtil.java:440)
> at groovy.xml.XmlUtil.serialize(XmlUtil.java:182)
> at groovy.xml.XmlUtil.serialize(XmlUtil.java:151)
> at groovy.xml.XmlUtil$serialize.call(Unknown Source)
> at
> org.codehaus.groovy.runtime.callsite.CallSiteArray.defaultCall(CallSiteArray.java:48)
> at
> org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:113)
> at
> org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:125)
> at
> org.apache.nifi.properties.ConfigEncryptionTool.serializeLoginIdentityProvidersAndPreserveFormat(ConfigEncryptionTool.groovy:693)
> at
> org.apache.nifi.properties.ConfigEncryptionTool$serializeLoginIdentityProvidersAndPreserveFormat$0.call(Unknown
> Source)
> at
> org.codehaus.groovy.runtime.callsite.CallSiteArray.defaultCall(CallSiteArray.java:48)
> at
> org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:113)
> at
> org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:133)
> I've discussed this directly with [~alopresto] and he has agreed to
> investigate.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)