question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

[Bug] DatabaseUtils: java.lang.IllegalArgumentException: bad base-64

See original GitHub issue

Logs and Network traces Via the Authenticator app I sent feedback with logging, incident id: RH9JA8G3.

04-16 16:15:13.868 11565 11790 E DatabaseUtils: Writing exception to parcel
04-16 16:15:13.868 11565 11790 E DatabaseUtils: java.lang.IllegalArgumentException: bad base-64
04-16 16:15:13.868 11565 11790 E DatabaseUtils: 	at android.util.Base64.decode(Base64.java:162)
04-16 16:15:13.868 11565 11790 E DatabaseUtils: 	at android.util.Base64.decode(Base64.java:137)
04-16 16:15:13.868 11565 11790 E DatabaseUtils: 	at android.util.Base64.decode(Base64.java:119)
04-16 16:15:13.868 11565 11790 E DatabaseUtils: 	at com.microsoft.identity.client.BrokerContentProvider.query(BrokerContentProvider.java:126)
04-16 16:15:13.868 11565 11790 E DatabaseUtils: 	at android.content.ContentProvider.query(ContentProvider.java:1235)
04-16 16:15:13.868 11565 11790 E DatabaseUtils: 	at android.content.ContentProvider.query(ContentProvider.java:1328)
04-16 16:15:13.868 11565 11790 E DatabaseUtils: 	at android.content.ContentProvider$Transport.query(ContentProvider.java:267)
04-16 16:15:13.868 11565 11790 E DatabaseUtils: 	at android.content.ContentProviderNative.onTransact(ContentProviderNative.java:104)
04-16 16:15:13.868 11565 11790 E DatabaseUtils: 	at android.os.Binder.execTransactInternal(Binder.java:1056)
04-16 16:15:13.868 11565 11790 E DatabaseUtils: 	at android.os.Binder.execTransact(Binder.java:1029)
04-16 16:15:13.869 10514 11474 I mono-stdout: MSAL: Error (False) MSAL 4.29.0.0 MSAL.Xamarin.Android 29 [04/16/2021 14:15:13] [Android broker] Failed to get accounts from the broker.  Sender=AzureAdAuthTokenProvider

Which Version of MSAL are you using ? Msal 4.29.0

Platform Xamarin.Android

What authentication flow has the issue?

  • Desktop / Mobile
    • Interactive
    • Integrated Windows Auth
    • Username Password
    • Device code flow (browserless)
  • Web App
    • Authorization code
    • OBO
  • Daemon App
    • Service to Service calls

Is this a new or existing app? The app is in production (MSAL 4.24.0), and I have upgraded to a new version of MSAL (4.29.0)

Repro We have several mobile apps that use Authenticator as a broker. This happens consistently while logging in to one of our apps.

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:7 (1 by maintainers)

github_iconTop GitHub Comments

2reactions
pmaytakcommented, Apr 28, 2021

This is included in MSAL 4.30.1 release.

cc: @timdriever

1reaction
timdrievercommented, Apr 16, 2021

Thanks @timdriever. Are you able to send us MSAL logs as well? Getting logs which match one of the broker incident IDs would be ideal, but if that’s not possible, logs from a similarly failed case would be helpful. thank you.

In the incident, it looks like msal v4.24 was working, but updating to 4.29 has issues. Can you revert back to 4.24 until we have investigated the issue?

Thanks! I have sent logging to you. We are not live with 4.29.0 yet, it is still on the test environment. We do hope to be able to use version 29 soon because of the improvements.

Read more comments on GitHub >

github_iconTop Results From Across the Web

java.lang.IllegalArgumentException: bad base-64
I am trying to encode and decode a String using android.util.Base64, but it gives a bad base-64 error. The code with the problem...
Read more >
java.lang.IllegalArgumentException: bad base-64 · Issue #8
This is the code block where the error originates, from our Application object, ( io.company.android.CompanyApp.onCreate(CompanyApp.java:109) ):.
Read more >
Crash: java.lang.IllegalArgumentException: bad Base64 input ...
Type: Icon: Bug Bug · Resolution: Duplicate · Fix Version/s: None · Affects Version/s: Minecraft 1.10 · Labels: None · Environment: OS: Windows...
Read more >
java.lang.IllegalArgumentException: bad Base64 input ... - Bugs
This issue can be fixed by deleting the file servers.dat: Open the launcher; Click Edit Profile; Click Open Game Dir; Delete servers.dat.
Read more >
Android – java.lang.IllegalArgumentException: bad base-64
I am trying to encode and decode a String using android.util.Base64, but it gives a bad base-64 error. The code with the problem...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found