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

Make sure errorCode is not cut off #1791

Merged
merged 1 commit into from
Feb 24, 2022
Merged

Make sure errorCode is not cut off #1791

merged 1 commit into from
Feb 24, 2022

Conversation

RHenigan
Copy link
Contributor

Fixes #1790

This PR is ready for review.

Risk

This PR makes no API changes.

Testing Plan

  • I have verified that I have not introduced new warnings in this PR (or explain why below)
  • I have run the unit tests with this PR
  • I have tested this PR against Core and verified behavior (if applicable, if not applicable, explain why below).
  • I have tested Android, Java SE, and Java EE

Unit Tests

N/A

Core Tests

Attempt to test Encrypted Video Streaming using an app with the app ID wrong_app_id and the default security lib
Observe this log when Encrypted Video Stream Fails
Security Query module internal error: INVALID_CERT

Core version / branch / commit hash / module tested against: release/8.1.0
HMI name / version / branch / commit hash / module tested against: Generic HMI release/0.12.0

Summary

There was a condition where we were cutting the bulk short by 1 byte. This should not happen so that condition was removed and the bulkdata will now be set to the appropriate size.

CLA

@codecov
Copy link

codecov bot commented Feb 22, 2022

Codecov Report

Merging #1791 (db04b82) into develop (e5398b4) will increase coverage by 0.01%.
The diff coverage is 0.00%.

Impacted file tree graph

@@              Coverage Diff              @@
##             develop    #1791      +/-   ##
=============================================
+ Coverage      54.32%   54.34%   +0.01%     
- Complexity      5520     5521       +1     
=============================================
  Files            562      562              
  Lines          25592    25590       -2     
  Branches        3339     3338       -1     
=============================================
+ Hits           13904    13906       +2     
+ Misses         10426    10424       -2     
+ Partials        1262     1260       -2     
Impacted Files Coverage Δ
...smartdevicelink/protocol/SecurityQueryPayload.java 73.68% <0.00%> (+0.60%) ⬆️
...rtdevicelink/streaming/video/SdlRemoteDisplay.java 51.21% <0.00%> (+1.21%) ⬆️
...nk/managers/audio/AudioDecoderCompatOperation.java 79.54% <0.00%> (+4.54%) ⬆️

Copy link
Contributor

@noah-livio noah-livio left a comment

Choose a reason for hiding this comment

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

The fix works as expected and the code looks good

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