Bug 530993 - Notification mime media type is hard-coded
Summary: Notification mime media type is hard-coded
Status: UNCONFIRMED
Alias: None
Product: OM2M
Classification: IoT
Component: Platform (show other bugs)
Version: 1.0.0   Edit
Hardware: PC Linux
: P3 minor
Target Milestone: ---   Edit
Assignee: Project Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2018-02-10 11:46 EST by Nicolas Seydoux CLA
Modified: 2018-02-10 11:59 EST (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Nicolas Seydoux CLA 2018-02-10 11:46:32 EST
The serialization format for the notifications is hard-coded in the platform : the class org.eclipse.om2m.commons.constants.Constants has a NOTIFICATION_MMT attribute defining the notification format to XML, regardless of the Accept header of the subscription query.
Comment 1 Nicolas Seydoux CLA 2018-02-10 11:59:36 EST
A possible fix (that solves my use case) is to use the request primitive content type to determine wheter to return xml or json content. However, this behaviour prevents from returning xml to a json request and vice-versa.