3liz / lizmap-web-client

Transfer a QGIS project on a server, Lizmap is providing the web interface to browse it
https://www.lizmap.com
Mozilla Public License 2.0
254 stars 143 forks source link

[Bug]: LWC 3.8 rc3 - Administration panel : users and users groups are not displayed anymore #4682

Open xavyeah39 opened 1 month ago

xavyeah39 commented 1 month ago

What is the bug? (in English)

After upgrade from 3.7 to 3.8 rc3, users and users-groups are not displayed anymore in permissions manager (administration panel) :

image

Instead of :

image

Error in web browser console :

image

Steps to reproduce the issue

  1. Go to : Administration >> Rights (permissions)

Versions, safeguards, check summary etc

Versions :

List of safeguards :
* Mode : normal * Allow parent folder : no * Prevent other drive : yes * Prevent PG service : no * Prevent PG Auth DB : yes * Force PG user&pass : yes * Prevent ECW : yes

Check Lizmap plugin

Operating system

Debian 12

Browsers

Firefox, Chrome

Browsers version

Chromium 121, Firefox 128

Relevant log output

No response

Gustry commented 1 month ago

I do not replicate on 3.8.0-rc.4 - e589728cc on our test server

laurentj commented 1 month ago

Hi,

Did you try "shift" + reload ?

It seems jQuery is not loaded. Check the network panel of the dev tools, to see if there are some JS files that are not loaded.

xavyeah39 commented 1 month ago

Hi,

Did you try "shift" + reload ?

It seems jQuery is not loaded. Check the network panel of the dev tools, to see if there are some JS files that are not loaded.

Hi, @laurentj , Yes I tried it. It seems that jquery is loaded correctly. I don't see any JS file that is not loaded in the dev tools network panel.

image

xavyeah39 commented 1 month ago

I do not replicate on 3.8.0-rc.4 - e589728cc on our test server

Hi @Gustry ! How can I try 3.8.0-rc.4 as it's not yet released (zip) ?

Gustry commented 1 month ago

Not tagged commit are available on https://packages.3liz.org/pub/lizmap/unstable/3.8/

xavyeah39 commented 1 month ago

Thanks for the link. I just tried rc4 : install OK but same problem and error in web browser console.

Everything works fine anyway except this rights managements display for groups and users.

"Global view of the rights of all groups" is working :

image

NB : My profiles.ini.php file is set on postgresql db with jdb:jauth

laurentj commented 1 month ago

This is a strange issue that i didn't reproduced yet. I'll investigate next days...

xavyeah39 commented 1 month ago

Thanks @laurentj ! Fell free to ask me for further environnement/conf informations if needed. I tested and reproduced this issue with 3 different instances (with the same deployment context).

laurentj commented 1 month ago

@xavyeah39 hi, could you zip me the content of var/config (except profiles.ini.php, i don't want your credentials ;-)),. One zip before the migration (so the directory of your lizmap 3.7 installation), and a second zip corresponding to the directory after the migration. Send them to ljouanneau @ 3liz.com

xavyeah39 commented 2 weeks ago

Thanks @laurentj for your feedback ! I share the fix you gave me : remove everything in the [webassets_common] section in the localconfig.ini.php file (due to migration scripts of LWC and Jelix in previous version). Already encountered in #3564

Gustry commented 1 week ago

@laurentj It's fixed, right ?