xwiki 14, dev: Attribute uid is disabled, its value could not be set
Trying to performe this call: $services.fusiondirectory.setUserCountry('imlambda','France') I got this result (error):
Mar 10 14:35:07 sandbox tomcat9[25837]: 2023-03-10 14:35:07,982 [http-nio-8080-exec-158 - https://dev.reachout-project.eu/preview/betatestsCode/test] DEBUG o.o.f.i.UserManagementImpl - Trying to authenticate user: fdapi Mar 10 14:35:07 sandbox tomcat9[25837]: 2023-03-10 14:35:07,983 [http-nio-8080-exec-158 - https://dev.reachout-project.eu/preview/betatestsCode/test] TRACE o.o.f.i.UserManagementImpl - Building JSON for calling method: login with params: [null, fdapi, xxxxxxxxx] Mar 10 14:35:07 sandbox tomcat9[25837]: 2023-03-10 14:35:07,983 [http-nio-8080-exec-158 - https://dev.reachout-project.eu/preview/betatestsCode/test] TRACE o.o.f.i.UserManagementImpl - Preparing a JSON request Mar 10 14:35:07 sandbox tomcat9[25837]: 2023-03-10 14:35:07,983 [http-nio-8080-exec-158 - https://dev.reachout-project.eu/preview/betatestsCode/test] TRACE o.o.f.i.UserManagementImpl - Sending request to FusionDirectory with inputs: {"id":"hello","jsonrpc":"2.0","method":"login","params":[null,"fdapi","xxxxxxxxx"]} using webResource Mar 10 14:35:08 sandbox tomcat9[25837]: 2023-03-10 14:35:08,559 [http-nio-8080-exec-158 - https://dev.reachout-project.eu/preview/betatestsCode/test] TRACE o.o.f.i.UserManagementImpl - Response received: POST https://fusiondirectory.dev.ow2.org/jsonrpc.php returned a response status of 200 OK Mar 10 14:35:08 sandbox tomcat9[25837]: 2023-03-10 14:35:08,560 [http-nio-8080-exec-158 - https://dev.reachout-project.eu/preview/betatestsCode/test] TRACE o.o.f.i.UserManagementImpl - Response to a call to: login provides output: {"id":"hello","result":"dca56f36a20694a265adeb5cf02d7f8b","error":null} Mar 10 14:35:08 sandbox tomcat9[25837]: 2023-03-10 14:35:08,560 [http-nio-8080-exec-158 - https://dev.reachout-project.eu/preview/betatestsCode/test] DEBUG o.o.f.i.UserManagementImpl - New FusionDirectory wrapper session (login) Mar 10 14:35:08 sandbox tomcat9[25837]: 2023-03-10 14:35:08,560 [http-nio-8080-exec-158 - https://dev.reachout-project.eu/preview/betatestsCode/test] TRACE o.o.f.i.UserManagementImpl - Building JSON for calling method: setFields with params: [dca56f36a20694a265adeb5cf02d7f8b, USER, uid=imlambda,ou=people,dc=ow2,dc=org, {"user":{"uid":"imlambda"},"personalInfo":{"co":"France"}}] Mar 10 14:35:08 sandbox tomcat9[25837]: 2023-03-10 14:35:08,560 [http-nio-8080-exec-158 - https://dev.reachout-project.eu/preview/betatestsCode/test] TRACE o.o.f.i.UserManagementImpl - Preparing a JSON request Mar 10 14:35:08 sandbox tomcat9[25837]: 2023-03-10 14:35:08,560 [http-nio-8080-exec-158 - https://dev.reachout-project.eu/preview/betatestsCode/test] TRACE o.o.f.i.UserManagementImpl - Sending request to FusionDirectory with inputs: {"id":"hello","jsonrpc":"2.0","method":"setFields","params":["dca56f36a20694a265adeb5cf02d7f8b","USER","uid=imlambda,ou=people,dc=ow2,dc=org",{"user":{"uid":"imlambda"},"personalInfo":{"co":"France"}}]} using webResource Mar 10 14:35:08 sandbox tomcat9[25837]: 2023-03-10 14:35:08,611 [http-nio-8080-exec-158 - https://dev.reachout-project.eu/preview/betatestsCode/test] TRACE o.o.f.i.UserManagementImpl - Response received: POST https://fusiondirectory.dev.ow2.org/jsonrpc.php returned a response status of 200 OK Mar 10 14:35:08 sandbox tomcat9[25837]: 2023-03-10 14:35:08,611 [http-nio-8080-exec-158 - https://dev.reachout-project.eu/preview/betatestsCode/test] TRACE o.o.f.i.UserManagementImpl - Response to a call to: setFields provides output: {"id":"hello","result":{"errors":["Attribute uid is disabled, its value could not be set"]},"error":null} Mar 10 14:35:08 sandbox tomcat9[25837]: 2023-03-10 14:35:08,611 [http-nio-8080-exec-158 - https://dev.reachout-project.eu/preview/betatestsCode/test] TRACE o.o.f.i.UserManagementImpl - Building JSON for calling method: logout with params: [dca56f36a20694a265adeb5cf02d7f8b] Mar 10 14:35:08 sandbox tomcat9[25837]: 2023-03-10 14:35:08,611 [http-nio-8080-exec-158 - https://dev.reachout-project.eu/preview/betatestsCode/test] TRACE o.o.f.i.UserManagementImpl - Preparing a JSON request Mar 10 14:35:08 sandbox tomcat9[25837]: 2023-03-10 14:35:08,611 [http-nio-8080-exec-158 - https://dev.reachout-project.eu/preview/betatestsCode/test] TRACE o.o.f.i.UserManagementImpl - Sending request to FusionDirectory with inputs: {"id":"hello","jsonrpc":"2.0","method":"logout","params":["dca56f36a20694a265adeb5cf02d7f8b"]} using webResource Mar 10 14:35:08 sandbox tomcat9[25837]: 2023-03-10 14:35:08,625 [http-nio-8080-exec-158 - https://dev.reachout-project.eu/preview/betatestsCode/test] TRACE o.o.f.i.UserManagementImpl - Response received: POST https://fusiondirectory.dev.ow2.org/jsonrpc.php returned a response status of 200 OK Mar 10 14:35:08 sandbox tomcat9[25837]: 2023-03-10 14:35:08,626 [http-nio-8080-exec-158 - https://dev.reachout-project.eu/preview/betatestsCode/test] TRACE o.o.f.i.UserManagementImpl - Response to a call to: logout provides output: {"id":"hello","result":true,"error":null}
velocity reply with: {result={"errors":["Attribute uid is disabled, its value could not be set"]}, errorType=null, error=null}