Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix undef when parsing replication doc body #4343

Merged
merged 1 commit into from
Jan 4, 2023

Conversation

rnewson
Copy link
Member

@rnewson rnewson commented Jan 4, 2023

Closes #4344

@@ -490,7 +490,7 @@ get_json_value(Key, Obj) ->
couch_replicator_utils:get_json_value(Key, Obj).

get_json_value(Key, Obj, Default) ->
couch_replicator_util:get_json_value(Key, Obj, Default).
couch_replicator_utils:get_json_value(Key, Obj, Default).
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can we add a test for this as well?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

go right ahead.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@rnewson rnewson merged commit 8e47e71 into main Jan 4, 2023
@rnewson rnewson deleted the fix-undef-replication-body-parse branch January 4, 2023 17:45
jaydoane added a commit that referenced this pull request Jan 4, 2023
This adds a test to cover the case when a replication doc contains a
user_ctx, and subsequently executes `get_json_value/3`.

See: #4343
jaydoane added a commit that referenced this pull request Jan 4, 2023
This adds a test to cover the case when a replication doc contains a
user_ctx, and subsequently executes `get_json_value/3`.

See: #4343
jaydoane added a commit that referenced this pull request Jan 4, 2023
This adds a test to cover the case when a replication doc contains a
user_ctx, and subsequently executes `get_json_value/3`.

See: #4343
janl pushed a commit that referenced this pull request Jan 5, 2023
This adds a test to cover the case when a replication doc contains a
user_ctx, and subsequently executes `get_json_value/3`.

See: #4343
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Replicator {error, undef} after update to 3.3.0
4 participants