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 base64 #289

Merged
merged 1 commit into from
Jan 30, 2024
Merged

Fix base64 #289

merged 1 commit into from
Jan 30, 2024

Conversation

Schmiddiii
Copy link
Contributor

Fixes #288.

Note that BASE64_STANDARD_NO_PAD does not work as this requires base64 to not have padding, which is also not the case for Signal. This therefore needs a custom engine.

Copy link

codecov bot commented Jan 28, 2024

Codecov Report

Attention: 6 lines in your changes are missing coverage. Please review.

Comparison is base (0ad842f) 17.12% compared to head (5b95d5f) 17.12%.
Report is 1 commits behind head on main.

Files Patch % Lines
libsignal-service/src/utils.rs 0.00% 4 Missing ⚠️
libsignal-service/src/groups_v2/manager.rs 0.00% 1 Missing ⚠️
libsignal-service/src/groups_v2/operations.rs 0.00% 1 Missing ⚠️
Additional details and impacted files
@@           Coverage Diff           @@
##             main     #289   +/-   ##
=======================================
  Coverage   17.12%   17.12%           
=======================================
  Files          38       38           
  Lines        3078     3078           
=======================================
  Hits          527      527           
  Misses       2551     2551           

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

@rubdos
Copy link
Member

rubdos commented Jan 29, 2024

Seems like you miss some imports in account_manager.rs.

@Schmiddiii Schmiddiii force-pushed the base64 branch 2 times, most recently from 06423bb to 676a066 Compare January 29, 2024 15:49
@rubdos rubdos merged commit a2e7540 into whisperfish:main Jan 30, 2024
20 checks passed
@Schmiddiii Schmiddiii deleted the base64 branch January 30, 2024 17:39
Schmiddiii added a commit to Schmiddiii/presage that referenced this pull request Jan 30, 2024
Main fix is for the error "Invalid padding" for JSON decoding.

See <whisperfish/libsignal-service-rs#288>
and <whisperfish/libsignal-service-rs#289>.
gferon pushed a commit to whisperfish/presage that referenced this pull request Feb 1, 2024
Main fix is for the error "Invalid padding" for JSON decoding.

See <whisperfish/libsignal-service-rs#288>
and <whisperfish/libsignal-service-rs#289>.
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.

JSON Invalid Padding
2 participants