You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It would be nice if there was a registered MIME type for msgpack, for use in eg. APIs.
Reacted by Josh Junon, enil, Satoshi Tagomori, Guillaume Poirier-Morency, shanling2004, jdrydn, Paulo Freitas, Ozan Eğitmen, Jared Mackey, Pierre Kisters and 24 more
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.
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.
@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.
"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.
Reacted by Aleksei Magusev, Josh Junon, Michael Pfaff and Mike McDermott
Reacted by Satoshi Tagomori, Josh Junon, Logan Volkers and Michael Pfaff
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.
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.
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?
Reacted by Tobias Johnson, Daniel Louis Polanco, Wojciech Kaczmarek, Michael Pfaff, Mike McDermott and Henrique Corrêa
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.
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.
Reacted by Josh Junon, Markus Schaber, Takayasu Oyama, velocityzen, Tobias Johnson, Daniel Louis Polanco, Jan Graichen, Lev Kuznetsov, Pierre Kisters, someniatko and 8 more
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.
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.
Reacted by Sebastien MALOT, James Carman, FUJI Goro, Aaditya Taparia, nohar, Alice Zoë Bevan–McGregor, dwomick, Daniel Sokil, someniatko, Quentin and 29 more
Reacted by YohanS, Guillaume Poirier-Morency, Cemre Mengu, Emmie Päivärinta, James O'Gorman, Nick Venenga, Johannes Löthberg, Josh Junon, STEN, anjo301 and 7 more
Activity
methane commentedon Apr 10, 2015
I agree.
"application/x-msgpack" should be documented somewhere.
kyrias commentedon Apr 10, 2015
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 getapplication/msgpackregistered.kuenishi commentedon Apr 11, 2015
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.
edsiper commentedon Jun 14, 2016
@frsyuki ^
arteymix commentedon Aug 3, 2016
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.msgpackwill eventually be registered and use it as a value?Qix- commentedon Aug 3, 2016
@kyrias Which RFC deprecates
x-? To my knowledge it's still a thing (RFC 2045/2046, which have not been obsoleted yet).@kuenishi correct. You'll want to register it as
application/vnd.messagepackorapplication/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.
kyrias commentedon Aug 4, 2016
@Qix-: RFC 6649
Qix- commentedon Aug 4, 2016
@kyrias oh interesting, I had no idea. Thanks for the link!
cemremengu commentedon Nov 8, 2016
Just wondering what's the current status of this issue ?
kyrias commentedon Nov 8, 2016
The status essentially isn't.
tagomoris commentedon Apr 13, 2017
@frsyuki ping?
application/vnd.msgpacklooks good to me.frsyuki commentedon Apr 13, 2017
"x-" was deprecated by RFC 6648 which was published June 2012, but msgpack exists since February 2009.
From Github code search,
application/x-msgpackis commonly used.Therefore, registering
application/x-msgpackofficially is more beneficial than registeringapplication/vnd.msgpackfor 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.
frsyuki commentedon Apr 18, 2017
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:
frsyuki commentedon Apr 18, 2017
Forms that are easy to fill out:
They are
charset=oftext/html; charset=utf-8, for example. Nothing available for MessagePack.They're N/A.
This is
+gitofssh+git, for example. N/A.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.
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)
Common.
Here could describe some details but that's mainly intended for other usage types (Limited use or Obsolete). So, nothing here for MessagePack.
frsyuki commentedon Apr 18, 2017
The other forms are more complex.
JSON says:
But this doesn't apply to MessagePack.
Thrift says:
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.
3 remaining items
mnot commentedon Nov 12, 2017
Had a quick chat with an Area Director about this; it should be pretty straightforward.
The decisions that this community needs to make are:
Happy to answer any process questions, and help with draft authoring / review.
frsyuki commentedon Nov 12, 2017
@mnot Thank you for the comments & actions.
application/msgpackis the media type we would like to use: Reasons why we currently useapplication/x-msgpackis thatapplication/msgpackis the straightforward MIME type MessagePack should use andx-was the common way to use such "unofficial" MIME types. I'm very sure that havingapplication/msgpackofficially registered is the ideal goal the community shares for this media type issue.application/x-msgpackis 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 thatapplication/msgpackorapplication/x-msgpackis unrealistic.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 understand about it and I didn't know have an idea that
application/msgpackcould be easier. What is the best way for us to continue this discussion?chintan-mishra commentedon Nov 28, 2017
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.
mnot commentedon Jan 12, 2018
@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
+msgpacksuffix because it would allow other people to register media types likeapplication/myformat+msgpack, to indicate that my format uses msgpack (just likeapplication/myformat+xmldoes for XML). This doesn't rule out registeringapplication/msgpackas 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.rustonaut commentedon Aug 17, 2018
One argument against
application/x-msgpackis that there is probably alsoapplication/x.msgpackout in the wild (I mean that is given RFC6838 the right think to use until msgpack is registered) , and just becauseapplication/msgpackis standarized it doesn't mean that your server stops acceptingx-msgpack.ziggythehamster commentedon Jan 23, 2019
I'd like to give my +1 to
application/msgpackand+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.Qix- commentedon Apr 13, 2020
@ofiala-a51 The big green "open" indicates this is still ongoing.
mig-hub commentedon Sep 10, 2020
And what about file extension?
Saiv46 commentedon Feb 29, 2024
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.
Saiv46 commentedon May 15, 2024
MessagePack media type is now registered as
application/vnd.msgpackhttps://www.iana.org/assignments/media-types/application/vnd.msgpack
Saiv46 commentedon May 15, 2024
@kyrias This issue can be finally closed.
kuenishi commentedon May 17, 2024
Great news! Thank you for the work.
Qix- commentedon May 21, 2024
Wow, some part of my soul just achieved closure. Congrats! :)