Uploaded image for project: 'Apache NiFi'
  1. Apache NiFi
  2. NIFI-3051

Encrypt Config - XML Parse Exception Occurs on Login Identity Providers File

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 1.1.0
    • Fix Version/s: 1.1.0
    • Component/s: Tools and Build
    • Labels:
      None

      Description

      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 Andy LoPresto and he has agreed to investigate.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                alopresto Andy LoPresto
                Reporter:
                YolandaMDavis Yolanda M. Davis
              • Votes:
                0 Vote for this issue
                Watchers:
                4 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: