Uploaded image for project: 'Pluto'
  1. Pluto
  2. PLUTO-361

Error when parsing the portal url

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 1.1.2, 1.1.4
    • Fix Version/s: 1.1.5
    • Component/s: portal driver
    • Labels:
      None
    • Environment:
      Fedora 5, Tomcat 5.0.28

      Description

      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)

        Attachments

        1. unittest-PLUTO-361.txt
          18 kB
          Marc Veary
        2. patch-PLUTO-361.txt
          2 kB
          Marc Veary

          Issue Links

            Activity

              People

              • Assignee:
                emetsger Elliot Metsger
                Reporter:
                thanhntk thanh
              • Votes:
                0 Vote for this issue
                Watchers:
                1 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: