apache / apache/couchdb

Improve replication document error when user_ctx or auth headers are not parsed correctly

Open
#1,306 2 comments 0 reactions 0 assignees View on GitHub
enhancement
Dominant language
Erlang
Stars
7k
Forks
1.1k
Avg merge
1d 16h
Merged PRs (30d)
9

Description

Adding something like
```
"user_ctx": null
```
to the replication document results in the state `failed` which is correct but the error reason is: `"{error,{case_clause,null}}"` which is not the best.

Same goes for using a `null` value for a header in a source/target endpoint object.

Contributor guide

Open the contributing guide

Research direction

Start by reproducing replication with a null user_ctx and with a null header in a source or target endpoint object. Trace the replication document and endpoint error handling to find where the case_clause error is produced; done means these inputs still fail but report a clear, useful error reason.

Written by the indexing model from the issue text.

Assessment

Tech stack
erlang
Domain
databases
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
43/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.