Details

    • Type: Bug Bug
    • Status: Open
    • Priority: Major Major
    • Resolution: Unresolved
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: Tree2
    • Labels:
      None

      Description

      Cookies for tree2 are generated by JavaScript, with as name the (simple) JSF id of the tree2 component, and as path the "current URL directory". However, in a normal JSF-to-JSF navigation, the first time the tree is rendered, we came from another page, and the URL is the URL of that previous page (in JSF, the URL is always 1 step behind). When we have server interaction within the page the tree is on, after the first interaction, the URL is changed to the URL of the second page, and a second cookie is created for that "URL directory". This is not an issue in itself if both pages are in the same directory, but becomes apparent if they are not.

      This is probably hard to fix when looked at narrowly, because of the "URL is always 1 step behind" JSF issue. The real issue is, however, that the path of the cookie should be the webapp context, like JSESSIONID has, and not the "current URL directory". The viewId could then be made part of the cookie name, to make it unique.

      (Or, for an even more bold suggestion: we should get writ of the cookies, and store the state in a hidden field. Cookies can be used for storing state across requests, but for tree2 that is exactly what we don't want: we want to get the info to the server, let the server define a new state, and then get that back.)

        Activity

        Jan Dockx created issue -
        Martin Marinschek made changes -
        Field Original Value New Value
        Assignee Mathias Werlitz [ mathias.werlitz ]
        sean schofield made changes -
        Component/s Other [ 12310767 ]
        Project MyFaces Core [ 10600 ] MyFaces Tomahawk [ 12310272 ]
        Affects Version/s 1.1.1 [ 12310262 ]
        Key MYFACES-616 TOMAHAWK-19
        Component/s Tomahawk [ 12310162 ]
        sean schofield made changes -
        Workflow jira [ 12330447 ] MyFaces Workflow [ 12347490 ]
        Matthias Weßendorf made changes -
        Component/s Tree2 [ 12310743 ]
        sean schofield made changes -
        Workflow MyFaces Workflow [ 12347490 ] MyFaces Workflow2 [ 12348828 ]
        sean schofield made changes -
        Workflow MyFaces Workflow2 [ 12348828 ] MyFaces Workflow [ 12354277 ]
        sean schofield made changes -
        Workflow MyFaces Workflow [ 12354277 ] MyFaces Workflow2 [ 12356304 ]
        sean schofield made changes -
        Workflow MyFaces Workflow2 [ 12356304 ]  MyFaces Workflow [ 12356818 ]
        sean schofield made changes -
        Workflow  MyFaces Workflow [ 12356818 ] MyFaces Workflow2 [ 12358438 ]
        sean schofield made changes -
        Workflow  MyFaces Workflow [ 12358438 ] MyFaces Workflow2 [ 12360878 ]
        Mathias Werlitz made changes -
        Assignee Mathias Werlitz [ mathias.werlitz ] sean schofield [ schof ]

          People

          • Assignee:
            sean schofield
            Reporter:
            Jan Dockx
          • Votes:
            1 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

            • Created:
              Updated:

              Development