-
Notifications
You must be signed in to change notification settings - Fork 1.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
webadmin - crash when navigating to /admin/server/domain.tld/shared-roster/ #4245
Comments
Apparently the problem appears when generating the table of all the shared roster groups in a vhost. That table gets the list of groups and their details. More precisely, it seems to fail to obtain or process the list of "displayed_groups". Probably the new webadmin feature or a nwe command is not able to process correctly that stored data. Or some stored data is corrupted and the code should know how to handle it. Do you use mnesia storage? If so, take a look at the sr_group table, for example in In my case, I have two groups: [{sr_group,{<<"gr1">>,<<"localhost">>},
[{online_users,true},
{all_users,true},
{displayed_groups,[<<"gr1">>]},
{label,<<>>},
{description,<<>>}]},
{sr_group,{<<"gr2">>,<<"localhost">>},
[{label,<<>>},{description,<<>>},{displayed_groups,[]}]}] Do you see anything abnormal in your table? Can you share it? (replace personal details if necessary) Similarly, if you use SQL, take a look at the table, anything suspicious about incorrectly formatted data? If you suspect the problem is in a specific group, I guess it will also crash if you visit that specific group: Also, does it crash when you execute those commands using ejabberdctl?
|
Hi! Thanks for looking into this :) Here's the content of the sr_group table as shown through the url: http://localhost:5280/admin/node/ejabberd@localhost/db/table/sr_group/elements/1/:
I do not have any problem visiting any of those shared roster groups, but all of them crash when accessing their "displayed groups", i.e. from urls such as: Of note:
|
Ok, the problem was fairly simple: the groups created using ejabberd 24.02 webadmin (or older) didn't have the All the methods to create groups in ejabberd 24.06 (I mean the The bug is fixed with a very small commit :) |
I'm sorry to report that I still have a crash when navigating to: https://domain/admin/server/domain.tld/shared-roster/
|
Can confirm it's fixed now, thanks! |
Environment
Errors from error.log/crash.log
Bug description
Navigating there results in an empty page showing "Not Found"
The text was updated successfully, but these errors were encountered: