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

exception of type 'javax.crypto.aeadbadtag exception' was thrown when calling SecureStorage.Default.SetAsync on Android #22239

Open
JimAIT opened this issue May 6, 2024 · 5 comments
Labels
area-essentials Essentials: Device, Display, Connectivity, Secure Storage, Sensors, App Info partner/android Issues for the Android SDK platform/android 🤖 potential-regression This issue described a possible regression on a currently supported version., verification pending s/needs-attention Issue has more information and needs another look s/triaged Issue has been reviewed t/bug Something isn't working

Comments

@JimAIT
Copy link

JimAIT commented May 6, 2024

Description

Upgraded MAUI to 8.0.20 and now when I call SecureStorage.Default.SetAsync, I get "exception of type 'javax.crypto.aeadbadtag exception' was thrown" on Android. Works find on Windows.

Steps to Reproduce

No response

Link to public reproduction project repository

No response

Version with bug

8.0.20 SR4

Is this a regression from previous behavior?

Yes, this used to work in .NET MAUI

Last version that worked well

Unknown/Other

Affected platforms

Android

Affected platform versions

No response

Did you find any workaround?

No response

Relevant log output

No response

@JimAIT JimAIT added the t/bug Something isn't working label May 6, 2024
Copy link
Contributor

github-actions bot commented May 6, 2024

Hi I'm an AI powered bot that finds similar issues based off the issue title.

Please view the issues below to see if they solve your problem, and if the issue describes your problem please consider closing this one and thumbs upping the other issue to help us prioritize it. Thank you!

Open similar issues:

Closed similar issues:

Note: You can give me feedback by thumbs upping or thumbs downing this comment.

@drasticactions
Copy link
Contributor

Seeing that the exception is from javax it makes sense it would work in Windows. @jonathanpeppers @jonpryor would you have any ideas? would this be a runtime or SDK issue?

@PureWeen PureWeen added platform/android 🤖 area-essentials Essentials: Device, Display, Connectivity, Secure Storage, Sensors, App Info partner/android Issues for the Android SDK potential-regression This issue described a possible regression on a currently supported version., verification pending labels May 7, 2024
@Zhanglirong-Winnie Zhanglirong-Winnie added the s/triaged Issue has been reviewed label May 7, 2024
@jonathanpeppers
Copy link
Member

@JimAIT can you past the full stacktrace of the exception? adb logcat will have this information:

If MAUI has a SecureStorage API, this is probably the right place for the issue.

@jonathanpeppers jonathanpeppers added the s/needs-info Issue needs more info from the author label May 7, 2024
@dotnet-policy-service dotnet-policy-service bot added the s/no-recent-activity Issue has had no recent activity label May 13, 2024
@JimAIT
Copy link
Author

JimAIT commented May 15, 2024

Sorry for the delay, I was able to get around this by deleting the App Data on my device.

@dotnet-policy-service dotnet-policy-service bot added s/needs-attention Issue has more information and needs another look and removed s/needs-info Issue needs more info from the author s/no-recent-activity Issue has had no recent activity labels May 15, 2024
@jonathanpeppers
Copy link
Member

@JimAIT was there a problem during an upgrade between MAUI versions? Or perhaps a migration from Xamarin.Forms -> MAUI?

Or was this a fluke and we can close this? Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area-essentials Essentials: Device, Display, Connectivity, Secure Storage, Sensors, App Info partner/android Issues for the Android SDK platform/android 🤖 potential-regression This issue described a possible regression on a currently supported version., verification pending s/needs-attention Issue has more information and needs another look s/triaged Issue has been reviewed t/bug Something isn't working
Projects
None yet
Development

No branches or pull requests

5 participants