ICEfaces
  1. ICEfaces
  2. ICE-995

userRole functionality breaks on Tomcat

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 1.5
    • Fix Version/s: 1.5.2
    • Component/s: Framework
    • Labels:
      None
    • Environment:
      Operating System: Windows XP
      Platform: PC

      Description

      The HttpServletRequest caching is causing problems with ICEfaces userRole
      functionality. Specifically, the userPrincipal is being unset.

      see forum post -> http://www.icefaces.org/JForum/posts/list/0/2782.page#13818

      Tasks:
      1) create a testcase that demonstrates the bug.
      2) debug and resolve issue.

        Activity

        Greg McCleary created issue -
        Hide
        Greg McCleary added a comment -

        Testcase can be found in /support/iraptor/1000/179/

        The testcase will render and enable on userRole "tomcat". You will need to make
        sure your user has the tomcat role (this is set in the tomcat-users.xml)
        The initial rendering should display all inputs correctly (rendered and enabled).
        The bug can be seen when you move focus from the browser for a few seconds.
        Then go back to the browser and submit the page (using the submit button).
        The rendered page will now be incorrect. Only the component that was not using
        role based rendering will be displayed correctly. One component will be disabled
        and one will not be rendered(the bug).

        Show
        Greg McCleary added a comment - Testcase can be found in /support/iraptor/1000/179/ The testcase will render and enable on userRole "tomcat". You will need to make sure your user has the tomcat role (this is set in the tomcat-users.xml) The initial rendering should display all inputs correctly (rendered and enabled). The bug can be seen when you move focus from the browser for a few seconds. Then go back to the browser and submit the page (using the submit button). The rendered page will now be incorrect. Only the component that was not using role based rendering will be displayed correctly. One component will be disabled and one will not be rendered(the bug).
        Hide
        Greg McCleary added a comment -

        This bug was handled by properly configuring Tomcat to use the catalina
        authentication adapter as per the documentation on the acegi site.

        http://acegisecurity.org/docbook/acegi.html#ca-tomcat

        I also made some notes and downloaded the required jars to public on 'Server
        (server)'\Downloads\acegi-security\

        Show
        Greg McCleary added a comment - This bug was handled by properly configuring Tomcat to use the catalina authentication adapter as per the documentation on the acegi site. http://acegisecurity.org/docbook/acegi.html#ca-tomcat I also made some notes and downloaded the required jars to public on 'Server (server)'\Downloads\acegi-security\
        Hide
        Greg McCleary added a comment -

        Tested and working on Tomcat 5.0.28 using acegi-security-1.0.1 and the catalina
        container authentication adapter.

        Show
        Greg McCleary added a comment - Tested and working on Tomcat 5.0.28 using acegi-security-1.0.1 and the catalina container authentication adapter.
        Hide
        Greg McCleary added a comment -

        When acegi security is properly setup on tomcat the userRole functionality works
        as expected.

        Show
        Greg McCleary added a comment - When acegi security is properly setup on tomcat the userRole functionality works as expected.
        Icefaces Administrator made changes -
        Field Original Value New Value
        issue.field.bugzillaimportkey 1015 12264
        Ken Fyten made changes -
        Affects Version/s 1.5 [ 10027 ]
        Affects Version/s unspecified [ 10021 ]
        Ken Fyten made changes -
        Status Resolved [ 5 ] Closed [ 6 ]

          People

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

            Dates

            • Created:
              Updated:
              Resolved: