UnsupportedOperationException: This isn't a hierarchical URI
See original GitHub issueHi,
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:
- Created 7 years ago
- Comments:5 (3 by maintainers)
Top 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 >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
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.
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.