Kuali Rice Development
  1. Kuali Rice Development
  2. KULRICE-14109

non-working @XmlJavaTypeAdapter usage in KIM services

    Details

    • Type: Bug Fix Bug Fix
    • Status: Open Open
    • Priority: Major Major
    • Resolution: Unresolved
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: Development
    • Security Level: Public (Public: Anyone can view)
    • Labels:
    • Environment:
      Rice 2.3.3 (was not available in Affects Version/s list in JIRA)
    • Similar issues:
      KULRICE-3624The KIM services exposed to the bus using jaxws need to be reviewed to verify that the XmlJavaTypeAdapter classes are working properly on all methods
      KULRICE-8219Services in KIM referencing KRAD dictionary validation service
      KULRICE-4666Evaluate "remote" KIM services
      KULRICE-2355KIM Identity Service Test
      KULRICE-2356KIM Authentication Service Test
      KULRICE-2269Write Unit Tests for KIM Services
      KULRICE-2394KIM Responsibility Service Test
      KULRICE-5444Fix Kim service namespaces
      KULRICE-1118Develop KIM Identity Service base service methods
      KULRICE-5443Remove non-soap kim services
    • Rice Module:
      KIM
    • KAI Review Status:
      Not Required
    • KTI Review Status:
      Not Required
    • Code Review Status:
      Not Required
    • Include in Release Notes?:
      Yes

      Description

      Certain methods of KIM's RoleService have a bad XmlJavaTypeAdapter specified. Particularly, some that have return type List<Map<String, String>> have the adapter set to MapStringStringAdapter. This adapter handles Map<String, String> but not List<Map<String, String>>. The following error occurs:

      Caused by: java.lang.ClassCastException: java.util.ArrayList cannot be cast to java.util.Map
      at org.kuali.rice.kim.api.role.jaxws_asm.GetNestedRoleQualifersForPrincipalByNamespaceAndRolenameResponse_WrapperTypeHelper1.createWrapperObject(Unknown Source)
      at org.apache.cxf.jaxws.interceptors.WrapperClassOutInterceptor.handleMessage(WrapperClassOutInterceptor.java:100)
      

        Activity

        Hide
        Ken Geis added a comment -

        See also KULRICE-3624.

        Show
        Ken Geis added a comment - See also KULRICE-3624 .
        Hide
        Ken Geis added a comment -

        Because of this issue, the following KIM API methods (at least) cannot be accessed via SOAP:

        • RoleService.getRoleQualifersForPrincipalByRoleIds(..)
        • RoleService.getRoleQualifersForPrincipalByNamespaceAndRolename(..)
        • RoleService.getNestedRoleQualifersForPrincipalByNamespaceAndRolename(..)
        • RoleService.getNestedRoleQualifiersForPrincipalByRoleIds(..)
        Show
        Ken Geis added a comment - Because of this issue, the following KIM API methods (at least) cannot be accessed via SOAP: RoleService.getRoleQualifersForPrincipalByRoleIds(..) RoleService.getRoleQualifersForPrincipalByNamespaceAndRolename(..) RoleService.getNestedRoleQualifersForPrincipalByNamespaceAndRolename(..) RoleService.getNestedRoleQualifiersForPrincipalByRoleIds(..)

          People

          • Assignee:
            Unassigned
            Reporter:
            Ken Geis
          • Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

            • Created:
              Updated:

              Structure Helper Panel