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

Assigning role throws exception: Unsupported object type qname RoleType

    XMLWordPrintable

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 1.10 (Phoebe)
    • 1.10 (Phoebe)
    • GUI
    • None

    Description

      Trying to assign an role to user - throws exception when submitting:

      2011-12-07 14:16:28,198 [MODEL] [http-8080-2] ERROR (com.evolveum.midpoint.model.controller.ModelController): model.modifyObject failed: Unsupported object type qname RoleType
      java.lang.IllegalArgumentException: Unsupported object type qname RoleType
      at com.evolveum.midpoint.schema.constants.ObjectTypes.getObjectTypeFromTypeQName(ObjectTypes.java:156) ~[schema-2.0-SNAPSHOT.jar:na]
      at com.evolveum.midpoint.model.synchronizer.AssignmentEvaluator.evaluateTargetRef(AssignmentEvaluator.java:171) ~[model-impl-2.0-SNAPSHOT.jar:na]
      at com.evolveum.midpoint.model.synchronizer.AssignmentEvaluator.evaluateAssignment(AssignmentEvaluator.java:136) ~[model-impl-2.0-SNAPSHOT.jar:na]
      at com.evolveum.midpoint.model.synchronizer.AssignmentEvaluator.evaluate(AssignmentEvaluator.java:114) ~[model-impl-2.0-SNAPSHOT.jar:na]
      at com.evolveum.midpoint.model.synchronizer.AssignmentProcessor.processAssignments(AssignmentProcessor.java:156) ~[model-impl-2.0-SNAPSHOT.jar:na]
      at com.evolveum.midpoint.model.synchronizer.UserSynchronizer.synchronizeUser(UserSynchronizer.java:142) ~[model-impl-2.0-SNAPSHOT.jar:na]
      at com.evolveum.midpoint.model.controller.ModelController.modifyObject_aroundBody8(ModelController.java:488) [model-impl-2.0-SNAPSHOT.jar:na]
      at com.evolveum.midpoint.model.controller.ModelController$AjcClosure9.run(ModelController.java:1) [model-impl-2.0-SNAPSHOT.jar:na]
      at org.aspectj.runtime.reflect.JoinPointImpl.proceed(JoinPointImpl.java:149) [aspectjrt-1.6.11.jar:na]
      at com.evolveum.midpoint.util.aspect.MidpointAspect.markSubsystem(MidpointAspect.java:159) [util-2.0-SNAPSHOT.jar:na]
      at com.evolveum.midpoint.util.aspect.MidpointAspect.ajc$inlineAccessMethod$com_evolveum_midpoint_util_aspect_MidpointAspect$com_evolveum_midpoint_util_aspect_MidpointAspect$markSubsystem(MidpointAspect.java:1) [util-2.0-SNAPSHOT.jar:na]
      at com.evolveum.midpoint.util.aspect.MidpointAspect.processModelNdc(MidpointAspect.java:82) [util-2.0-SNAPSHOT.jar:na]
      at com.evolveum.midpoint.model.controller.ModelController.modifyObject(ModelController.java:458) [model-impl-2.0-SNAPSHOT.jar:na]
      at com.evolveum.midpoint.web.model.impl.UserManagerImpl.submit(UserManagerImpl.java:151) [UserManagerImpl.class:na]
      at com.evolveum.midpoint.web.model.impl.UserManagerImpl.submit(UserManagerImpl.java:1) [UserManagerImpl.class:na]
      at com.evolveum.midpoint.web.controller.account.UserDetailsController.savePerformed_aroundBody30(UserDetailsController.java:243) [UserDetailsController.class:na]
      at com.evolveum.midpoint.web.controller.account.UserDetailsController$AjcClosure31.run(UserDetailsController.java:1) [UserDetailsController$AjcClosure31.class:na]
      at org.aspectj.runtime.reflect.JoinPointImpl.proceed(JoinPointImpl.java:149) [aspectjrt-1.6.11.jar:na]
      at com.evolveum.midpoint.util.aspect.MidpointAspect.markSubsystem(MidpointAspect.java:159) [util-2.0-SNAPSHOT.jar:na]
      at com.evolveum.midpoint.util.aspect.MidpointAspect.markSubsystem(MidpointAspect.java:159) [util-2.0-SNAPSHOT.jar:na]
      at com.evolveum.midpoint.util.aspect.MidpointAspect.ajc$inlineAccessMethod$com_evolveum_midpoint_util_aspect_MidpointAspect$com_evolveum_midpoint_util_aspect_MidpointAspect$markSubsystem(MidpointAspect.java:1) [util-2.0-SNAPSHOT.jar:na]
      at com.evolveum.midpoint.util.aspect.MidpointAspect.processWebNdc(MidpointAspect.java:87) [util-2.0-SNAPSHOT.jar:na]
      at com.evolveum.midpoint.web.controller.account.UserDetailsController.savePerformed(UserDetailsController.java:223) [UserDetailsController.class:na]
      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[na:1.6.0_26]
      at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) ~[na:1.6.0_26]
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) ~[na:1.6.0_26]
      at java.lang.reflect.Method.invoke(Method.java:597) ~[na:1.6.0_26]
      at com.sun.el.parser.AstValue.invoke(AstValue.java:234) [el-impl-2.2.jar:na]
      at com.sun.el.MethodExpressionImpl.invoke(MethodExpressionImpl.java:297) [el-impl-2.2.jar:na]
      at com.sun.faces.facelets.el.TagMethodExpression.invoke(TagMethodExpression.java:105) [jsf-impl-2.1.0.jar:2.1.0-FCS]
      ...

      How to replicate:
      1) import OpenDJ advanced sample
      2) import folowing role:

      <role oid="12345678-d34d-b33f-f00d-987987987988"
              xmlns="http://midpoint.evolveum.com/xml/ns/public/common/common-1.xsd">
          <name>Pirate Role</name>    
          <assignment>
              <accountConstruction>
                      <resourceRef oid="ef2bc95b-76e0-48e2-86d6-3d4f02d3e1a2" type="ResourceType"/>
              </accountConstruction>
          </assignment>    
      </role>
      

      where "ef2bc95b-76e0-48e2-86d6-3d4f02d3e1a2" is OpenDJ oid.

      Assign this role to any user and "Save". The exception is thrown instantly.

      Attachments

        Activity

          People

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

            Dates

              Created:
              Updated:
              Resolved: