PredixDev / predix-rest-client

Other
7 stars 16 forks source link

oauthClientId doesn't have ":", if oauthClientIdEncode is false. #2

Open dzhou10 opened 8 years ago

dzhou10 commented 8 years ago

Once the oauthClientIdEncode is set to false, got the following issue. java.lang.StringIndexOutOfBoundsException: String index out of range: -1

Code issue: public List

getOauthHttpHeaders(String oauthClientId, boolean oauthClientIdEncode) log.debug("predix.oauth.clientId=" + oauthClientId.substring(0, oauthClientId.indexOf(":")));.

dzhou10 commented 8 years ago

any updates?