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

The UiDocumentServiceImpl.getAttributeDefnId() has a code typo which results in a class cast exception

    Details

    • Type: Bug Fix Bug Fix
    • Status: Closed Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 1.0
    • Component/s: Development
    • Labels:
      None
    • Similar issues:
      KULRICE-6761Class cast exception in EntityMapper
      KULRICE-5838Modify code which generates SQL for the detailed document search to treat the group ID as a string instead of a number to prevent a type casting issue in Oracle when the SQL is used.
      KULRICE-6388Class cast exception when doing an edit/copy on the Maintainable documents
      KULRICE-1112Exception when exporting a Document Type which has a security definition
      KULRICE-3343KimTypeServIveBase class has protected method which can return null but calling method is assuming non-null value
      KULRICE-5040DataExporter class in KNS does not flush outputstream after export which can result in truncated xml files
      KULRICE-7447If KEW user options table has malformed JSON, users can not be loaded by workflow engine
      KULRICE-10575DemoTravelAccountMaintenanceEditSmokeTest testDemoTravelAccountMaintenanceEditBookmark ClassCastException: org.kuali.rice.krad.demo.travel.account.TravelAccount cannot be cast to java.lang.String
      KULRICE-12317groupAttributes.tag references document variable which is not in the JSTL context
      KULRICE-12652IT Failure kns.workflow.DataDictionarySearchableAttributeTest AccountWithDDAttributesDocument cannot be cast to org.kuali.rice.krad.bo.PersistableBusinessObject
    • Rice Module:
      KIM
    • Application Requirement:
      Rice

      Description

      The UiDocumentServiceImpl.getAttributeDefnId() has a code typo which results in a class cast exception. The current method is:

      protected String getAttributeDefnId(AttributeDefinition definition) {
      if (definition instanceof KimDataDictionaryAttributeDefinition)

      { return ((KimDataDictionaryAttributeDefinition)definition).getKimAttrDefnId(); } else { return ((KimDataDictionaryAttributeDefinition)definition).getKimAttrDefnId(); }

      }

        Activity

        Hide
        David Elyea added a comment -

        Fixed to be:

        protected String getAttributeDefnId(AttributeDefinition definition) {
        if (definition instanceof KimDataDictionaryAttributeDefinition)

        { return ((KimDataDictionaryAttributeDefinition)definition).getKimAttrDefnId(); }

        else

        { return ((KimNonDataDictionaryAttributeDefinition)definition).getKimAttrDefnId(); }

        }

        Show
        David Elyea added a comment - Fixed to be: protected String getAttributeDefnId(AttributeDefinition definition) { if (definition instanceof KimDataDictionaryAttributeDefinition) { return ((KimDataDictionaryAttributeDefinition)definition).getKimAttrDefnId(); } else { return ((KimNonDataDictionaryAttributeDefinition)definition).getKimAttrDefnId(); } }
        Hide
        Eric Westfall added a comment -

        Bulk change of all Rice 1.0 issues to closed after public release.

        Show
        Eric Westfall added a comment - Bulk change of all Rice 1.0 issues to closed after public release.

          People

          • Assignee:
            David Elyea
            Reporter:
            David Elyea
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Structure Helper Panel