-
Notifications
You must be signed in to change notification settings - Fork 885
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
[osd/std] Add additional recovery from false-positives in handling of long numerals #5956
[osd/std] Add additional recovery from false-positives in handling of long numerals #5956
Conversation
7fc8eac
to
c44ce2f
Compare
…ng numerals Signed-off-by: Miki <miki@amazon.com>
c44ce2f
to
e77adaf
Compare
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #5956 +/- ##
==========================================
+ Coverage 67.01% 67.03% +0.01%
==========================================
Files 3310 3310
Lines 63647 63651 +4
Branches 10165 10165
==========================================
+ Hits 42656 42668 +12
+ Misses 18522 18514 -8
Partials 2469 2469
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can we add tests to the corresponding test file for this change? looks like there is already a json.test.ts
file
The particular exception is only thrown in browsers. I have created an issue to add functional test to handle the new exception. The existing unit tests cover this case already. |
Signed-off-by: Miki <miki@amazon.com>
@AMoo-Miki can you link that issue here? |
|
Signed-off-by: Miki <miki@amazon.com>
…ng numerals (opensearch-project#5956) Signed-off-by: Miki <miki@amazon.com>
…ng numerals (#5956) (#5972) Signed-off-by: Miki <miki@amazon.com> (cherry picked from commit a7ab795) Signed-off-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com> # Conflicts: # CHANGELOG.md Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com> Co-authored-by: Qingyang(Abby) Hu <abigailhu2000@gmail.com>
…ng numerals (#5956) (#5973) Signed-off-by: Miki <miki@amazon.com> (cherry picked from commit a7ab795) Signed-off-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com> # Conflicts: # CHANGELOG.md Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
…ng numerals (opensearch-project#5956) Signed-off-by: Miki <miki@amazon.com>
@AMoo-Miki Could you please confirm if this is going to be released to 2.12.0 as it's already labeled as backport with 2.12.0 ? |
@atreyd the 2.12 branch is not going to receive a new release as 2.13.0 is just around the corner. |
Description
The parsing of JSON strings with long numerals in @osd/std handled two false-positive scenarios. A new one was discovered where mixed escaped quotes inside a string value resulted in a different exception in browsers that the one already handled for Node.
Issues Resolved
Fixes #5923
Check List
yarn test:jest
yarn test:jest_integration