Uploaded image for project: 'MidPoint'
  1. MidPoint
  2. MID-2808

Extended binary attribute for OrgType is not saved from GUI to repository

    XMLWordPrintable

    Details

    • Git Revision:
      git-v3.4devel-454-g8a57020

      Description

      Schema has been extended by:

        <xsd:complexType name="OrgTypeExtensionType">
          <xsd:annotation>
            <xsd:appinfo>
              <a:extension ref="c:OrgType"/>
            </xsd:appinfo>
          </xsd:annotation>
          <xsd:sequence>
            <xsd:element name="municipalityLogo" type="xsd:base64Binary" minOccurs="0">
              <xsd:annotation>
                <xsd:appinfo>
                  <a:indexed>true</a:indexed>
                    <a:displayName>Municipality Logo</a:displayName>
                    <a:help>TODO</a:help>
                  </xsd:appinfo>
                <xsd:documentation>
      TODO
                </xsd:documentation>
              </xsd:annotation>
            </xsd:element>
          </xsd:sequence>
        </xsd:complexType>
      

      Creating new organization with name (gama) and administrativeStatus (enabled) and selecting the value (upload a file, size cca 100 kB) will not store the value to the repository, no error is reported.

      2016-02-19 14:05:26,148 [] [http-bio-8080-exec-3] TRACE (com.evolveum.midpoint.web.component.prism.ObjectWrapper): Creating delta from wrapper ObjectWrapper(org (ADDING) 10 containers): adding object, creating complete ADD delta:
      ObjectDelta<OrgType>(OrgType:null,ADD):
        org: (null, OrgType)
            parentOrgRef: 
              oid=00000000-dc00-dc00-0005-000000000001(OrgType)
            assignment: 
              id=null
                targetRef: oid=00000000-dc00-dc00-0005-000000000001(OrgType)
            name: gama
            activation: 
                administrativeStatus: ENABLED
      2016-02-19 14:05:26,149 [] [http-bio-8080-exec-3] TRACE (com.evolveum.midpoint.web.page.admin.PageAdminObjectDetails): User delta computed from form:
            ObjectDelta<OrgType>(OrgType:null,ADD):
              org: (null, OrgType)
                  parentOrgRef: 
                    oid=00000000-dc00-dc00-0005-000000000001(OrgType)
                  assignment: 
                    id=null
                      targetRef: oid=00000000-dc00-dc00-0005-000000000001(OrgType)
                  name: gama
                  activation: 
                      administrativeStatus: ENABLED
      

      Later in the log it shows nothing about this attribute in deltas being passed:

                Org primary delta:
                  ObjectDelta<OrgType>(OrgType:null,ADD):
                    org: (null, OrgType)
                        parentOrgRef: 
                          oid=00000000-dc00-dc00-0005-000000000001(OrgType)
                        assignment: 
                          id=null
                            targetRef: oid=00000000-dc00-dc00-0005-000000000001(OrgType)
                        name: gama
                        activation: 
                            administrativeStatus: ENABLED
                Org secondary delta:
                  ObjectDeltaWaves: single wave
                    ObjectDelta<OrgType>(OrgType:null,MODIFY):
                      activation/effectiveStatus
                        REPLACE: ENABLED
                      activation/enableTimestamp
                        REPLACE: 2016-02-19T14:05:26.238+01:00
                      parentOrgRef
                        ADD: oid=00000000-dc00-dc00-0005-000000000001(OrgType)
                      roleMembershipRef
                        REPLACE: oid=00000000-dc00-dc00-0005-000000000001(OrgType)
                      iteration
                        REPLACE: 0
                      iterationToken
                        REPLACE: 
                Org executed deltas: []
            PROJECTIONS: none
      

        Attachments

          Activity

            People

            Assignee:
            vix Ivan Noris
            Reporter:
            vix Ivan Noris
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: