Skip to content
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

Upgrade causes jauth.db missing Display projects WMS links and other options #1416

Closed
pcav opened this issue Dec 4, 2019 · 15 comments
Closed

Comments

@pcav
Copy link
Collaborator

pcav commented Dec 4, 2019

Until 3.3.0 the admin could choose to display the URL of the WMS service.
In 3.3.3 this option has disappeared.
See attached screenshots.
image
image

@pcav pcav added the bug label Dec 4, 2019
@nboisteault
Copy link
Member

Weird issue. I can't reproduce it in 3.3.3.

@nboisteault nboisteault added this to the backlog 3.3 milestone Dec 13, 2019
@pcav
Copy link
Collaborator Author

pcav commented Dec 13, 2019

You can check WMS links are not present e.g. in https://lizmap.faunalia.eu (they were before the update to 3.3.3)
Thanks for checking

@Gustry
Copy link
Member

Gustry commented Dec 15, 2019

I can't reproduce too on 3.3.4-pre

@pcav
Copy link
Collaborator Author

pcav commented Dec 16, 2019

Thanks @Gustry for checking. Have you also a 3.3.3 installation to check? Have you seen my example? Could this be a side effect of the upgrade rather than a fresh install?

@pcav
Copy link
Collaborator Author

pcav commented Dec 17, 2019

Tried a fresh install of 3.3.3, the option is there. Then upgrading, still there. So it's a local issue, probably due to some upgrade issue (I noticed it in an installation that has undergone many upgrades, since version 2). I can close this. I would appreciate a suggestion on how to clean it up, as this is a production instance and I cannot just drop all users and groups.
Thanks.

@pcav
Copy link
Collaborator Author

pcav commented Dec 17, 2019

The other strange thing is that group rights are not displayed correctly, see attached
Schermata del 2019-12-17 11-58-52

@pcav
Copy link
Collaborator Author

pcav commented Dec 19, 2019

Further investigation: row lizmap.tools.displayGetCapabilitiesLinks is missing from old jauth.db

@pcav
Copy link
Collaborator Author

pcav commented Dec 19, 2019

Adding the record back makes the option available.
Remaining issues:

  • the option is not available to admin, it has to be added by hand in the Rights of groups page
  • the order in that page is wrong (Display projects WMS links is the first row)
  • some rights are displayed with the wrong name (acl.grp.group.management and acl.grp.user.management)

@pcav pcav changed the title Display projects WMS links disappeared after 3.3.0 Upgrade causes jauth.db missing Display projects WMS links and other options Dec 19, 2019
@pcav
Copy link
Collaborator Author

pcav commented Dec 19, 2019

Any hint on how I can clean up the second and third point? I tried running again
php lizmap/install/installer.php
and
php lizmap/install/upgrade-to-3.php
to no avail.
Thanks.

@rldhont
Copy link
Collaborator

rldhont commented Dec 19, 2019

@pcav I don't think that jelix as a command line to check and upgarde jauth-db.

@pcav
Copy link
Collaborator Author

pcav commented Dec 19, 2019

/s/as/has?

@pcav
Copy link
Collaborator Author

pcav commented Dec 19, 2019

/s/jauth-db/jauth.db?

@pcav
Copy link
Collaborator Author

pcav commented Dec 19, 2019

More info: in correct db,
acl.group.create jelix~acl2db.acl.group.create acl.grp.group.management
is replaced by
acl.group.create jacl2db~acl2db.acl.group.create acl.grp.group.management
this fixes the names of rights (e.g. Create a group) but not those of headings (e.g. acl.grp.group.management)

@pcav
Copy link
Collaborator Author

pcav commented Dec 19, 2019

Same for jacl2db~acl2db.acl.grp.group.management and jacl2db~acl2db.acl.grp.user.management

@pcav
Copy link
Collaborator Author

pcav commented Dec 19, 2019

Issue solved for me, I leave it open for reference (I believe other can have the same issue during upgrades), feel free to close it @rldhont

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

5 participants