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

ASF GitHub Bot commented on NIFI-3051:
--------------------------------------

Github user alopresto commented on the issue:

    https://github.com/apache/nifi/pull/1238
  
    @YolandaMDavis please wait -- I realized I did not change the 
`serializeLoginIdentityProvidersAndPreserveFormat()` to use the new `class` 
criteria instead of the `identifier` as it was before. Need to provide a fix 
and test for that. 
    
    Also would like to get a fix for the logger stuff that was introduced in 
1237 -- Maven build is fine but the tests that depend on asserting against 
`TestAppender` fail in IntelliJ for multiple developers. Removing the 
`<exclusion>` element for `ch.qos.logback:logback-classic` in 
`org.apache.nifi:nifi-properties-loader` in 
`nifi-toolkit-encrypt-config/pom.xml` resolves the test errors, but the built 
toolkit has logging issues because of conflicting logging libraries in the 
path. 


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

Reply via email to