Skip to content

Multiple repositories per domain class lead to ambiguous conversion [DATACMNS-1142] #1583

@spring-projects-issues

Description

@spring-projects-issues

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 by DomainClassConverter respectively its inner class ToEntityConverter).

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

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions