Skip to content

Conversation

@adamretter
Copy link
Contributor

@adamretter adamretter commented Feb 11, 2021

Closes #3650

It absolutely blows my mind that until today only 2 people have recently reported this but yet the problem has been around for quite some time (at least 5.1.1 if not before). I wonder if anyone else is doing backups/restores of their databases?!?


This PR provides a fix that only addresses the problem for those users that restore full or incremental backups of the entire database, i.e. starting from /db.

Any partial restore that starts from /db/system or below and includes the users and groups will still not correctly load the groups before the users. Unfortunately solving such a thing with the current approach of the restore code is impossible, and the restore system itself needs rewriting to take a different approach. As most users backup and restore full-databases this should solve it for the majority.

We may contribute a rewrite of the backup/restore system in future to fix a number of additional issues.

@adamretter adamretter added the bug issue confirmed as bug label Feb 11, 2021
@adamretter adamretter added this to the eXist-5.3.0 milestone Feb 11, 2021
@adamretter adamretter requested a review from a team February 11, 2021 22:49
@dizzzz
Copy link
Member

dizzzz commented Feb 12, 2021

I typically restore a database, localmode @ commandline, so a db startup is done anyway :-/

@adamretter adamretter marked this pull request as ready for review February 14, 2021 21:35
@adamretter
Copy link
Contributor Author

@dizzzz I added the logging as you requested. Let me know... ;-)

@sonarqubecloud
Copy link

Kudos, SonarCloud Quality Gate passed!

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

No Coverage information No Coverage information
0.0% 0.0% Duplication

@dizzzz dizzzz merged commit d76e477 into eXist-db:develop Feb 18, 2021
@adamretter adamretter deleted the fix-restore-groups branch March 20, 2021 18:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug issue confirmed as bug

Projects

None yet

Development

Successfully merging this pull request may close these issues.

User-group relations not restored w/o restart

2 participants