Uploaded image for project: 'Spring Framework'
  1. Spring Framework
  2. SPR-16742

Invalid mime type application/stream+json

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Investigating
    • Priority: Minor
    • Resolution: Unresolved
    • Affects Version/s: 5.0.5
    • Fix Version/s: 5.x Backlog
    • Component/s: Reactive, Web
    • Labels:
      None
    • Last commented by a User:
      true

      Description

      The mime type used by Spring Web Reactive for streaming json does not seem to be correct. The mime type "application/stream+json" is for an obsolete standard for activity streams:

      https://tools.ietf.org/id/draft-snell-activity-streams-type-01.html

      It has been superseded by the standard:

      https://www.w3.org/TR/activitystreams-core/

      with mime type "application/activity+json".

      However, an activity stream is not the same as streaming json, so neither of these mime types should be used.

      I was unable to find any standard mime type for json streaming, so I'm not sure what the resolution should be. The mime type should not be in the standards tree (since it is not a standard mime type), and the "x-" tree seems to be deprecated (since 1996) (see https://en.wikipedia.org/wiki/Media_type).

      But I'm not sure that using a deprecated media type in the standards tree which is not officially registered, was invented for a different purpose, and has been superseded, is the way to go.

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              sdeleuze S├ębastien Deleuze
              Reporter:
              sebster Sebastiaan van Erk
              Last updater:
              Spring Issues
              Votes:
              1 Vote for this issue
              Watchers:
              6 Start watching this issue

                Dates

                Created:
                Updated:
                Days since last comment:
                2 years, 35 weeks, 5 days ago