Closed theanhoo closed 4 years ago
MongooseIM 3.3.0 Smack 4.3.4
Referring to the request and response below, kindly note the empty 'to' field in the response. I suspect this is causing Smack to throw an exception of 'Not a valid combination of localpart, domainpart and resource'.
If I refer to https://xmpp.org/extensions/xep-0313.html, I do not see an empty 'to' field.
Please advise me on how to resolve this.
Many thanks in advance.
Request
<iq to='muc_light_1@example.com' id='DUgMm-240' type='set'> <query xmlns='urn:xmpp:mam:1' queryid='a75f5d75-aac5-4625-9a77-e54ea605f7a0'> <x xmlns='jabber:x:data' type='submit'> <field var='FORM_TYPE' type='hidden'> <value>urn:xmpp:mam:1</value> </field> <field var='start'> <value>2019-12-01T09:49:40.000+00:00</value> </field> </x> <set xmlns='http://jabber.org/protocol/rsm'> <max>5</max> </set> </query> </iq>
Response
<message from='muc_light_1@example.com' to='user1@example.com/mobile' id='56d97cef-131f-4265-9a59-f32dbaf89790'> <result queryid='a75f5d75-aac5-4625-9a77-e54ea605f7a0' xmlns='urn:xmpp:mam:1' id='B651C6UHK5G1'> <forwarded xmlns='urn:xmpp:forward:0'> <delay xmlns='urn:xmpp:delay' stamp='2019-12-01T09:49:40Z' from='muc_light_1@example.com/user2@example.com'></delay> <message from='muc_light_1@example.com/user2@example.com' to='' xmlns='jabber:client' id='e81d40f4-c86d-474f-a9e7-e06cd8cb3857' type='groupchat'> <body>46</body> <item-type xmlns='custom.example.com' type='1' mime-type=''/> <markable xmlns='urn:xmpp:chat-markers:0'/> </message> </forwarded> </result> </message>
Sorry, wrong module.
MongooseIM 3.3.0 Smack 4.3.4
Referring to the request and response below, kindly note the empty 'to' field in the response. I suspect this is causing Smack to throw an exception of 'Not a valid combination of localpart, domainpart and resource'.
If I refer to https://xmpp.org/extensions/xep-0313.html, I do not see an empty 'to' field.
Please advise me on how to resolve this.
Many thanks in advance.
Request
Response