Uploaded image for project: 'Geronimo'
  1. Geronimo
  2. GERONIMO-5384

Geronimo console doesn't seem to handle % in sql statements right.

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 2.1.5, 2.2.1
    • 2.1.7, 2.2.1, 3.0.0
    • None
    • Security Level: public (Regular issues)
    • None

    Description

      This bug is seen in Geronimo console under Run Sql on the Database Pools form.
      Try to run this query, the problem seems to be independent of datasource:

      select * from foo where name like '%a%'

      The result is:

      type Exception report

      message

      description The server encountered an internal error () that prevented it from fulfilling this request.

      exception

      java.lang.IllegalArgumentException: URLDecoder: Illegal hex characters in escape (%) pattern - For input string: "a%"
      java.net.URLDecoder.decode(URLDecoder.java:173)
      org.apache.geronimo.console.filter.XSSHandler.isInvalidParam(XSSHandler.java:135)
      org.apache.geronimo.console.filter.XSSHandler.isInvalidParameters(XSSHandler.java:80)
      org.apache.geronimo.console.filter.XSSXSRFFilter.doFilter(XSSXSRFFilter.java:105)

      Attachments

        Activity

          People

            rwonly Lei Wang
            khaksnes Knut-HÃ¥vard Aksnes
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: