You are viewing a plain text version of this content. The canonical link for it is here.
Posted to pluto-dev@portals.apache.org by "thanh (JIRA)" <ji...@apache.org> on 2007/05/02 06:51:15 UTC

[jira] Created: (PLUTO-361) Error when parsing the portal url

Error when parsing the portal url
---------------------------------

                 Key: PLUTO-361
                 URL: https://issues.apache.org/jira/browse/PLUTO-361
             Project: Pluto
          Issue Type: Bug
          Components: portal driver
    Affects Versions: 1.1.2
         Environment: Fedora 5, Tomcat 5.0.28
            Reporter: thanh


When I use the below link:

http://localhost:8080/pluto/portal/__

I got this error:

java.lang.StringIndexOutOfBoundsException: String index out of range: -2
	java.lang.String.substring(String.java:1768)
	java.lang.String.substring(String.java:1735)
	org.apache.pluto.driver.url.impl.PortalURLParserImpl.decodeParameter(PortalURLParserImpl.java:357)
	org.apache.pluto.driver.url.impl.PortalURLParserImpl.parse(PortalURLParserImpl.java:158)
	org.apache.pluto.driver.core.PortalRequestContext.getRequestedPortalURL(PortalRequestContext.java:113)
	org.apache.pluto.driver.PortalDriverServlet.doGet(PortalDriverServlet.java:95)
	javax.servlet.http.HttpServlet.service(HttpServlet.java:689)
	javax.servlet.http.HttpServlet.service(HttpServlet.java:802)

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Closed: (PLUTO-361) Error when parsing the portal url

Posted by "Elliot Metsger (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/PLUTO-361?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Elliot Metsger closed PLUTO-361.
--------------------------------


> Error when parsing the portal url
> ---------------------------------
>
>                 Key: PLUTO-361
>                 URL: https://issues.apache.org/jira/browse/PLUTO-361
>             Project: Pluto
>          Issue Type: Bug
>          Components: portal driver
>    Affects Versions: 1.1.2
>         Environment: Fedora 5, Tomcat 5.0.28
>            Reporter: thanh
>            Assignee: Craig Doremus
>             Fix For: 1.2.0, 1.1.4
>
>         Attachments: patch-PLUTO-361.txt, unittest-PLUTO-361.txt
>
>
> When I use the below link:
> http://localhost:8080/pluto/portal/__
> I got this error:
> java.lang.StringIndexOutOfBoundsException: String index out of range: -2
> 	java.lang.String.substring(String.java:1768)
> 	java.lang.String.substring(String.java:1735)
> 	org.apache.pluto.driver.url.impl.PortalURLParserImpl.decodeParameter(PortalURLParserImpl.java:357)
> 	org.apache.pluto.driver.url.impl.PortalURLParserImpl.parse(PortalURLParserImpl.java:158)
> 	org.apache.pluto.driver.core.PortalRequestContext.getRequestedPortalURL(PortalRequestContext.java:113)
> 	org.apache.pluto.driver.PortalDriverServlet.doGet(PortalDriverServlet.java:95)
> 	javax.servlet.http.HttpServlet.service(HttpServlet.java:689)
> 	javax.servlet.http.HttpServlet.service(HttpServlet.java:802)

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Commented: (PLUTO-361) Error when parsing the portal url

Posted by "Elliot Metsger (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/PLUTO-361?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12556305#action_12556305 ] 

Elliot Metsger commented on PLUTO-361:
--------------------------------------

Fix committed to 1.1.x branch 609238.  

The 286 merge branch is out of date and this patch can't be easily merge/applied to it.

> Error when parsing the portal url
> ---------------------------------
>
>                 Key: PLUTO-361
>                 URL: https://issues.apache.org/jira/browse/PLUTO-361
>             Project: Pluto
>          Issue Type: Bug
>          Components: portal driver
>    Affects Versions: 1.1.2, 1.1.4
>         Environment: Fedora 5, Tomcat 5.0.28
>            Reporter: thanh
>            Assignee: Elliot Metsger
>             Fix For: 2.0.0, 1.1.5
>
>         Attachments: patch-PLUTO-361.txt, unittest-PLUTO-361.txt
>
>
> When I use the below link:
> http://localhost:8080/pluto/portal/__
> I got this error:
> java.lang.StringIndexOutOfBoundsException: String index out of range: -2
> 	java.lang.String.substring(String.java:1768)
> 	java.lang.String.substring(String.java:1735)
> 	org.apache.pluto.driver.url.impl.PortalURLParserImpl.decodeParameter(PortalURLParserImpl.java:357)
> 	org.apache.pluto.driver.url.impl.PortalURLParserImpl.parse(PortalURLParserImpl.java:158)
> 	org.apache.pluto.driver.core.PortalRequestContext.getRequestedPortalURL(PortalRequestContext.java:113)
> 	org.apache.pluto.driver.PortalDriverServlet.doGet(PortalDriverServlet.java:95)
> 	javax.servlet.http.HttpServlet.service(HttpServlet.java:689)
> 	javax.servlet.http.HttpServlet.service(HttpServlet.java:802)

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Resolved: (PLUTO-361) Error when parsing the portal url

Posted by "Elliot Metsger (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/PLUTO-361?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Elliot Metsger resolved PLUTO-361.
----------------------------------

    Resolution: Fixed

> Error when parsing the portal url
> ---------------------------------
>
>                 Key: PLUTO-361
>                 URL: https://issues.apache.org/jira/browse/PLUTO-361
>             Project: Pluto
>          Issue Type: Bug
>          Components: portal driver
>    Affects Versions: 1.1.2, 1.1.4
>         Environment: Fedora 5, Tomcat 5.0.28
>            Reporter: thanh
>            Assignee: Elliot Metsger
>             Fix For: 1.1.5
>
>         Attachments: patch-PLUTO-361.txt, unittest-PLUTO-361.txt
>
>
> When I use the below link:
> http://localhost:8080/pluto/portal/__
> I got this error:
> java.lang.StringIndexOutOfBoundsException: String index out of range: -2
> 	java.lang.String.substring(String.java:1768)
> 	java.lang.String.substring(String.java:1735)
> 	org.apache.pluto.driver.url.impl.PortalURLParserImpl.decodeParameter(PortalURLParserImpl.java:357)
> 	org.apache.pluto.driver.url.impl.PortalURLParserImpl.parse(PortalURLParserImpl.java:158)
> 	org.apache.pluto.driver.core.PortalRequestContext.getRequestedPortalURL(PortalRequestContext.java:113)
> 	org.apache.pluto.driver.PortalDriverServlet.doGet(PortalDriverServlet.java:95)
> 	javax.servlet.http.HttpServlet.service(HttpServlet.java:689)
> 	javax.servlet.http.HttpServlet.service(HttpServlet.java:802)

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Updated: (PLUTO-361) Error when parsing the portal url

Posted by "Marc Veary (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/PLUTO-361?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Marc Veary updated PLUTO-361:
-----------------------------

    Attachment: patch-PLUTO-361.txt

This patch fixes the issue where an action request (i.e. prefixed with '__') is made but there are no parameters to decode.

> Error when parsing the portal url
> ---------------------------------
>
>                 Key: PLUTO-361
>                 URL: https://issues.apache.org/jira/browse/PLUTO-361
>             Project: Pluto
>          Issue Type: Bug
>          Components: portal driver
>    Affects Versions: 1.1.2
>         Environment: Fedora 5, Tomcat 5.0.28
>            Reporter: thanh
>         Attachments: patch-PLUTO-361.txt
>
>
> When I use the below link:
> http://localhost:8080/pluto/portal/__
> I got this error:
> java.lang.StringIndexOutOfBoundsException: String index out of range: -2
> 	java.lang.String.substring(String.java:1768)
> 	java.lang.String.substring(String.java:1735)
> 	org.apache.pluto.driver.url.impl.PortalURLParserImpl.decodeParameter(PortalURLParserImpl.java:357)
> 	org.apache.pluto.driver.url.impl.PortalURLParserImpl.parse(PortalURLParserImpl.java:158)
> 	org.apache.pluto.driver.core.PortalRequestContext.getRequestedPortalURL(PortalRequestContext.java:113)
> 	org.apache.pluto.driver.PortalDriverServlet.doGet(PortalDriverServlet.java:95)
> 	javax.servlet.http.HttpServlet.service(HttpServlet.java:689)
> 	javax.servlet.http.HttpServlet.service(HttpServlet.java:802)

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Updated: (PLUTO-361) Error when parsing the portal url

Posted by "Elliot Metsger (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/PLUTO-361?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Elliot Metsger updated PLUTO-361:
---------------------------------

        Fix Version/s:     (was: 1.1.4)
                           (was: 1.2.0)
                       1.1.5
    Affects Version/s: 1.1.4

Updating fix ver to 1.1.5.

> Error when parsing the portal url
> ---------------------------------
>
>                 Key: PLUTO-361
>                 URL: https://issues.apache.org/jira/browse/PLUTO-361
>             Project: Pluto
>          Issue Type: Bug
>          Components: portal driver
>    Affects Versions: 1.1.2, 1.1.4
>         Environment: Fedora 5, Tomcat 5.0.28
>            Reporter: thanh
>            Assignee: Elliot Metsger
>             Fix For: 1.1.5
>
>         Attachments: patch-PLUTO-361.txt, unittest-PLUTO-361.txt
>
>
> When I use the below link:
> http://localhost:8080/pluto/portal/__
> I got this error:
> java.lang.StringIndexOutOfBoundsException: String index out of range: -2
> 	java.lang.String.substring(String.java:1768)
> 	java.lang.String.substring(String.java:1735)
> 	org.apache.pluto.driver.url.impl.PortalURLParserImpl.decodeParameter(PortalURLParserImpl.java:357)
> 	org.apache.pluto.driver.url.impl.PortalURLParserImpl.parse(PortalURLParserImpl.java:158)
> 	org.apache.pluto.driver.core.PortalRequestContext.getRequestedPortalURL(PortalRequestContext.java:113)
> 	org.apache.pluto.driver.PortalDriverServlet.doGet(PortalDriverServlet.java:95)
> 	javax.servlet.http.HttpServlet.service(HttpServlet.java:689)
> 	javax.servlet.http.HttpServlet.service(HttpServlet.java:802)

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Updated: (PLUTO-361) Error when parsing the portal url

Posted by "Elliot Metsger (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/PLUTO-361?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Elliot Metsger updated PLUTO-361:
---------------------------------

    Fix Version/s:     (was: 2.0.0)

See PLUTO-470 for this issue opened against 2.0.0.

> Error when parsing the portal url
> ---------------------------------
>
>                 Key: PLUTO-361
>                 URL: https://issues.apache.org/jira/browse/PLUTO-361
>             Project: Pluto
>          Issue Type: Bug
>          Components: portal driver
>    Affects Versions: 1.1.2, 1.1.4
>         Environment: Fedora 5, Tomcat 5.0.28
>            Reporter: thanh
>            Assignee: Elliot Metsger
>             Fix For: 1.1.5
>
>         Attachments: patch-PLUTO-361.txt, unittest-PLUTO-361.txt
>
>
> When I use the below link:
> http://localhost:8080/pluto/portal/__
> I got this error:
> java.lang.StringIndexOutOfBoundsException: String index out of range: -2
> 	java.lang.String.substring(String.java:1768)
> 	java.lang.String.substring(String.java:1735)
> 	org.apache.pluto.driver.url.impl.PortalURLParserImpl.decodeParameter(PortalURLParserImpl.java:357)
> 	org.apache.pluto.driver.url.impl.PortalURLParserImpl.parse(PortalURLParserImpl.java:158)
> 	org.apache.pluto.driver.core.PortalRequestContext.getRequestedPortalURL(PortalRequestContext.java:113)
> 	org.apache.pluto.driver.PortalDriverServlet.doGet(PortalDriverServlet.java:95)
> 	javax.servlet.http.HttpServlet.service(HttpServlet.java:689)
> 	javax.servlet.http.HttpServlet.service(HttpServlet.java:802)

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Reopened: (PLUTO-361) Error when parsing the portal url

Posted by "Elliot Metsger (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/PLUTO-361?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Elliot Metsger reopened PLUTO-361:
----------------------------------

      Assignee: Elliot Metsger  (was: Craig Doremus)

This patch at least partially reverts the patch from PLUTO-356.

> Error when parsing the portal url
> ---------------------------------
>
>                 Key: PLUTO-361
>                 URL: https://issues.apache.org/jira/browse/PLUTO-361
>             Project: Pluto
>          Issue Type: Bug
>          Components: portal driver
>    Affects Versions: 1.1.2
>         Environment: Fedora 5, Tomcat 5.0.28
>            Reporter: thanh
>            Assignee: Elliot Metsger
>             Fix For: 1.2.0, 1.1.4
>
>         Attachments: patch-PLUTO-361.txt, unittest-PLUTO-361.txt
>
>
> When I use the below link:
> http://localhost:8080/pluto/portal/__
> I got this error:
> java.lang.StringIndexOutOfBoundsException: String index out of range: -2
> 	java.lang.String.substring(String.java:1768)
> 	java.lang.String.substring(String.java:1735)
> 	org.apache.pluto.driver.url.impl.PortalURLParserImpl.decodeParameter(PortalURLParserImpl.java:357)
> 	org.apache.pluto.driver.url.impl.PortalURLParserImpl.parse(PortalURLParserImpl.java:158)
> 	org.apache.pluto.driver.core.PortalRequestContext.getRequestedPortalURL(PortalRequestContext.java:113)
> 	org.apache.pluto.driver.PortalDriverServlet.doGet(PortalDriverServlet.java:95)
> 	javax.servlet.http.HttpServlet.service(HttpServlet.java:689)
> 	javax.servlet.http.HttpServlet.service(HttpServlet.java:802)

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Assigned: (PLUTO-361) Error when parsing the portal url

Posted by "Craig Doremus (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/PLUTO-361?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Craig Doremus reassigned PLUTO-361:
-----------------------------------

    Assignee: Craig Doremus

> Error when parsing the portal url
> ---------------------------------
>
>                 Key: PLUTO-361
>                 URL: https://issues.apache.org/jira/browse/PLUTO-361
>             Project: Pluto
>          Issue Type: Bug
>          Components: portal driver
>    Affects Versions: 1.1.2
>         Environment: Fedora 5, Tomcat 5.0.28
>            Reporter: thanh
>            Assignee: Craig Doremus
>         Attachments: patch-PLUTO-361.txt, unittest-PLUTO-361.txt
>
>
> When I use the below link:
> http://localhost:8080/pluto/portal/__
> I got this error:
> java.lang.StringIndexOutOfBoundsException: String index out of range: -2
> 	java.lang.String.substring(String.java:1768)
> 	java.lang.String.substring(String.java:1735)
> 	org.apache.pluto.driver.url.impl.PortalURLParserImpl.decodeParameter(PortalURLParserImpl.java:357)
> 	org.apache.pluto.driver.url.impl.PortalURLParserImpl.parse(PortalURLParserImpl.java:158)
> 	org.apache.pluto.driver.core.PortalRequestContext.getRequestedPortalURL(PortalRequestContext.java:113)
> 	org.apache.pluto.driver.PortalDriverServlet.doGet(PortalDriverServlet.java:95)
> 	javax.servlet.http.HttpServlet.service(HttpServlet.java:689)
> 	javax.servlet.http.HttpServlet.service(HttpServlet.java:802)

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Updated: (PLUTO-361) Error when parsing the portal url

Posted by "Elliot Metsger (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/PLUTO-361?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Elliot Metsger updated PLUTO-361:
---------------------------------

    Fix Version/s: 2.0.0

> Error when parsing the portal url
> ---------------------------------
>
>                 Key: PLUTO-361
>                 URL: https://issues.apache.org/jira/browse/PLUTO-361
>             Project: Pluto
>          Issue Type: Bug
>          Components: portal driver
>    Affects Versions: 1.1.2, 1.1.4
>         Environment: Fedora 5, Tomcat 5.0.28
>            Reporter: thanh
>            Assignee: Elliot Metsger
>             Fix For: 2.0.0, 1.1.5
>
>         Attachments: patch-PLUTO-361.txt, unittest-PLUTO-361.txt
>
>
> When I use the below link:
> http://localhost:8080/pluto/portal/__
> I got this error:
> java.lang.StringIndexOutOfBoundsException: String index out of range: -2
> 	java.lang.String.substring(String.java:1768)
> 	java.lang.String.substring(String.java:1735)
> 	org.apache.pluto.driver.url.impl.PortalURLParserImpl.decodeParameter(PortalURLParserImpl.java:357)
> 	org.apache.pluto.driver.url.impl.PortalURLParserImpl.parse(PortalURLParserImpl.java:158)
> 	org.apache.pluto.driver.core.PortalRequestContext.getRequestedPortalURL(PortalRequestContext.java:113)
> 	org.apache.pluto.driver.PortalDriverServlet.doGet(PortalDriverServlet.java:95)
> 	javax.servlet.http.HttpServlet.service(HttpServlet.java:689)
> 	javax.servlet.http.HttpServlet.service(HttpServlet.java:802)

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Resolved: (PLUTO-361) Error when parsing the portal url

Posted by "Craig Doremus (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/PLUTO-361?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Craig Doremus resolved PLUTO-361.
---------------------------------

       Resolution: Fixed
    Fix Version/s: 1.1.4
                   1.2.0

Fixed applied in SVN revision 554206 in trunk and revision 554210 in pluto-1.1.x branch. Thank you Marc for the patch!

> Error when parsing the portal url
> ---------------------------------
>
>                 Key: PLUTO-361
>                 URL: https://issues.apache.org/jira/browse/PLUTO-361
>             Project: Pluto
>          Issue Type: Bug
>          Components: portal driver
>    Affects Versions: 1.1.2
>         Environment: Fedora 5, Tomcat 5.0.28
>            Reporter: thanh
>            Assignee: Craig Doremus
>             Fix For: 1.2.0, 1.1.4
>
>         Attachments: patch-PLUTO-361.txt, unittest-PLUTO-361.txt
>
>
> When I use the below link:
> http://localhost:8080/pluto/portal/__
> I got this error:
> java.lang.StringIndexOutOfBoundsException: String index out of range: -2
> 	java.lang.String.substring(String.java:1768)
> 	java.lang.String.substring(String.java:1735)
> 	org.apache.pluto.driver.url.impl.PortalURLParserImpl.decodeParameter(PortalURLParserImpl.java:357)
> 	org.apache.pluto.driver.url.impl.PortalURLParserImpl.parse(PortalURLParserImpl.java:158)
> 	org.apache.pluto.driver.core.PortalRequestContext.getRequestedPortalURL(PortalRequestContext.java:113)
> 	org.apache.pluto.driver.PortalDriverServlet.doGet(PortalDriverServlet.java:95)
> 	javax.servlet.http.HttpServlet.service(HttpServlet.java:689)
> 	javax.servlet.http.HttpServlet.service(HttpServlet.java:802)

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Updated: (PLUTO-361) Error when parsing the portal url

Posted by "Marc Veary (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/PLUTO-361?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Marc Veary updated PLUTO-361:
-----------------------------

    Attachment: unittest-PLUTO-361.txt

The attached Unit Test was used to reproduce the issue and to test fix

> Error when parsing the portal url
> ---------------------------------
>
>                 Key: PLUTO-361
>                 URL: https://issues.apache.org/jira/browse/PLUTO-361
>             Project: Pluto
>          Issue Type: Bug
>          Components: portal driver
>    Affects Versions: 1.1.2
>         Environment: Fedora 5, Tomcat 5.0.28
>            Reporter: thanh
>         Attachments: patch-PLUTO-361.txt, unittest-PLUTO-361.txt
>
>
> When I use the below link:
> http://localhost:8080/pluto/portal/__
> I got this error:
> java.lang.StringIndexOutOfBoundsException: String index out of range: -2
> 	java.lang.String.substring(String.java:1768)
> 	java.lang.String.substring(String.java:1735)
> 	org.apache.pluto.driver.url.impl.PortalURLParserImpl.decodeParameter(PortalURLParserImpl.java:357)
> 	org.apache.pluto.driver.url.impl.PortalURLParserImpl.parse(PortalURLParserImpl.java:158)
> 	org.apache.pluto.driver.core.PortalRequestContext.getRequestedPortalURL(PortalRequestContext.java:113)
> 	org.apache.pluto.driver.PortalDriverServlet.doGet(PortalDriverServlet.java:95)
> 	javax.servlet.http.HttpServlet.service(HttpServlet.java:689)
> 	javax.servlet.http.HttpServlet.service(HttpServlet.java:802)

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.