You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@shindig.apache.org by "Andreas Kohn (JIRA)" <ji...@apache.org> on 2014/02/24 20:33:22 UTC

[jira] [Updated] (SHINDIG-1958) Off-by-one when translating the token scope in OAuth2TokenHandler#listToString()

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

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

    Fix Version/s: 2.5.1

> 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
>            Assignee: Andreas Kohn
>             Fix For: 2.5.1
>
>         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.5#6160)