com.atlassian.crowd.migration.ImportException: Could not validate the XML backup for import. See logs for more details.

Atlassian JIRA | Renan Battaglin | 7 years ago
  1. 0

    Crowd 2.0.X started to consider that a Role is a Group type. Consequently, if a Group and a Role have the same name, during an XML restore, Crowd is reporting the following error: {code} com.atlassian.crowd.migration.ImportException: Could not validate the XML backup for import. See logs for more details. at com.atlassian.crowd.migration.XmlMigrationManagerImpl.importXml(XmlMigrationManagerImpl.java:176) at com.atlassian.crowd.console.action.setup.Import.doUpdate(Import.java:70) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:597) at com.opensymphony.xwork.DefaultActionInvocation.invokeAction(DefaultActionInvocation.java:358) at com.opensymphony.xwork.DefaultActionInvocation.invokeActionOnly(DefaultActionInvocation.java:218) at com.opensymphony.xwork.DefaultActionInvocation.invoke(DefaultActionInvocation.java:192) {code} Instead of failing the restore process and showing the error directly in the UI, Crowd should: 1-) Inform the Admin about the changes with the Role elements. 2-) Inform that having Groups and Roles with the same name in the XML file is a problem in 2.0.X 3-) Ask the Admin if the Roles can be removed (only the ones that have the name matching a group name) 4-) Otherwise, cancel the restore process (without damaging the current instance)

    Atlassian JIRA | 7 years ago | Renan Battaglin
    com.atlassian.crowd.migration.ImportException: Could not validate the XML backup for import. See logs for more details.
  2. 0

    Crowd 2.0.X started to consider that a Role is a Group type. Consequently, if a Group and a Role have the same name, during an XML restore, Crowd is reporting the following error: {code} com.atlassian.crowd.migration.ImportException: Could not validate the XML backup for import. See logs for more details. at com.atlassian.crowd.migration.XmlMigrationManagerImpl.importXml(XmlMigrationManagerImpl.java:176) at com.atlassian.crowd.console.action.setup.Import.doUpdate(Import.java:70) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:597) at com.opensymphony.xwork.DefaultActionInvocation.invokeAction(DefaultActionInvocation.java:358) at com.opensymphony.xwork.DefaultActionInvocation.invokeActionOnly(DefaultActionInvocation.java:218) at com.opensymphony.xwork.DefaultActionInvocation.invoke(DefaultActionInvocation.java:192) {code} Instead of failing the restore process and showing the error directly in the UI, Crowd should: 1-) Inform the Admin about the changes with the Role elements. 2-) Inform that having Groups and Roles with the same name in the XML file is a problem in 2.0.X 3-) Ask the Admin if the Roles can be removed (only the ones that have the name matching a group name) 4-) Otherwise, cancel the restore process (without damaging the current instance)

    Atlassian JIRA | 7 years ago | Renan Battaglin
    com.atlassian.crowd.migration.ImportException: Could not validate the XML backup for import. See logs for more details.

    Root Cause Analysis

    1. com.atlassian.crowd.migration.ImportException

      Could not validate the XML backup for import. See logs for more details.

      at com.atlassian.crowd.migration.XmlMigrationManagerImpl.importXml()
    2. com.atlassian.crowd
      Import.doUpdate
      1. com.atlassian.crowd.migration.XmlMigrationManagerImpl.importXml(XmlMigrationManagerImpl.java:176)
      2. com.atlassian.crowd.console.action.setup.Import.doUpdate(Import.java:70)
      2 frames
    3. Java RT
      Method.invoke
      1. sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      2. sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
      3. sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      4. java.lang.reflect.Method.invoke(Method.java:597)
      4 frames
    4. XWork Tiger Extensions
      DefaultActionInvocation.invoke
      1. com.opensymphony.xwork.DefaultActionInvocation.invokeAction(DefaultActionInvocation.java:358)
      2. com.opensymphony.xwork.DefaultActionInvocation.invokeActionOnly(DefaultActionInvocation.java:218)
      3. com.opensymphony.xwork.DefaultActionInvocation.invoke(DefaultActionInvocation.java:192)
      3 frames