spring-projects / spring-projects/spring-data-rest
Improve logging capabilities, when validation is broker [DATAREST-426]
@odrotbohm is already working on this.
Since Dec 31, 2020.
- Dominant language
- Java
- Stars
- 958
- Forks
- 568
- PR merge metrics
- No merged PRs in 30d
Description
Johannes Hiemer opened DATAREST-426 and commented
Currently then handling of SD - REST is configured in a way, that broken validations get caught by the default error handler. I would be rather helpful, if the there would be a logging output showing that the validation failed, due to a misconfigured/wrong validation checking.
Sample:
I made a length check for field but forgot to verify if the field itself is null or not before. So what I got was a caught NullPointerException, but it was not obvious that it happen in the validator
Affects: 2.2.1 (Evans SR1)
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Assessment
This issue has not been assessed yet.