I am upgrading a database from eXist 2.2 to 4.5. I used the Java Admin Client to create a backup of the entire eXist 2.2 database. I have a fresh install of eXist 4.5 running.
I moved the ZIP over and did a restore.
When I navigate the databases and examine, I see an obvious issue (to me at least) as I have extensive use of ACL for Groups with certain access to components.
Examining these side-by-side shows the issue:
On the left is the new server, on the right is the old server. All the custom ACL's depicted by the "+" sign next to the files are gone. This only occurs in one collection in which an error was reported during restore that permissions could not be set.
Now, in that collection there is only about 40 files needing custom ACLs so it is not a HUGE deal to fix that, but the question is why or did we do something wrong? I would note that many other folders did not have this issue and all permissions were set.
Update based on questions:
Looks like a user group is missing ... and I think I know why 2019-05-17 21:50:13,226 [java-admin-client-0.restore] ERROR (CollectionDeferredPermission.java [apply]:65) - ERROR: Failed to set permissions on Collection '/db/EIDO/data/edit'. org.xmldb.api.base.XMLDBException: Failed to invoke method setPermissions in class org.exist.xmlrpc.RpcConnection: Permission to modify permissions is denied for user 'admin' on '/db/EIDO/data/edit': User Group for groupname 'NA_Territory' is unknown. at org.exist.xmldb.RemoteUserManagementService.setPermissions(RemoteUserManagementService.java:187) ~[exist.jar:4.5.0] at org.exist.backup.restore.CollectionDeferredPermission.apply(CollectionDeferredPermission.java:56) ~[exist.jar:4.5.0] at org.exist.backup.restore.RestoreHandler.setDeferredPermissions(RestoreHandler.java:465) ~[exist.jar:4.5.0] at org.exist.backup.restore.RestoreHandler.endElement(RestoreHandler.java:137) ~[exist.jar:4.5.0] at org.apache.xerces.parsers.AbstractSAXParser.endElement(Unknown Source) ~[xercesImpl-2.11.0.jar:?] at org.apache.xerces.impl.XMLNSDocumentScannerImpl.scanEndElement(Unknown So