PredixDev/predix-rest-client

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

Opened this issue · 1 comments

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(":")));.

any updates?