Hello,
The problem stems from this version not modeling the returnability of the password attribute accurately, which per spec is "never", meaning the value should not be returned under any circumstance.
However, server implementation is returning a dummy value when querying:
https://github.com/GluuFederation/oxTrust/blob/version_3.1.2/server/src/main/java/org/gluu/oxtrust/util/CopyUtils2.java#L818
This degenerates in setting the password with such value when a query is immediately followed by an update.
For this particular case, I think there is no need for the retrieval, just do `User user = new User();`, then attach the extension and call the update...
version 3.1.3 (see https://www.gluu.org/roadmap/) models attribute characteristics correctly though