spring-projects / spring-projects/spring-data-mongodb

Provide more user friendly error messages based on MongoDB error codes and context of use. [DATAMONGO-1876]

Open
#2,778 3 comments 0 reactions 1 assignee View on GitHub

@christophstrobl is already working on this.

Since Dec 30, 2020.

in: core type: documentation type: enhancement
Dominant language
Java
Stars
1.7k
Forks
1.1k
PR merge metrics
No merged PRs in 30d

Description

Christoph Strobl opened DATAMONGO-1876 and commented

Error codes and messages provided by MongoDB server do not alway provide enough information for uses to be able to solve problems themselfes. Eg. featureCompatibility errors can cause confusion.

Investigate if we can provide more detailed errors based on the MongoDB error codes and the context of use of a feature


Reference URL: https://github.com/mongodb/mongo/blob/master/src/mongo/base/error_codes.err

Issue Links:

  • DATAMONGO-1875 UncategorizedMongoDbException: $jsonSchema is not allowed in this context

  • DATAMONGO-2212 No error logged or thrown using change stream and incompatible featureCompatibilityVersion
    ("is superseded by")

Referenced from: commits https://github.com/spring-projects/spring-data-mongodb/commit/c56263d282317b81e2deba102180e69b8b092354

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.