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

Dictionary Validation Service does not handle lists of primitives

    Details

    • Similar issues:
      KULRICE-3231Stop BO dictionary service from returning null for boolean calls
      KULRICE-5947Add validation for data dictionary defined custom attributes
      KULRICE-8219Services in KIM referencing KRAD dictionary validation service
      KULRICE-8683IdentityCurrentAndArchivedServiceImpl.getDefaultNamesForPrincipalId() does not handle missing principals
      KULRICE-4442Person service does not handle extension objects properly
      KULRICE-12251UiDocumentServiceImpl#getAttributeDefinition does not handle if a KIM type does not have a service name
      KULRICE-8425Problems with UifBeanFactoryPostProcessor expression handling for nested properties and lists prevent bean property overrides (such as fieldInquiry.render) from working
      KULRICE-9599Validation framework improvement for handling collections differently
      KULRICE-3625problem with handling of SecurityAttributes in standalone rice
      KULRICE-11351KRAD should not differentiate between primitive types and their wrappers during DD validation
    • Rice Module:
      KRAD
    • Application Requirement:
      Rice
    • KAI Review Status:
      Not Required
    • KTI Review Status:
      Not Required

      Description

      Kuali student DTO's often have lists of primitives... often lists of IDs or Keys for example

      @XmlElement
      private List<String> campusCalendarKeys;

      It is not clear how to code their validation in the dictionary.
      (A) I have tried simply coding them as simple AttributeDefinitions but...
      ===================================================================
      but (1) I get a custom.error whenever I try to validate anything except null, (including an empty list)
      and (2) there is no place to apply the minOccurs/maxOccurs

      (B) I have tried coding them as CollectionDefinitons but
      ====================================================
      (1) I don't now what to put in the dataObjectClass? I tried leaving it blank and I have tried "java.lang.String"
      (2) I can code the minOccurs/maxOccurs but they are not checked.
      for example I put in min=1 and max=2 and all passed but I would would expect the following:
      null = passes but should error
      empty list = passes but should error
      list of 1 = pass ok
      list of 2 = pass ok
      list of 3 = passes but should error
      (3) how/where do I code detailed validations such as validchars, min/max length, min/max values of the string?

        Issue Links

          Activity

          Hide
          Will Gomes (Inactive) added a comment -

          B1 & B2 should work, not sure about B3

          Show
          Will Gomes (Inactive) added a comment - B1 & B2 should work, not sure about B3

            People

            • Assignee:
              Unassigned
              Reporter:
              Norm Wright
            • Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:

                Structure Helper Panel