Re: PrivacyList update fails without error notification
From: Vincent Thomasset <vincent.thomasset@xxxxxxxxx>
Date: Wed, 22 Aug 2007 22:41:49 +0200 (CEST)
Le Wed, 22 Aug 2007 10:56:02 -0700,
"Bogdan" <bogdan@xxxxxxxxxxxxxxx> a écrit :

Hi,

Which version of gloox are you using ?

> When I try to save privacy list on the server I'm getting error (I'm
> not sure why saving empty list returns the error, but this is another
> issue I should look at, any ideas?)

I think this is because at least one item is required.

From Chapter 2.6:
"The <list/> element MUST contain one or more <item/> elements, which
specify the user's desired changes to the list by including all elements
in the list (not the "delta")."

There is no real error case which applies to this though, maybe we
should ensure the list is not empty in gloox before sending the request.

I'm not sure why it sends a <conflict/> error btw:
"When a resource attempts to remove a list or specify a new default
list while that list applies to a connected resource other than the
sending resource, the server MUST return a <conflict/> error to the
sending resource and MUST NOT make the requested change."

> But major issue for me is that gloox is not calling:
> 
> void PrivacyListHandler::handlePrivacyListResult(const std::string&
> token, PrivacyListResult result) 
> 
> This seems to me like gloox bug to me. 

It should call handlePrivacyListResult() indeed, do you have registered
a PrivacyListHandler ?

Cheers,
Vincent