java.lang.ClassCastException

Issue #365 invalid
Purna created an issue

https://bitbucket.org/connect2id/oauth-2.0-sdk-with-openid-connect-extensions/issues/259/javalangclasscastexception

Above request marked as Invalid…

In URLUtils.java, serializeParameters is expecting MAP < String, LIST<String>> … same has been passed by AdalTokenRequest.

‌ public static String serializeParameters(final Map<String,List<String>> params)

In the above method, params is of MAP<String, LIST<String>> … but in src/main/java/com/nimbusds/oauth2/sdk/util/URLUtils.java,

at line 101 - entry.getValue is assigned to “String” type… but Value in MAP is a LIST type (as per serializeParameters method parameters)… Please check.

for (String value: entry.getValue()) {

Comments (1)

  1. Vladimir Dzhuvinov

    It looks like the SDK dep was bumped to a new major version (with updated URLUtils API) without updating the client code.

  2. Log in to comment