Skip to content

MIME type #194

Closed
Closed

Description

@kyrias

It would be nice if there was a registered MIME type for msgpack, for use in eg. APIs.

Activity

  1. methane commented on Apr 10, 2015

    @methane
    Member

    I agree.
    "application/x-msgpack" should be documented somewhere.

  2. kyrias commented on Apr 10, 2015

    @kyrias
    Author

    Well, x- is explicitly unregistered, and it’s also deprecated now since they made registering a proper media type simpler, so it should be rather easy to get application/msgpack registered.

  3. kuenishi commented on Apr 11, 2015

    @kuenishi
    Member

    Fmmm. Do you know how easy is it to register? Looks like there's an application page and vendor/personal formats are rather easier to register. Standard formats requires being standardised, that's what library maintainers are not interested in.

  4. edsiper commented on Jun 14, 2016

    @edsiper
  5. arteymix commented on Aug 3, 2016

    @arteymix

    Hi, just doing a follow-up here as I need to use some media type for a data service.

    Is it reasonable to assume that vnd.msgpack will eventually be registered and use it as a value?

  6. Qix- commented on Aug 3, 2016

    @Qix-

    @kyrias Which RFC deprecates x-? To my knowledge it's still a thing (RFC 2045/2046, which have not been obsoleted yet).


    Looks like there's an application page and vendor/personal formats are rather easier to register.

    @kuenishi correct. You'll want to register it as application/vnd.messagepack or application/vnd.msgpack. MsgPack is considered a vendor media type as per RFC 6838.

    Admittedly I've been reading way too much of the MIME type RFCs lately for work. While I haven't submitted a media type before, I hear the IANA is pretty good about it.

  7. kyrias commented on Aug 4, 2016

    @kyrias
    Author
  8. Qix- commented on Aug 4, 2016

    @Qix-

    @kyrias oh interesting, I had no idea. Thanks for the link!

  9. cemremengu commented on Nov 8, 2016

    @cemremengu

    Just wondering what's the current status of this issue ?

  10. kyrias commented on Nov 8, 2016

    @kyrias
    Author

    The status essentially isn't.

  11. tagomoris commented on Apr 13, 2017

    @tagomoris
    Member

    @frsyuki ping?
    application/vnd.msgpack looks good to me.

  12. frsyuki commented on Apr 13, 2017

    @frsyuki
    Member

    "x-" was deprecated by RFC 6648 which was published June 2012, but msgpack exists since February 2009.
    From Github code search, application/x-msgpack is commonly used.

    Therefore, registering application/x-msgpack officially is more beneficial than registering application/vnd.msgpack for the users, if possible.

    RFC 6638 admits that there were wide use of "x-" names and Appendix A mentions that unfaceted "x-" names can also be registered. Although it also mentions some restrictions, and IANA or IESG or IETF or something unknown might advice me to take other ways, but I think it's worth to try.

  13. frsyuki commented on Apr 18, 2017

    @frsyuki
    Member

    I started crafting the application texts for https://www.iana.org/form/media-types based on RFC 6838.
    There're many examples I can refer to fill out the forms at Media Types list. Especially, applicatoin/json and vnd.apache.thrift.binary are similar to msgpack. application/x-www-form-urlencoded is an example of x- name, and application/sql is an example of format that has various implementatins clearly separated from the format specification.

    Some fields are just obvious:

    • Type Name: "application"
    • Subtype Name: "Standards Tree (no prefix)", "x-msgpack"
    • Encoding Considerations: "binary"
    • Deprecated alias names for this type: N/A
    • Magic number: N/A
    • Macintosh File Type Code: N/A
    • Object Identifier: N/A
  14. frsyuki commented on Apr 18, 2017

    @frsyuki
    Member

    Forms that are easy to fill out:

    • Required Parameters
    • Optional Parameters

    They are charset= of text/html; charset=utf-8, for example. Nothing available for MessagePack.
    They're N/A.

    • Fragment Identifier Considerations

    This is +git of ssh+git, for example. N/A.

    • Restrictions on Usage

    RFC 6848 section 4.11 says that this needs to describe something if the MIME type is not intended to be used widely. Maybe the RFC intends MIME types that wants to secure a name but doesn't want people to use it. N/A for MessagePack.

    • Published specification

    Many existent MIME Types just mentions a website here.
    MessagePack can use http://msgpack.org.
    (O'Reilly's http://shop.oreilly.com/product/0636920032175.do is a good book that mentions about MessagePack, by the way)

    • Intended usage

    Common.

    Here could describe some details but that's mainly intended for other usage types (Limited use or Obsolete). So, nothing here for MessagePack.

  15. frsyuki commented on Apr 18, 2017

    @frsyuki
    Member

    The other forms are more complex.

    • Security Considerations

    JSON says:

    it is possible to use that language's "eval()" function to parse JSON texts. This generally constitutes an unacceptable security risk

    But this doesn't apply to MessagePack.

    Thrift says:

    Apache Thrift does not enforce a security mechanism.
    Users define security features at application or transport level.
    The data carried by Apache Thrift is essentially arbitrary, and can include
    active or executable content. Apache Thrift does not provide or enforce a
    security mechanism, so appropriate mechanisms must be implemented at the
    application or transport level.

    I think almost same text with Thrift works for MessagePack. But a difference is that Thrift includes RPC but MessagePack doesn't. Saying "transport level" is not always accurate. So, MessagePack would say...

    MessagePack does not enforce a security mechanism. Users define security features at application, underlying transport level or data store.
    The objects serialized by MessagePack are essentially arbitrary objects that can contain executable or secret content. Appropriate mechanisms must be implemented at the user application, underlying transport level or data store.
    Deserializing too deeply nested objects, too long strings, or too long arrays can consume
    large amount of memory rapidly depending on the deserialization implementation. When the
    application deserializes objects serialized by untrusted sources, the application must reject
    them appropriately to be tolerant of DoS attack.

  16. 3 remaining items

  17. mnot commented on Nov 12, 2017

    @mnot

    Had a quick chat with an Area Director about this; it should be pretty straightforward.

    The decisions that this community needs to make are:

    • Which media type(s) do you want to register?
    • Do you want a suffix?
    • Do you want to have a draft just for registering the media type, or do you want to make MSGPACK's specification an RFC?

    Happy to answer any process questions, and help with draft authoring / review.

  18. frsyuki commented on Nov 12, 2017

    @frsyuki
    Member

    @mnot Thank you for the comments & actions.

    • Certainly application/msgpack is the media type we would like to use: Reasons why we currently use application/x-msgpack is that application/msgpack is the straightforward MIME type MessagePack should use and x- was the common way to use such "unofficial" MIME types. I'm very sure that having application/msgpack officially registered is the ideal goal the community shares for this media type issue.
    • Having vnd + suffix is a compromise: I don't see technical benefits from having a suffix media type excepting a fact that it feels slightly more official compared to "application/x-msgpack". It seems that using application/x-msgpack is somewhat common way and I don't want to make confusion to those existent users. I thank that I should not decide to use it until we are certain that application/msgpack or application/x-msgpack is unrealistic.
    • If the standarization process of RFC makes the registered version of MessagePack incompatible to existent MessagePack spec, registering the media type only is the way to go. If we can make current specification of MessagePack an RFC without changes of the data format, I would like to make MessagePack an RFC.

    There was a long story about RFC/IETF starting from this comment, 5 years ago.
    There was an unfortunate that the topic was mixed with a discussion whether MessagePack should have Binary type or not (now we have). But our conclusion was not to do it because making MessagePack RFC os too hard process we/I could take at the time, and even worse, it may break compatibility because IETF tends to start building specification from scratch, from our understanding. We can't accept incompatible changes because there are big amount data already serialized & stored in MessagePack format. It ended up having RFC 7049 Concise Binary Object Representation led by another person. It's the current status around standarization of us, although I really don't think it's a good situation.

    I suspect that it may be felt that application/x-msgpack isn't widely used enough to justify grandfathering, but we can see what happens.
    Getting application/msgpack registered would be easier (although still require an RFC).

    I understand about it and I didn't know have an idea that application/msgpack could be easier. What is the best way for us to continue this discussion?

  19. chintan-mishra commented on Nov 28, 2017

    @chintan-mishra

    Which MIME type should be used currently? I am using MsgPack for de-/serialization between Mobile app and Elixir servers. I cannot decide on which MIME type to select for HTTP request.

  20. mnot commented on Jan 12, 2018

    @mnot

    @frsyuki sorry for the delay.

    It should be possible to make the current specification of MsgPack an RFC without changes; it would be published as an Informational RFC.

    I mentioned a +msgpack suffix because it would allow other people to register media types like application/myformat+msgpack, to indicate that my format uses msgpack (just like application/myformat+xml does for XML). This doesn't rule out registering application/msgpack as well (see XML for an example here too).

    Next step should be to generate an Internet-Draft that asks for the registration. I'm happy to help there; if you create a new repo (maybe media-type-registration?) and give me push access to it, I can sketch out the shape of what that would look like, if you want.

  21. rustonaut commented on Aug 17, 2018

    @rustonaut

    One argument against application/x-msgpack is that there is probably also application/x.msgpack out in the wild (I mean that is given RFC6838 the right think to use until msgpack is registered) , and just because application/msgpack is standarized it doesn't mean that your server stops accepting x-msgpack.

  22. ziggythehamster commented on Jan 23, 2019

    @ziggythehamster

    I'd like to give my +1 to application/msgpack and +msgpack, ignoring the current wild west situation of x-msgpack and vnd.msgpack. It's probably not too late to move to the correct MIME-type.

  23. Qix- commented on Apr 13, 2020

    @Qix-

    @ofiala-a51 The big green "open" indicates this is still ongoing.

  24. mig-hub commented on Sep 10, 2020

    @mig-hub

    And what about file extension?

  25. Saiv46 commented on Feb 29, 2024

    @Saiv46

    Filled out new application for a Media Type, as there was no update from @frsyuki.

    @mig-hub MessagePack is an encoding format, it doesn't provide the file format and so doesn't require an extension.

  26. Saiv46 commented on May 15, 2024

    @Saiv46
  27. Saiv46 commented on May 15, 2024

    @Saiv46

    @kyrias This issue can be finally closed.

  28. kuenishi commented on May 17, 2024

    @kuenishi
    Member

    Great news! Thank you for the work.

  29. Qix- commented on May 21, 2024

    @Qix-

    Wow, some part of my soul just achieved closure. Congrats! :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions