microsoft / oauth2-useragent

Microsoft OAuth 2.0 User Agent library for Java. Provides classes to facilitate the implementation of "4.1. Authorization Code Grant" from RFC 6749.
Other
35 stars 22 forks source link

A fatal error in a subprocess is relayed as a very long, URL-encoded exception message #23

Closed olivierdagenais closed 8 years ago

olivierdagenais commented 8 years ago

A fatal error (like the one caused by issue #22) currently causes the stack trace to contain something that looks like:

Caused by: error=unknown_error&error_description=Exception+in+Application+start+method%0AException+in+Application+stop+method%0Ajava.lang.reflect.InvocationTargetException%0A%09at+sun.reflect.NativeMethodAccessorImpl.invoke0%28Native+Method%29%0A%09at (...goes on for several "lines"...) %09...+1+more%0AException+running+application+com.microsoft.alm.oauth2.useragent.JavaFx%0A

At the very least, we should URL-decode the output so it can be formatted nicely.