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

SNOW-1901636 exclude \0 from the serialized CJSON #826

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

sfc-gh-mkubik
Copy link
Contributor

@sfc-gh-mkubik sfc-gh-mkubik commented Feb 3, 2025

During vector<char> serialisation we keep the trailing \0 symbol but it seems that the result is only used as vector so there's no need to keep the end of string as a separate character. Currently this char is being passed to Base64 encode function during JWT creation which results in invalid JWT that cannot be processed properly by the new library that backend is going to use

@sfc-gh-mkubik sfc-gh-mkubik marked this pull request as ready for review February 3, 2025 14:39
@sfc-gh-mkubik sfc-gh-mkubik requested a review from a team as a code owner February 3, 2025 14:39
@sfc-gh-dprzybysz
Copy link
Collaborator

Please set issue id in PR name

@sfc-gh-mkubik sfc-gh-mkubik changed the title exclude \0 from the serialized CJSON SNOW-1901636 exclude \0 from the serialized CJSON Feb 4, 2025
Copy link

codecov bot commented Feb 4, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 80.53%. Comparing base (ab172ef) to head (7bc1d13).

Additional details and impacted files
@@            Coverage Diff             @@
##           master     #826      +/-   ##
==========================================
+ Coverage   80.43%   80.53%   +0.09%     
==========================================
  Files         104      104              
  Lines        9222     9223       +1     
==========================================
+ Hits         7418     7428      +10     
+ Misses       1804     1795       -9     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

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.

3 participants