-
Notifications
You must be signed in to change notification settings - Fork 682
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Multiple repositories per domain class lead to ambiguous conversion [DATACMNS-1142] #1583
Comments
Jan Zeppenfeld commented Hey guys, because I stumbled upon the same issue in our current project, I found this thread and analyzed what's going on under the hood and tried to figure out how it can be fixed. Actually, two independent problems already mentioned in the comments of DATAREST-923 prevent this feature from working. The Now the 'primary' state reaches the
This is the case because
The implemented Test So, there are four possible approaches to fix this issue from my point of view... from the cleanest and most invasive to the least invasive one:
Although I would prefer the cleaner solutions (1+2), I guess the fourth approach embracing backward compatibility would be the preferred one. So here is a pull request |
Burkhard Graves opened DATACMNS-1142 and commented
If there are two instances of a CrudRepository for a given domain class, one unsecured and one secured by using
@PreAuthorize
, it's totally ambiguous which repository is used if request parameters or path variables are converted to instances of the domain class (which is done byDomainClassConverter
respectively its inner classToEntityConverter
).If the unsecured repository is used everything works fine, if the secured one is used - bang.
This is related to DATAREST-923, made a similar comment over there
Affects: 1.13.6 (Ingalls SR6)
Referenced from: pull request #465
1 votes, 3 watchers
The text was updated successfully, but these errors were encountered: