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

Closed
JimAIT opened this issue May 6, 2024 · 10 comments
Labels
area-essentials Essentials: Device, Display, Connectivity, Secure Storage, Sensors, App Info 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/needs-info Issue needs more info from the author 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!

@moljac
Copy link
Contributor

moljac commented May 28, 2024

@jonathanpeppers

SecureStorage runtime issues might have root in this problem/issue:

#18230 (comment)

https://github.com/dotnet/maui/pull/4211/files#diff-93ca7559b0a2eaf2bab3285f6d90c92ed92eee598bfbc814b368201753a0ef29

Seems like problem of documentation and overeagerly rebranding.

@jonpryor jonpryor added s/needs-info Issue needs more info from the author and removed partner/android Issues for the Android SDK labels Jun 24, 2024
Copy link
Contributor

Hi @JimAIT. We have added the "s/needs-info" label to this issue, which indicates that we have an open question for you before we can take further action. This issue will be closed automatically in 7 days if we do not hear back from you by then - please feel free to re-open it if you come back to this issue after that time.

@dotnet-policy-service dotnet-policy-service bot added the s/no-recent-activity Issue has had no recent activity label Jul 1, 2024
Copy link
Contributor

This issue has been automatically marked as stale because it has been marked as requiring author feedback but has not had any activity for 4 days. It will be closed if no further activity occurs within 3 days of this comment. If it is closed, feel free to comment when you are able to provide the additional information and we will re-investigate.

@samhouts samhouts removed the s/triaged Issue has been reviewed label Jul 3, 2024
@dotnet-policy-service dotnet-policy-service bot added s/no-recent-activity Issue has had no recent activity and removed s/no-recent-activity Issue has had no recent activity labels Jul 3, 2024
Copy link
Contributor

This issue has been automatically marked as stale because it has been marked as requiring author feedback but has not had any activity for 4 days. It will be closed if no further activity occurs within 3 days of this comment. If it is closed, feel free to comment when you are able to provide the additional information and we will re-investigate.

@samhouts samhouts added the s/triaged Issue has been reviewed label Jul 10, 2024
@dotnet-policy-service dotnet-policy-service bot removed the s/no-recent-activity Issue has had no recent activity label Jul 10, 2024
Copy link
Contributor

This issue has been automatically marked as stale because it has been marked as requiring author feedback but has not had any activity for 4 days. It will be closed if no further activity occurs within 3 days of this comment. If it is closed, feel free to comment when you are able to provide the additional information and we will re-investigate.

@dotnet-policy-service dotnet-policy-service bot added the s/no-recent-activity Issue has had no recent activity label Jul 15, 2024
@github-actions github-actions bot locked and limited conversation to collaborators Aug 18, 2024
@dotnet-policy-service dotnet-policy-service bot removed the s/no-recent-activity Issue has had no recent activity label Aug 18, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
area-essentials Essentials: Device, Display, Connectivity, Secure Storage, Sensors, App Info 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/needs-info Issue needs more info from the author s/triaged Issue has been reviewed t/bug Something isn't working
Projects
None yet
Development

No branches or pull requests

8 participants