converse.js icon indicating copy to clipboard operation
converse.js copied to clipboard

Seems that shared rosters does not work

Open SilverYoCha opened this issue 4 years ago • 5 comments

Describe the bug Shared roster groups seems to not be retrieved as expected.

To Reproduce

  1. Create a shared roster group with members on XMPP server (ejabberd for me)
  2. Ensure that parameter roster_groups is set at true value on ConverseJS initialization
  3. Start ConverseJS

Expected behavior The shared roster groups shoud be displayed.

Environment (please complete the following information):

  • Desktop
  • Chrome, Firefox, etc.
  • Converse.js version 7.0.5

Additional context I created on an ejabberd server a shared roster group with two members:

  1. first POST /api/srg_create { "group": "agroup", "host": "myown.xmppserver.org", "name": "A group with two members", "description": "Test", "display": "" }
  2. then POST /api/srg_user_add { "user": "toto", "host": "myown.xmppserver.org", "group": "agroup", "grouphost": "myown.xmppserver.org" } and POST /api/srg_user_add { "user": "titi", "host": "myown.xmppserver.org", "group": "agroup", "grouphost": "myown.xmppserver.org" }
  3. then verifying group and members well registered with POST /api/srg_get_members { "host": "myown.xmppserver.org", "group": "agroup" } that answers [ "[email protected]", "[email protected]" ]

On ConversJS initialization I take care to let the parameter roster_groups at true value. The UI seems to be broken ("Mes contacts" is not displayed): conversejs_broken_ui

When I deactivate roster_groups into ConverseJS parameters, then it is displayed that: conversejs_nogroups_ui

SilverYoCha avatar Jun 02 '21 14:06 SilverYoCha

Set loglevel to debug (see https://conversejs.org/docs/html/configuration.html#loglevel)

Then turn on verbose logging in your browser's developer console. Then do the same tests that you explained in this ticket.

In the developer console, save the console output to a file.

Then you can send that to me. jc at opkode dot com.

jcbrand avatar Jun 03 '21 17:06 jcbrand

Set loglevel to debug (see https://conversejs.org/docs/html/configuration.html#loglevel)

Then turn on verbose logging in your browser's developer console. Then do the same tests that you explained in this ticket.

In the developer console, save the console output to a file.

Then you can send that to me. jc at opkode dot com.

I just sent you the file from habafo at gmail dot com. Thank you.

SilverYoCha avatar Jun 05 '21 17:06 SilverYoCha

I get same behavior with 8.0.1 version.

SilverYoCha avatar Oct 13 '21 13:10 SilverYoCha

@SilverYoCha I had a look at the logs you sent me, but the roster XML traffic is not in those logs, so they're unfortunately not helpful.

You need to log out of Converse, then log in again and capture the logs from the moment you logged in.

jcbrand avatar Oct 14 '21 16:10 jcbrand

I just sent to you my second attempt. Thank you.

SilverYoCha avatar Oct 15 '21 08:10 SilverYoCha