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

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

    XMLWordPrintable

Details

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

    Description

      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.

      Attachments

        Activity

          People

            mgencur Martin Gencur
            mgencur Martin Gencur
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: