Uploaded image for project: 'MidPoint'
  1. MidPoint
  2. MID-6074

Importing Object created by Ninja: Item has no definition while parsing ExtensionType

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Cannot Reproduce
    • Affects Version/s: None
    • Fix Version/s: 4.1
    • Component/s: None
    • Labels:
    • Environment:

      UserType with Schema Extension (xsd:string)

      latest ninja (also older versions)

      latest 4.1-SNAPSHOT (also older versions)

    • Subscription:
      Active subscription

      Description

      1) Export a user via ninja**

      2) Use "Import object" in GUI

      3) select exported XML

      4) Error:

      Item {http://curms.rsint.net/xml/ns/curms/extension}rsInternationalGivenName has no definition (schema present, in container PCD:{.../common/common-3}extension {http://curms.rsint.net/xml/ns/curms/extension}UserExtensionType[0,1],dyn,RAM,runtime)while parsing ( type={http://midpoint.evolveum.com/xml/ns/public/common/common-3}ExtensionType {http://curms.rsint.net/xml/ns/curms/extension}rsInternationalGivenName => parser ValueParser(DOMe, {http://curms.rsint.net/xml/ns/curms/extension}rsInternationalGivenName: Martin) {http://curms.rsint.net/xml/ns/curms/extension}rsInternationalFamilyName => parser ValueParser(DOMe, {http://curms.rsint.net/xml/ns/curms/extension}rsInternationalFamilyName: Hoffmann) )

      This is how the working object looks in GUI

      <user xmlns="http://midpoint.evolveum.com/xml/ns/public/common/common-3" xmlns:c="http://midpoint.evolveum.com/xml/ns/public/common/common-3" xmlns:icfs="http://midpoint.evolveum.com/xml/ns/public/connector/icf-1/resource-schema-3" xmlns:org="http://midpoint.evolveum.com/xml/ns/public/common/org-3" xmlns:q="http://prism.evolveum.com/xml/ns/public/query-3" xmlns:ri="http://midpoint.evolveum.com/xml/ns/public/resource/instance-3" xmlns:t="http://prism.evolveum.com/xml/ns/public/types-3" oid="9d4a03d9-5762-42bd-87e9-240d9d1d4a1a" version="121">
       <name>00054171</name>
       <extension xmlns:gen547="http://curms.rsint.net/xml/ns/curms/extension">
       <gen547:rsInternationalGivenName>Martin</gen547:rsInternationalGivenName>
       <gen547:rsInternationalFamilyName>Hoffmann</gen547:rsInternationalFamilyName>

      The broken object created by ninja 

      <?xml version="1.0" encoding="UTF-8"?>
      <c:objects xmlns="http://midpoint.evolveum.com/xml/ns/public/common/common-3"
       xmlns:c="http://midpoint.evolveum.com/xml/ns/public/common/common-3"
       xmlns:org="http://midpoint.evolveum.com/xml/ns/public/common/org-3">
      <user xmlns="http://midpoint.evolveum.com/xml/ns/public/common/common-3" xmlns:c="http://midpoint.evolveum.com/xml/ns/public/common/common-3" xmlns:icfs="http://midpoint.evolveum.com/xml/ns/public/connector/icf-1/resource-schema-3" xmlns:org="http://midpoint.evolveum.com/xml/ns/public/common/org-3" xmlns:q="http://prism.evolveum.com/xml/ns/public/query-3" xmlns:ri="http://midpoint.evolveum.com/xml/ns/public/resource/instance-3" xmlns:t="http://prism.evolveum.com/xml/ns/public/types-3" oid="9d4a03d9-5762-42bd-87e9-240d9d1d4a1a" version="121">
       <name>00054171</name>
       <extension xmlns:gen683="http://curms.rsint.net/xml/ns/curms/extension" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:c="http://midpoint.evolveum.com/xml/ns/public/common/common-3" xsi:type="c:ExtensionType">
       <gen683:rsInternationalGivenName>Martin</gen683:rsInternationalGivenName>
       <gen683:rsInternationalFamilyName>Hoffmann</gen683:rsInternationalFamilyName>

      This part seems to cause the trouble:
      xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:c="http://midpoint.evolveum.com/xml/ns/public/common/common-3" xsi:type="c:ExtensionType"
      Importing it without those namespace definitions seems to work.

      In a failover scenario this could be very troubling, as all previously created ninja-exports seem to be broken and unusable without manually fixing thousands of objects.

        Attachments

          Activity

            People

            Assignee:
            hoffm_ma Martin Hoffmann
            Reporter:
            hoffm_ma Martin Hoffmann
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: