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

When repository objects are referencing invalid (missing) extension attributes, Resource list and Delete all identities throw error

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Cannot Reproduce
    • Affects Version/s: 3.1 (Sinan)
    • Fix Version/s: 3.1.1
    • Component/s: None
    • Labels:
      None

      Description

      I have some users, organizations, accounts. Now I need to test something different in this midpoint. So I replacted extensionschema.xsd in midpoint.home/schema directory and tried to delete objects using Delete all identities. It failed, because some of the extended attributes are not existent (which is correct, because I removed the schema extension). Manual deletion of Users and Organizations worked.

      Also Resource list is not working in this situation:

      operation.com.evolveum.midpoint.model.impl.controller.ModelController.searchObjects
      
          Couldn't search objects in provisioning
          Param: query: Q{null filterPAGING: O: 0,M: 6,BY: name, D:ASCENDING, ,
          Param: searchProvider: PROVISIONING
          Param: paging: PAGING: O: 0,M: 6,BY: name, D:ASCENDING,
          Cause:
      
          Undeclared namespace prefix 'mycustomer' in '$user/extension/mycustomer:employedStatus'
      [8:57:01 AM] Ivan Noris:  Search objects (Repository)
      
          Undeclared namespace prefix 'mycustomer' in '$user/extension/mycustomer:employedStatus'
          Param: query: Q{null filterPAGING: O: 0,M: 6,BY: name, D:ASCENDING, ,
          Param: type: com.evolveum.midpoint.xml.ns._public.common.common_3.ResourceType
          Cause:
      
          Undeclared namespace prefix 'mycustomer' in '$user/extension/mycustomer:employedStatus'
          [ HIDE ERROR STACK ]
      
          java.lang.IllegalArgumentException: Undeclared namespace prefix 'mycustomer' in '$user/extension/mycustomer:employedStatus'
          at com.evolveum.midpoint.util.DOMUtil.reportUndeclaredNamespacePrefix(DOMUtil.java:495)
          at com.evolveum.midpoint.prism.parser.XPathHolder.parse(XPathHolder.java:176)
          at com.evolveum.midpoint.prism.parser.XPathHolder.<init>(XPathHolder.java:93)
          at com.evolveum.midpoint.prism.parser.DomParser.parsePath(DomParser.java:369)
          at com.evolveum.midpoint.prism.parser.DomParser.parsePrimitiveElementValue(DomParser.java:337)
          at com.evolveum.midpoint.prism.parser.DomParser.access$0(DomParser.java:335)
          at com.evolveum.midpoint.prism.parser.DomParser$PrimitiveValueParser.parse(DomParser.java:274)
          at com.evolveum.midpoint.prism.xnode.PrimitiveXNode.parseValue(PrimitiveXNode.java:70)
          at com.evolveum.midpoint.prism.xnode.PrimitiveXNode.getParsedValue(PrimitiveXNode.java:82)
      

        Attachments

          Activity

            People

            Assignee:
            vix Ivan Noris
            Reporter:
            vix Ivan Noris
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: