Skip to content

[BUG] Security Account Metadata is lost #5904

@adamretter

Description

@adamretter

If you create a new user by storing the following into /db/system/security/exist/accounts/user1.xml:

<account xmlns="http://exist-db.org/Configuration" id="15">
    <group name="nogroup"/>
    <password>{RIPEMD160}q2VXP75jMi+d8E5VAsEr6pD8V5w=</password>
    <expired>false</expired>
    <enabled>true</enabled>
    <umask>022</umask>
    <metadata key="http://axschema.org/namePerson">User 1</metadata>
    <name>user1</name>
</account>

The metadata of that account is lost.

The following query:

sm:get-account-metadata("user1",  xs:anyURI("http://axschema.org/namePerson"))

Should return the string User 1, but instead it incorrectly returns an empty sequence.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions