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

Nested collections of a reference throwing exception when maintenance document is canceled and not validating required


    • Similar issues:
      KULRICE-5823make it so that attributes are not validated when eDocLite is canceled
      KULRICE-6312DictionaryObjectAttributeValueReader does not handle AttributeDefinitions that refer to a nested property within a collection (for usage in lookups)
      KULRICE-10059Setting collection field as readonly throws exception
      KULRICE-11710Cancel on new Context Maintenance causes error 500
      KULRICE-5089Nested KSB Calls failing due to Null LocaleResolver reference
      KULRICE-12343RoleLookupableHelperServiceImpl Issue with references to refresh
      KULRICE-4776FieldUtils throws exception when old collection lines do not exist
      KULRICE-9032cancelling a document with client side validation disabled
      KULRICE-12648Maintenance Document cancel dialog causes scrollbars to disappear
      KULRICE-5774Nested bean of a collection not found when adding a collection item
    • Rice Module:
    • Application Requirement:


      If you have a maintainable collection like vendorHeader.vendorSupplierDiversities, where vendorHeader is a reference and vendorSupplierDiversities is a collection of vendorHeader there are a couple of
      problems in the maintenance framework:

      1) When canceling a document and confirming, class cast exception is coming from BusinessObjectServiceImpl#addMaintainableItemRestrictions. This is because vendorHeader is null and PropertyUtils does not handle that correctly

      2) Required fields on collection not getting validated. This is due to the logic of MaintainableDocumentDictionaryServiceImpl:getCollectionDefinition. This method assumes that if the collection name contains a '.', then it is a collection of a collection. But that is not the case here.

        Issue Links


          Jonathan Keller added a comment -

          OK, I applied the attached patch to resolve this issue.

          Jonathan Keller added a comment - OK, I applied the attached patch to resolve this issue.


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


              • Created:

                Structure Helper Panel