meilisearch/meilisearch-http/tests
bors[bot] 9e344f6576
Merge #2207
2207: Fix: avoid embedding the user input into the error response. r=Kerollmops a=CNLHC

# Pull Request

## What does this PR do?
Fix #2107. 

The problem is meilisearch embeds the user input to the error message. 

The reason for this problem is `milli` throws a `serde_json: Error` whose `Display` implementation will do this embedding.  

I tried to solve this problem in this PR by manually implementing the `Display` trait for `DocumentFormatError` instead of deriving automatically.

<!-- Please link the issue you're trying to fix with this PR, if none then please create an issue first. -->

## PR checklist
Please check if your PR fulfills the following requirements:
- [x] Does this PR fix an existing issue?
- [x] Have you read the contributing guidelines?
- [x] Have you made sure that the title is accurate and descriptive of the changes?

Thank you so much for contributing to Meilisearch!


Co-authored-by: Liu Hancheng <cn_lhc@qq.com>
Co-authored-by: LiuHanCheng <2463765697@qq.com>
2022-04-04 17:35:17 +00:00
..
assets Rename attributes for faceting into filterable attributes 2021-06-14 13:20:43 +02:00
auth chore: get rid of chrono in favor of time 2022-02-16 18:14:29 +01:00
common Fix my mistake when resolving conflicts 2022-03-31 02:48:41 +09:00
dashboard Add tests for mini-dashboard status and assets 2021-10-27 17:57:25 +05:30
documents Update meilisearch-http/tests/documents/add_documents.rs 2022-04-01 09:30:40 +08:00
index chore: get rid of chrono in favor of time 2022-02-16 18:14:29 +01:00
search Add tests for the hard limit 2022-03-30 16:36:02 -07:00
settings feat(all): Task store 2021-12-02 20:14:42 +01:00
snapshot clippy 2022-02-28 19:03:38 +01:00
stats fix(all): fix two dates that were wrongly formatted 2022-02-22 11:29:11 +01:00
tasks chore: get rid of chrono in favor of time 2022-02-16 18:14:29 +01:00
content_type.rs feat(auth): API keys 2021-12-06 09:52:41 +01:00
dumps.rs bug(lib): fix get dumps bad error code 2021-12-15 16:58:05 +01:00
integration.rs feat(auth): API keys 2021-12-06 09:52:41 +01:00