Re: Roster publish

2014-02-11 Thread Tomasz Sterna
Dnia 2014-02-10, pon o godzinie 18:00 +0100, Oriol Mula-Valls pisze:
 After setting it to 0 I expect the user to disappear from the clients.
 I have tried to relogin to the jabberd2 server but even after that the
 contact still appears.

Did you enable force-create-contacts/?
If so, it will add contacts to user normal roster and they will need
manual deletion.

Also if user edits the contacts details, it will be stored in normal
roster.


-- 
Tomasz Sterna @ http://abadcafe.pl/ @ http://www.xiaoka.com/





Re: Roster publish

2014-02-11 Thread Oriol Mula-Valls

Hi Tomasz,

I have disabled force-create-contacts/ on sm.xml. I have also deleted 
the sqlite and created it again.


Afterdwards, I have connected to the jabberd2 server which provided me 
the contact list. Then I updated a users jabberPublishedItem attribute 
from 0 to 1. After reconnecting, the users have appeared as expected. 
Then I switched from 1 to 0 again but after reconnecting the user still 
appears.


Thanks,
Oriol

On 11/02/14 10:57, Tomasz Sterna wrote:

Dnia 2014-02-10, pon o godzinie 18:00 +0100, Oriol Mula-Valls pisze:

After setting it to 0 I expect the user to disappear from the clients.
I have tried to relogin to the jabberd2 server but even after that the
contact still appears.


Did you enable force-create-contacts/?
If so, it will add contacts to user normal roster and they will need
manual deletion.

Also if user edits the contacts details, it will be stored in normal
roster.





--
Oriol Mula Valls
Institut Català de Ciències del Clima (IC3)
Doctor Trueta 203 - 08005 Barcelona
Tel:+34 93 567 99 77




Re: Roster publish

2014-02-11 Thread Kris Deugau
Oriol Mula-Valls wrote:
 Hi Tomasz,
 
 I have disabled force-create-contacts/ on sm.xml. I have also deleted
 the sqlite and created it again.
 
 Afterdwards, I have connected to the jabberd2 server which provided me
 the contact list. Then I updated a users jabberPublishedItem attribute
 from 0 to 1. After reconnecting, the users have appeared as expected.
 Then I switched from 1 to 0 again but after reconnecting the user still
 appears.

Which client are you testing with?

In my own testing for the private Jabber server here, I found that
clients base on libpurple (Pidgin, mainly;  IIRC I tried one or two
others) would flat-out not accept pure server-originated roster
deletions based on manually hacking the underlying datastore;  to remove
a user from one of these clients you had to do so from the client
itself.  I'm not certain about admin-originated XML, but I haven't yet
cared enough to figure out how to assemble the right XML and test.

-kgd




Re: Roster publish

2014-02-11 Thread Oriol Mula-Valls

On 11/02/14 18:44, Kris Deugau wrote:

Oriol Mula-Valls wrote:

Hi Tomasz,

I have disabled force-create-contacts/ on sm.xml. I have also deleted
the sqlite and created it again.

Afterdwards, I have connected to the jabberd2 server which provided me
the contact list. Then I updated a users jabberPublishedItem attribute
from 0 to 1. After reconnecting, the users have appeared as expected.
Then I switched from 1 to 0 again but after reconnecting the user still
appears.


Which client are you testing with?

In my own testing for the private Jabber server here, I found that
clients base on libpurple (Pidgin, mainly;  IIRC I tried one or two
others) would flat-out not accept pure server-originated roster
deletions based on manually hacking the underlying datastore;  to remove
a user from one of these clients you had to do so from the client
itself.  I'm not certain about admin-originated XML, but I haven't yet
cared enough to figure out how to assemble the right XML and test.

-kgd





I have tested with Pidgin, Empathy and psi. All of them seem to have the 
same behaviour. Do you know if that's a client problem or a server-side one?


Oriol

--
Oriol Mula Valls
Institut Català de Ciències del Clima (IC3)
Doctor Trueta 203 - 08005 Barcelona
Tel:+34 93 567 99 77