Re: error while using cancel/ackSub. method in RosterManager
From: Jakob Schröter <js@xxxxxxxxxx>
Date: Fri, 11 Jan 2008 21:11:15 +0100 (CET)
Hi,

On Wednesday January 2 2008, Radim Roska wrote:
> Hi,
> (version of gloox: 0.9.8)
>
> when i try to use RosterManager's methods to manipulate with roster, its ok
> for add, remove..but cancel, ackSubscriptionRequest doesn't work..
>
> In log you can see message that explain it quite well :)
>
> Jan 02   20:06:01   INFO    <presence type='subscribed' from='
> radim.roska@xxxxxxxxx' to='worwan@xxxxxxxxx'/>
> Jan 02   20:06:01   INFO    <presence type='error' from='worwan@xxxxxxxxx'
> to='radim.roska@xxxxxxxxx'><error code='400' type='modify'><bad-request
> xmlns='urn:ietf:params:xml:ns:xmpp-stanzas'/><text
> xmlns='urn:ietf:params:xml:ns:xmpp-stanzas'>If set, the &apos;from&apos;
> attribute must be set to the user&apos;s full
> JID.</text></error></presence>

Thanks, I've removed the 'from' attribute entirely.

cheers,
Jakob

Attachment: signature.asc
Description: This is a digitally signed message part.