Uploaded image for project: 'Infinispan'
  1. Infinispan
  2. ISPN-3150

Allow specifying "Accept" type for REST server for byte array values

This issue belongs to an archived project. You can view it, but you can't modify it. Learn more

XMLWordPrintable

    • Icon: Enhancement Enhancement
    • Resolution: Done
    • Icon: Major Major
    • 5.3.0.Final
    • 5.2.6.Final, 5.3.0.Final
    • Server
    • None

      Currently, byte array values are sent to the client with Content-type:application/x-java-serialized-object
      See https://github.com/infinispan/infinispan/blob/master/server/rest/src/main/scala/org/infinispan/rest/Server.scala#L177

      It would be nice if the default value for byte arrays was application/octet-stream because serializable types are already being sent back as application/x-java-serialized-object, which covers the case when a custom object (not byte array) is put in the cache. Or allow users to specify octet-stream by "Accept" HTTP header.

              mgencur Martin Gencur (Inactive)
              mgencur Martin Gencur (Inactive)
              Archiver:
              rhn-support-adongare Amol Dongare

                Created:
                Updated:
                Resolved:
                Archived: