You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
We are using spring datarest 3.3.2 with JPA against a RDBMS
We use a PATCH to update our user's passwords. We have a setter on our User Object setPassword() annotated with @JsonSetter, but there is no corresponding persisted property. This method is used to set the persisted encryptedPassword property on the user. The following commit on DomainObjectReader causes this to no longer work:
I know this is brute force-ish, but it conveys the idea that I am proposing. We can not just rely on the persistent property information for determining if this property is writable
Joseph Valerio opened DATAREST-1573 and commented
We just upgraded to SpringBoot 2.3.2.
We are using spring datarest 3.3.2 with JPA against a RDBMS
We use a PATCH to update our user's passwords. We have a setter on our User Object setPassword() annotated with
@JsonSetter
, but there is no corresponding persisted property. This method is used to set the persisted encryptedPassword property on the user. The following commit on DomainObjectReader causes this to no longer work:c616c53
The i.remove on line 230 removes the password property from consideration since it is not a PersistentProperty
If this property is not removed, it will cause the setter to be invoked at line 285:
If we change the Method to a PUT this works correctly, but it should also work for patch.
If you are not following my explaination, I can create a test project to expose the issue on request
1 votes, 2 watchers
The text was updated successfully, but these errors were encountered: