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

Invalid or corrupted pad block issue while sharing a file with a new contact #1057

Closed
purnimavenkatasubbu opened this issue Jun 9, 2023 · 3 comments · Fixed by #1065
Closed
Assignees
Labels
bug Something isn't working

Comments

@purnimavenkatasubbu
Copy link
Member

Describe the bug

In atMospherePro when a new contact is added and a file is shared with the newly created contact, There's an Invalid or corrupted pad block issue

Steps to reproduce

  1. First , clone the code from the branch "ui_redesign" branch of atMospherePro
  2. Then Run the app and add a new contact
  3. And then select the newly created contact and share a file

Expected behavior

There should not be any pad block exceptions

Screenshots

SEVERE|2023-06-09 16:09:01.607824|EncryptionUtil|Error while decrypting value: Invalid argument(s): Invalid or corrupted pad block
I/flutter (22587): WARNING|2023-06-09 16:09:01.611390|SyncService (@aquamarine659)|Exception occurred when setting conflict info for @Banana75:shared_key@aquamarine659 | Exception: Invalid argument(s): Invalid or corrupted pad block
I/flutter (22587): FINER|2023-06-09 16:09:02.541007|SyncService (@aquamarine659)|Informing 2 listeners of SyncProgress{atSign: @aquamarine659, syncStatus: SyncStatus.success, isInitialSync: false, startedAt: 2023-06-09 10:39:00.025813Z, completedAt: 2023-06-09 10:39:02.539274Z, message: null, keyInfoList:[KeyInfo{key: senthistory_v2.mospherepro@aquamarine659, syncDirection: SyncDirection.remoteToLocal , conflictInfo: null, commitOp: CommitOp.UPDATE_ALL}, KeyInfo{key: @Banana75:shared_key@aquamarine659, syncDirection: SyncDirection.remoteToLocal , conflictInfo: ConflictInfo{remoteValue: null, localValue: null, errorOrExceptionMessage: Exception occurred when setting conflict info for @Banana75:shared_key@aquamarine659 | Exception: Invalid argument(s): Invalid or corrupted pad block}, commitOp: CommitOp.UPDATE_ALL}, KeyInfo{key: @Banana75:shared_key@aquamarine659, syncDirection: SyncDirection.localToRemote , conflictInfo: null, commitOp: CommitOp.UPDATE_ALL}, KeyInfo{key: shared_key.banana75@aquamarine659, syncDirection: SyncDir

Smartphones

  • Device: [e.g. Samsung Galaxy]
  • OS: [e.g. Android]

Were you using an atApplication when the bug was found?

atmospherePro

Additional context

No response

@purnimavenkatasubbu purnimavenkatasubbu added the bug Something isn't working label Jun 9, 2023
@gkc
Copy link
Contributor

gkc commented Jun 9, 2023

Thanks for this @purnimavenkatasubbu . Looks like it shouldn't be impacting the app itself, can you confirm?

@sitaram-kalluri - we can see Exception occurred when setting conflict info for @Banana75:shared_key@aquamarine659 ... the exception is because it's trying to decrypt 'shared_key' using an AES key but shared_keys are encrypted using the RSA key. We should not be attempting to decrypt 'shared_key' records in the usual way. Can you look into a fix for this?

@purnimavenkatasubbu
Copy link
Member Author

Thanks for this @purnimavenkatasubbu . Looks like it shouldn't be impacting the app itself, can you confirm?

@sitaram-kalluri - we can see Exception occurred when setting conflict info for @Banana75:shared_key@aquamarine659 ... the exception is because it's trying to decrypt 'shared_key' using an AES key but shared_keys are encrypted using the RSA key. We should not be attempting to decrypt 'shared_key' records in the usual way. Can you look into a fix for this?

Yes Gary, It's not impacting the app

@sitaram-kalluri
Copy link
Member

Thanks for this @purnimavenkatasubbu . Looks like it shouldn't be impacting the app itself, can you confirm?

@sitaram-kalluri - we can see Exception occurred when setting conflict info for @Banana75:shared_key@aquamarine659 ... the exception is because it's trying to decrypt 'shared_key' using an AES key but shared_keys are encrypted using the RSA key. We should not be attempting to decrypt 'shared_key' records in the usual way. Can you look into a fix for this?

Sure Gary, Will fix this issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants