Uploaded image for project: 'Kuali Rice Development'
  1. Kuali Rice Development
  2. KULRICE-12836

Role qualifiers lost on role maintenance document

    Details

    • Type: Task
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 2.4
    • Fix Version/s: 2.5
    • Component/s: Development
    • Security Level: Public (Public: Anyone can view)
    • Rice Module:
      KIM
    • KAI Review Status:
      Not Required
    • KTI Review Status:
      Not Required
    • Code Review Status:
      Not Required
    • Contributing Institution:
      Indiana Univ
    • Include in Release Notes?:
      Yes

      Description

      When using the role maintenance document if you attempt to add role members with qualifiers those values are not persisted appropriately. This seems to be caused during the IdentityManagementRoleDocumetn#addMember method. That method is manually setting the ID for the KimDocumentRoleMember that is being added and JPA does not seem to cascade that value down to its children (KimDocumentRoleQualifiers in this case). When the pending qualifiers are saved to the database the role member ID is null so they are not loaded properly when the objects are refetched from the database to be persisted in the main KIM tables. I'm guessing that OJB automatically maintained the relationship in the past and there is some problem with the way these objects are mapped to JPA which is preventing this from working. It might also be an issue since the code is manually setting the role member ID so JPA assumes it will be manually cascaded to the child objects.

        Attachments

          Activity

          Hide
          jawbenne James Bennett added a comment -

          This has been fixed by modifying the IdentityManagementRoleDocument so it updates the role member ID for each qualifier before saving the document.

          Show
          jawbenne James Bennett added a comment - This has been fixed by modifying the IdentityManagementRoleDocument so it updates the role member ID for each qualifier before saving the document.

            People

            • Assignee:
              jawbenne James Bennett
              Reporter:
              jawbenne James Bennett
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: