spring-projects / spring-projects/spring-data-rest

Improve logging capabilities, when validation is broker [DATAREST-426]

Open
#806 0 comments 0 reactions 1 assignee View on GitHub

@odrotbohm is already working on this.

Since Dec 31, 2020.

type: bug
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

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.