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

CXXCBC-481: Fix potential crash when parsing search result hits #541

Merged
merged 2 commits into from Mar 11, 2024

Conversation

thejcfactor
Copy link
Contributor

Motivation

If scoring is disable on server versions > 7.6 the SDK can crash when parsing the hits in the result. The SDK should be a bit more lenient when processing hits. Also instead of crashing, the SDK should raise an exception if there is a problem when parsing results.

Changes

  • Update JSON parsing of search results
  • Added flags to output search request and/or response
  • Updated search test suite

@thejcfactor thejcfactor requested a review from avsej March 9, 2024 18:53
Motivation
==========
If scoring is disable on server versions > 7.6 the SDK can crash when
parsing the hits in the result.  The SDK should be a bit more lenient
when processing hits. Also instead of crashing, the SDK should raise
an exception if there is a problem when parsing results.

Changes
=======
* Update JSON parsing of search results
* Added flags to output search request and/or response
@avsej avsej merged commit 18e0681 into couchbaselabs:main Mar 11, 2024
19 of 20 checks passed
@thejcfactor thejcfactor deleted the CXXCBC-481 branch March 11, 2024 17:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants