Skip to content

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

@dzhou10

Description

@dzhou10

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions