exist icon indicating copy to clipboard operation
exist copied to clipboard

sm:get-group-managers

Open claudius108 opened this issue 10 years ago • 5 comments

Hi,

With eXist 3.0, sm:get-group-managers() does not return all the group managers. If I am looking into the group file itself, and set the group managers with sm:add-group-manager(), the function sm:get-group-managers() returns correctly the group managers. Although, the correct result does not persist if I restart eXist.

claudius108 avatar Aug 11 '15 07:08 claudius108

I started investigating the issue here - https://github.com/adamretter/exist/tree/configurator-group-manager

I can reproduce the issue with this test case - https://github.com/adamretter/exist/blob/configurator-group-manager/test/src/org/exist/security/SecurityManagerRoundtripTest.java#L229

Unfortunately the issue is in the Configurator and it appears to be non-trivial to fix. Ideally we should replace the Configurator https://github.com/eXist-db/exist/issues/578 but that is rather a large piece of work.

adamretter avatar Sep 10 '15 16:09 adamretter

Thanks for the insights, Adam.

claudius108 avatar Sep 10 '15 17:09 claudius108

this still seems to be broken

duncdrum avatar Jan 31 '22 14:01 duncdrum

as for the lack of persistence when using sm:add-group-manger() i noticed that it changes the <metadata> key in the group's xml file from key="http://exist-db.org/security/description" to key="metadata"

groups with

<metadata key="metadata"/>

will be correctly returned by sm:get-group-managers()

groups with

<metadata key="http://exist-db.org/security/description"/>

will not

duncdrum avatar Feb 01 '22 15:02 duncdrum

Note to self: Retest

line-o avatar Dec 09 '25 09:12 line-o