ICEfaces
  1. ICEfaces
  2. ICE-3427

Navigation to a page with white space in URI throws error

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 1.7.1
    • Fix Version/s: 1.7.2
    • Component/s: Framework
    • Labels:
      None
    • Environment:
      JSF 1.1

      Description

      Hi,
      I encountered a problem on redirect to an URI which contains white-space.
      This is the navigation rule in faces-confing.xml:

      <navigation-case>
            <from-outcome>naviga</from-outcome>
            <to-view-id>/name with space.iface</to-view-id>
            <redirect/>
       </navigation-case>

      And this is the stack-trace:

      java.lang.IllegalArgumentException
              java.net.URI.create(URI.java:842)
             
      com.icesoft.faces.context.BridgeExternalContext.redirect(BridgeExternalContext.java:324)
             
      com.sun.faces.application.NavigationHandlerImpl.handleNavigation(NavigationHandlerImpl.java:122)
             
      com.sun.faces.application.ActionListenerImpl.processAction(ActionListenerImpl.java:89)
              javax.faces.component.UICommand.broadcast(UICommand.java:312)
              javax.faces.component.UIViewRoot.broadcastEvents(UIViewRoot.java:267)
              javax.faces.component.UIViewRoot.processApplication(UIViewRoot.java:381)
             
      com.sun.faces.lifecycle.InvokeApplicationPhase.execute(InvokeApplicationPhase.java:75)
              com.sun.faces.lifecycle.LifecycleImpl.phase(LifecycleImpl.java:200)
              com.sun.faces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:90)
             
      com.icesoft.faces.webapp.http.core.JsfLifecycleExecutor.apply(JsfLifecycleExecutor.java:17)
             
      com.icesoft.faces.webapp.http.core.ReceiveSendUpdates.renderCycle(ReceiveSendUpdates.java:54)
             
      com.icesoft.faces.webapp.http.core.ReceiveSendUpdates.service(ReceiveSendUpdates.java:42)
             
      com.icesoft.faces.webapp.http.core.ViewBoundServer.service(ViewBoundServer.java:65)
             
      com.icesoft.faces.webapp.http.core.RequestVerifier.service(RequestVerifier.java:44)
             
      com.icesoft.faces.webapp.http.common.standard.PathDispatcherServer$Matcher.serviceOnMatch(PathDispatcherServer.java:50)
             
      com.icesoft.faces.webapp.http.common.standard.PathDispatcherServer.service(PathDispatcherServer.java:19)
             
      com.icesoft.faces.webapp.http.servlet.ThreadBlockingAdaptingServlet.service(ThreadBlockingAdaptingServlet.java:19)
             
      com.icesoft.faces.webapp.http.servlet.EnvironmentAdaptingServlet.service(EnvironmentAdaptingServlet.java:63)
             
      com.icesoft.faces.webapp.http.servlet.MainSessionBoundServlet.service(MainSessionBoundServlet.java:139)
             
      com.icesoft.faces.webapp.http.servlet.SessionDispatcher.service(SessionDispatcher.java:53)
             
      com.icesoft.faces.webapp.http.servlet.PathDispatcher$Matcher.serviceOnMatch(PathDispatcher.java:52)
             
      com.icesoft.faces.webapp.http.servlet.PathDispatcher.service(PathDispatcher.java:29)
             
      com.icesoft.faces.webapp.http.servlet.MainServlet.service(MainServlet.java:82)
              javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
             
      com.icesoft.faces.webapp.xmlhttp.BlockingServlet.service(BlockingServlet.java:46

      NOTE: This works fine with ICEfaces 1.5.3 and also in a standard JSF application.

        Activity

        Repository Revision Date User Message
        ICEsoft Public SVN Repository #17462 Thu Aug 28 13:42:23 MDT 2008 jack.van.ooststroom Fixed JIRA ICE-3427 : Navigation to a page with white space in URI throws error; path and query are now used as separate parameters when creating the URI
        Files Changed
        Commit graph MODIFY /icefaces/branches/icefaces-1.7/icefaces/core/src/com/icesoft/faces/context/BridgeExternalContext.java
        Repository Revision Date User Message
        ICEsoft Public SVN Repository #17461 Thu Aug 28 13:40:45 MDT 2008 jack.van.ooststroom Fixed JIRA ICE-3427 : Navigation to a page with white space in URI throws error; path and query are now used as separate parameters when creating the URI
        Files Changed
        Commit graph MODIFY /icefaces/trunk/icefaces/core/src/com/icesoft/faces/context/BridgeExternalContext.java
        Repository Revision Date User Message
        ICEsoft Public SVN Repository #17376 Wed Aug 20 14:46:45 MDT 2008 jack.van.ooststroom Fixed JIRA ICE-3427 : Navigation to a page with white space in URI throws error; Added some additional comments.
        Files Changed
        Commit graph MODIFY /icefaces/trunk/icefaces/core/src/com/icesoft/faces/context/BridgeExternalContext.java
        Repository Revision Date User Message
        ICEsoft Public SVN Repository #17373 Wed Aug 20 10:33:27 MDT 2008 jack.van.ooststroom Fixed JIRA ICE-3427 : Navigation to a page with white space in URI throws error
        Files Changed
        Commit graph MODIFY /icefaces/branches/icefaces-1.7/icefaces/core/src/com/icesoft/faces/context/BridgeExternalContext.java
        Repository Revision Date User Message
        ICEsoft Public SVN Repository #17372 Wed Aug 20 10:22:30 MDT 2008 jack.van.ooststroom Fixed JIRA ICE-3427 : Navigation to a page with white space in URI throws error
        Files Changed
        Commit graph MODIFY /icefaces/trunk/icefaces/core/src/com/icesoft/faces/context/BridgeExternalContext.java

          People

          • Assignee:
            Unassigned
            Reporter:
            Arran Mccullough
          • Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: