ICEfaces
  1. ICEfaces
  2. ICE-2527

Seam jBPM redirects causing redirect loop.

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 1.7DR#2
    • Fix Version/s: 1.7
    • Component/s: Framework
    • Labels:
      None
    • Environment:
      ICEfaces + Seam

      Description

      When Seam jBPM does page navigation using redirects, there's a mismatch in Pageflow.validatePageflow(Seam code)

      //now check that the restored view id matches what we expect
               //from the pageflow node
               //TODO: we need some way to disable this check, since users
               // might want some adhoc nav in and out of a pageflow?
               String viewId = Pages.getViewId(facesContext);
               if ( !viewId.equals( getPage().getViewId() ) )
               {
                  illegalNavigationError();
               }


      In my example, the viewId from the facesContext object is pageD.seam, whereas the viewId from getPage().getViewId() is pageD.xhtml. This mismatch causes illegalNavigationError to be called, which does page navigation to the current page (in my case) which causes the redirection loop.

      We need to understand why the difference in page viewID representation.

        Activity

          People

          • Assignee:
            Unassigned
            Reporter:
            Greg Dick
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: