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

Formatter consistency change broke EBO usage in maintenance documents

    Details

    • Type: Bug Fix Bug Fix
    • Status: Closed Closed
    • Priority: Blocker Blocker
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: KFS Release 4.0, 1.0.3
    • Component/s: Development
    • Labels:
      None
    • Similar issues:
      KULRICE-9186Changes for KULRICE-7626 broke Term Specification maintenence document
      KULRICE-4258Inconsistent use of Formatters in maintenance framework
      KULRICE-7481Failing to load the EBO based on the stateCode and zipCode
      KULRICE-7133Document search number formatter not formatting properly
      KULRICE-5600Uif Framework: Change Formatter property on AttributeField to PropertyEditor
      KULRICE-5632Implement KewModuleService so that document and document type ebos are loaded through remote services
      KULRICE-13767Create smoke test for KRAD Maintenance Document to test forceUppercase in DD and @ForceUppercase usage
      KULRICE-4301Improve consistency of service namespaces
      KULRICE-9197KRAD 2.2.0 Maintenance Document: Not indicating changed fields
      KULRICE-2467code change in field utils broke many kfs lookups
    • Rice Module:
      KNS
    • Application Requirement:
      KFS
    • KAI Review Status:
      Not Required
    • KTI Review Status:
      Not Required

      Description

      The recent change on KULRICE-4258 broke the account inquiry and possibly any maintenance document or inquiry screen which contains a property on an EBO object as a related business object.

      The one instance of this which I have identified is in FieldUtils.getPropertyField(). The snippet below attempts to instantiate the related BO without first checking whether it can. In the case of an EBO, that class object is an interface and this blows up. Any code in FieldUtils needs to ensure that it has the implementation object before attempting to instantiate it.

      try

      { field.setFormatter(ObjectUtils.getFormatterWithDataDictionary(businessObjectClass.newInstance(), attributeName)); }

      catch (Exception e)

      { LOG.error("Unable to get new instance of business object class: " + businessObjectClass.getName(), e); throw new RuntimeException("Unable to get new instance of business object class: " + businessObjectClass.getName(), e); }

        Issue Links

          Activity

          Hide
          Eric Westfall added a comment -

          Jerry, can you take a look at this one? Thanks.

          Show
          Eric Westfall added a comment - Jerry, can you take a look at this one? Thanks.
          Hide
          Jerry Neal (Inactive) added a comment -

          Yes I'll take a look

          Show
          Jerry Neal (Inactive) added a comment - Yes I'll take a look
          Hide
          Jerry Neal (Inactive) added a comment -

          Jonathan,

          What screen did you see the exception on?

          Jerry

          Show
          Jerry Neal (Inactive) added a comment - Jonathan, What screen did you see the exception on? Jerry
          Hide
          Jonathan Keller added a comment -

          It was the account inquiry which I found it on. It was attempting to instantiate the award information near the bottom. It was attempting to instantiate the ContractsAndGrantsAccountAwardInformation interface.

          Show
          Jonathan Keller added a comment - It was the account inquiry which I found it on. It was attempting to instantiate the award information near the bottom. It was attempting to instantiate the ContractsAndGrantsAccountAwardInformation interface.
          Hide
          Jerry Neal (Inactive) added a comment -

          Thanks Jonathan. This is fixed now

          Show
          Jerry Neal (Inactive) added a comment - Thanks Jonathan. This is fixed now
          Hide
          Jonathan Keller added a comment -

          Verified in KFS CNV.

          Show
          Jonathan Keller added a comment - Verified in KFS CNV.

            People

            • Assignee:
              Jerry Neal (Inactive)
              Reporter:
              Jonathan Keller
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Structure Helper Panel