Description
SYNCOPE-948 has removed the readonly field from AttrTO but the enduser code is still referencing to it, it seems; in fact, when self-registering or self-updating, the following error is returned:
Error: Unrecognized field "readonly" (class org.apache.syncope.common.lib.to.AttrTO), not marked as ignorable (3 known properties: "schema", "values", "schemaInfo"]) at [Source: {"username":"ilgrosso","password":"password123","realm":"/","securityQuestion":"887028ea-66fc-41e7-b397-620d7ea6dfbb","securityAnswer":"Cipollone","plainAttrs":[{"schema":"fullname","values":["Francesco Chicchiriccò"],"readonly":false},{"schema":"userId","values":["ilgrosso@apache.org"],"readonly":false},{"schema":"loginDate","values":[],"readonly":false},{"schema":"firstname","values":[],"readonly":false},{"schema":"surname","values":["Chicchiriccò"],"readonly":false},{"schema":"ctype","values":[],"readonly":false},{"schema":"email","values":[],"readonly":false},{"schema":"activationDate","values":[],"readonly":false},{"schema":"uselessReadonly","values":[],"readonly":true},{"schema":"cool","values":[false],"readonly":false},{"schema":"gender","values":[],"readonly":false},{"schema":"aLong","values":[null],"readonly":false},{"schema":"makeItDouble","values":[null],"readonly":false},{"schema":"obscure","values":[],"readonly":false},{"schema":"photo","values":[],"readonly":false}],"derAttrs":[{"schema":"cn","values":[],"readonly":true},{"schema":"noschema","values":[],"readonly":true},{"schema":"info","values":[],"readonly":true}],"virAttrs":[{"schema":"virtualReadOnly","values":[],"readonly":true},{"schema":"virtualdata","values":[],"readonly":false}],"resources":[],"auxClasses":[],"memberships":[],"@class":"org.apache.syncope.common.lib.to.UserTO"}; line: 1, column: 1371] (through reference chain: org.apache.syncope.common.lib.to.UserTO["plainAttrs"]->java.util.HashSet[0]->org.apache.syncope.common.lib.to.AttrTO["readonly"])
How could integration tests from SYNCOPE-853 have been passing so far?
Attachments
Issue Links
- is broken by
-
SYNCOPE-948 Optionally provide schema information with attribute values
- Closed