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.

UnsupportedOperationException: This isn't a hierarchical URI

See original GitHub issue

Hi,

I’m trying to get this library to work with the Microsoft v2 Authentication Endpoint. I’m running into the following error:

java.lang.RuntimeException: Unable to start activity ComponentInfo{net.openid.appauthdemo/net.openid.appauth.RedirectUriReceiverActivity}: java.lang.UnsupportedOperationException: This isn't a hierarchical URI.

The exception is thrown in RedirectUriReceiverActivity.

The problem is that the Microsoft URI format is like this urn:ietf:wg:oauth:2.0:oob and Uri.getQueryParameter doesn’t like it.

Is there any workaround to make it work with this provider? Thanks for the great work, by the way.

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Comments:5 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
iainmcgincommented, Aug 26, 2016

We may be able to add support for this special URI, but we currently recommend either using a custom scheme reflecting your package name or an HTTPS app link. I’m on vacation right now, I’ll comment further when I get back next week.

0reactions
ricalocommented, Aug 29, 2016

Yes, the authorization code is passed as a param on oob.

Thanks for the feedback on the POC. I’d definitely use a specific path along with the urn scheme in production code.

Not supporting old patterns sounds reasonable. I appreciate the explanation and will look for alternatives.

Read more comments on GitHub >

github_iconTop Results From Across the Web

This isn't a hierarchical URI - Stack Overflow
UnsupportedOperationException : This isn't a hierarchical URI. this is my code. Intent appIntent = new Intent(Intent.
Read more >
This isn't a hierarchical URI. - Microsoft Q&A
UnsupportedOperationException : This isn't a hierarchical URI. Hi, a payment system via Satispay is implemented in my app.
Read more >
This isn''t a hierarchical URI. at android.net ... - Bugzilla@Mozilla
lang.UnsupportedOperationException: This isn't a hierarchical URI. at android.net.Uri.getQueryParameterNames(Uri.java:1572) at org.mozilla.gecko.activitystream.
Read more >
UnsupportedOperationException: This isn't a hierarchical URI.
java.lang.UnsupportedOperationException: This isn't a hierarchical URI.
Read more >
Uri | Android Developers
String? the encoded path, or null if this is not a hierarchical URI (like ... UnsupportedOperationException, if this isn't a hierarchical URI. java.lang....
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