Uploaded image for project: 'ModeShape'
  1. ModeShape
  2. MODE-511

REST server does not correctly encode binary values

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Blocker Blocker
    • 0.6
    • 0.5
    • Web Application
    • None

      The REST server (or rather web application) does not properly encode binary values in the JSON results, and instead is embedding the toString() version of the byte[]. The binary values should instead be encoded in Base64, and the REST client should be able to then read (or upload) binary values using this approach.

      (If the binary value is already a Base64-encoded representation, then the JSON content will just be a Base64-encoded representation of the value that happens to be Base64-encoded. Shouldn't be a problem.)

        1. dna-513.1.patch
          6 kB
          Randall Hauch
        2. DNA-513.2.patch
          41 kB
          Randall Hauch

              rhauch Randall Hauch (Inactive)
              rhauch Randall Hauch (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

                Created:
                Updated:
                Resolved: