ICEfaces
  1. ICEfaces
  2. ICE-7069

Allow application to handle exceptions generated by malformed URLs

    Details

    • Type: Improvement Improvement
    • Status: Open
    • Priority: Major Major
    • Resolution: Unresolved
    • Affects Version/s: EE-2.0.0.GA, 2.0.2, EE-1.8.2.GA_P03
    • Fix Version/s: None
    • Component/s: Framework
    • Labels:
      None
    • Environment:
      -
    • Salesforce Case Reference:

      Description

      The user´s application has an external entity that generates parameters and adds them to the application´s URL. The URL parameters that can contain alphanumeric characters and the % symbol. For example, the URL could become http://host/owui?param=%20. The issue is that if the user were to only copy http://host/owui?param=%2, an internal server error / illegal argument exception is thrown which is undesirable. Instead, the user would like to be able to handle the exception in the application and display an appropriate error message. It´s possible to reproduce the IllegalStateException using the following component showcase URL: http://component-showcase.icefaces.org/component-showcase/showcase.iface?param=%2 which results in:

      java.lang.IllegalArgumentException
      java.net.URI.create(URI.java:842)
      com.icesoft.faces.webapp.http.servlet.ServletRequestResponse$1.servlet(ServletRequestResponse.java:98)
      ........
      java.net.URISyntaxException: Malformed escape pair at index 79: http://component-showcase.icefaces.org/component-showcase/showcase.iface?param=%2
      java.net.URI$Parser.fail(URI.java:2809)
      java.net.URI$Parser.scanEscape(URI.java:2939)
      java.net.URI$Parser.scan(URI.java:2962)

        Activity

        There are no comments yet on this issue.

          People

          • Assignee:
            Unassigned
            Reporter:
            Tyler Johnson
          • Votes:
            1 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

            • Created:
              Updated: