Skip to content
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

ResourceMetadataHandlerMethodArgumentResolver.supports(…) not working for ResourceMetadata [DATAREST-1250] #1612

Closed
spring-projects-issues opened this issue Jun 2, 2018 · 0 comments
Assignees
Labels
type: bug A general bug

Comments

@spring-projects-issues
Copy link

spring-projects-issues commented Jun 2, 2018

jiacheng Yang opened DATAREST-1250 and commented

ResourceMetadataHandlerMethodArgumentResolver supports parameter's predicate is parameterType should assignable to RepositoryInformation.class.

but argumentResolver process return type is ResourceMetadata

so when i definition RepositoryInformation type argument in controller,throw missMatcher param exception, or i definition ResourceMetadata type argument in controller, no HandlerMethodArgumentResolver support


Affects: 2.6.12 (Ingalls SR12), 3.0.7 (Kay SR7), 3.1 M3 (Lovelace)

Reference URL: https://github.com/spring-projects/spring-data-rest/blob/master/spring-data-rest-webmvc/src/main/java/org/springframework/data/rest/webmvc/config/ResourceMetadataHandlerMethodArgumentResolver.java

Issue Links:

  • DATAREST-1320 NullPointerException when ResourceMetadata not found for a specific type

Referenced from: pull request #296

Backported to: 3.0.8 (Kay SR8), 2.6.13 (Ingalls SR13)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type: bug A general bug
Projects
None yet
Development

No branches or pull requests

2 participants