[ 
https://issues.apache.org/jira/browse/SHINDIG-1958?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Andreas Kohn updated SHINDIG-1958:
----------------------------------

    Attachment: SHINDIG-1958-oauth2-token-handler-offByOne.diff

> Off-by-one when translating the token scope in 
> OAuth2TokenHandler#listToString()
> --------------------------------------------------------------------------------
>
>                 Key: SHINDIG-1958
>                 URL: https://issues.apache.org/jira/browse/SHINDIG-1958
>             Project: Shindig
>          Issue Type: Bug
>          Components: Java
>    Affects Versions: 2.5.0-update1
>            Reporter: Andreas Kohn
>         Attachments: SHINDIG-1958-oauth2-token-handler-offByOne.diff
>
>
> I've started to use OAuth scopes in our application, unfortunately shindig 
> currently has an issue with that:
> {noformat}
> SEVERE: Servlet.service() for servlet [OAuth2Servlet] in context with path 
> [/api] threw exception [java.lang.StringIndexOutOfBoundsException: String 
> index out of range: 34] with root cause
> java.lang.StringIndexOutOfBoundsException: String index out of range: 34
>       at 
> java.lang.AbstractStringBuilder.deleteCharAt(AbstractStringBuilder.java:762)
>       at java.lang.StringBuilder.deleteCharAt(StringBuilder.java:258)
>       at 
> org.apache.shindig.social.core.oauth2.OAuth2TokenHandler.listToString(OAuth2TokenHandler.java:94)
>       at 
> org.apache.shindig.social.core.oauth2.OAuth2TokenHandler.handle(OAuth2TokenHandler.java:73)
>       at 
> org.apache.shindig.social.core.oauth2.OAuth2Servlet.doGet(OAuth2Servlet.java:71)
>       at javax.servlet.http.HttpServlet.service(HttpServlet.java:621)
>       at javax.servlet.http.HttpServlet.service(HttpServlet.java:728)
> {noformat}



--
This message was sent by Atlassian JIRA
(v6.1#6144)

Reply via email to