Uploaded image for project: 'Magnolia REST Framework'
  1. Magnolia REST Framework
  2. MGNLREST-47

Enable setting/getting of binary properties

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • Critical
    • 1.0.2
    • 1.0.1
    • services
    • None
    • Yes

    Description

      Reading out a DAM asset to a file, stripping out the jcr:uuid, jcr:primaryType properties and then doing a POST will not update the binary property.

      The problem is in PropertyUtil.createValue() where conversion of the submitted String to a Binary Value object should be done but isn't.

      Getting/setting binary properties should always occur base64 encoded.

      Checklists

        Acceptance criteria

        Attachments

          1. asset_jcrContent.json
            7 kB
          2. asset.json
            0.9 kB
          3. test.json
            6 kB

          Activity

            People

              pmundt Philip Mundt
              tmattsson Tobias Mattsson
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Checklists

                  Bug DoR
                  Task DoD