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

Binary attribute set in UI problem

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 3.6 (Comenius)
    • Fix Version/s: 3.7
    • Component/s: Repository
    • Labels:
      None

      Description

      We have created custom binary attribute for user object:

      <xsd:element name="sshPubKey" type="xsd:base64Binary" minOccurs="0" maxOccurs="1">
      <xsd:annotation>
      <xsd:appinfo>
      <a:indexed>true</a:indexed>
      <a:displayName>Ssh Public Key</a:displayName>
      <a:displayOrder>119</a:displayOrder>
      </xsd:appinfo>
      </xsd:annotation>
      </xsd:element>

      If we want to upload a file to attribute, we get error:

      com.evolveum.midpoint.util.exception.SchemaException: Exception when translating PP(

      {http://example.com/xml/ns/mySchema}

      sshPubKey):[PPV(byte[]:byte[115,115,104,45,114,115,97,32,65,65,65,65,66,51,78,122,97,67,49,121,99,50,69,65,65,65,65,66,74,81,65,65,65,81,69,65,48,53,70,87,51,57,101,65,108,120,118,121,86,43,68,88,114,71,80,119,48,70,75,73,107,88,102,87,,... 380 bytes total])]: Can't extract value for saving from prism property value
      PPV(byte[]:byte[115,115,104,45,114,115,97,32,65,65,65,65,66,51,78,122,97,67,49,121,99,50,69,65,65,65,65,66,74,81,65,65,65,81,69,65,48,53,70,87,51,57,101,65,108,120,118,121,86,43,68,88,114,71,80,119,48,70,75,73,107,88,102,87,,... 380 bytes total])

      Please, find attached log file and the key we are trying to upload.

        Attachments

        1. bin
          0.4 kB
          Igor Farinic
        2. idm-2.log
          7 kB
          Igor Farinic

          Activity

            People

            • Assignee:
              ifarinic Igor Farinic
              Reporter:
              ifarinic Igor Farinic
            • Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: