[JDEV] Problem with jabber:iq:time request to a client

David Soulayrol david.soulayrol at ago.fr
Mon Feb 10 11:09:10 CST 2003


Hello.

I've got a problem with IQ requests with jabber:iq:time namespace when addressed
to a client (on Jabber 1.4.2).

The following chunk asks time to my server:
<iq type='get' to='qubacca'>
  <query xmlns='jabber:iq:time' />
</iq>

The answer is ok:
<iq type='result' to='testclient at qubacca/Gabber' from='qubacca'>
  <query xmlns='jabber:iq:time'>
    <utc>20030210T15:52:12</utc>
    <display>Mon Feb 10 16:52:12 2003</display>
    <tz>CET</tz>
  </query>
</iq>


But when i send the same chunk to a client, i receive:
<iq type='error' to='testclient at qubacca/Gabber' from='client at qubacca/clientrs'>
  <query xmlns='jabber:iq:time'/>
  <error code='503'>Service Unavailable</error>
</iq>

I have read the chapter on jabber:iq:time in "Programming Jabber", where it is
said to specify the resource in the JID... But, resource or not, I receive the
same 'Service unavailable'.

The problem is the same when I send a IQ with the 'jabber:iq:version' namespace.
Where am I wrong ?

Thanks,
David. 



More information about the JDev mailing list