ICEfaces
  1. ICEfaces
  2. ICE-5570

Spring Security docs and tutorial should be updated for v3

    Details

    • Type: Improvement Improvement
    • Status: Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 1.8.2a
    • Fix Version/s: EE-1.8.2.GA_P04
    • Component/s: Documentation
    • Labels:
      None
    • Environment:
      GF v3, Spring Framework 3.0.0, Spring Security 3.0
    • Affects:
      Documentation (User Guide, Ref. Guide, etc.), Sample App./Tutorial
    • Workaround Exists:
      Yes
    • Workaround Description:
      Hide
      public String processLogin() throws ServletException, IOException {
            ExternalContext context = FacesContext.getCurrentInstance().getExternalContext();
            RequestDispatcher dispatcher = ((ServletRequest) context.getRequest()).getRequestDispatcher("/j_spring_security_check");

            dispatcher.forward((ServletRequest) context.getRequest(),
                    (ServletResponse) context.getResponse());

            FacesContext.getCurrentInstance().responseComplete();
            // It's OK to return null here because Faces is just going to exit.
            return null;

         }



      web.xml

       <filter-mapping>
            <filter-name>springSecurityFilterChain</filter-name>
            <url-pattern>/*</url-pattern>
            <dispatcher>FORWARD</dispatcher>
            <dispatcher>REQUEST</dispatcher>
         </filter-mapping>
      Show
      public String processLogin() throws ServletException, IOException {       ExternalContext context = FacesContext.getCurrentInstance().getExternalContext();       RequestDispatcher dispatcher = ((ServletRequest) context.getRequest()).getRequestDispatcher("/j_spring_security_check");       dispatcher.forward((ServletRequest) context.getRequest(),               (ServletResponse) context.getResponse());       FacesContext.getCurrentInstance().responseComplete();       // It's OK to return null here because Faces is just going to exit.       return null;    } web.xml  <filter-mapping>       <filter-name>springSecurityFilterChain</filter-name>       <url-pattern>/*</url-pattern>       <dispatcher>FORWARD</dispatcher>       <dispatcher>REQUEST</dispatcher>    </filter-mapping>

      Description

      Integration with Spring Security 3 from manual - is broken

      Server reply:

      <?xml version="1.0" encoding="utf-8"?>
      <partial-response><redirect url="/j_spring_security_check?j_username=xxxx&j_password=xxxx&_spring_security_remember_me=true"></redirect></partial-response>

      Integration from manal was OK with 1.8

        Activity

        Pavel Kuzin created issue -
        Ken Fyten made changes -
        Field Original Value New Value
        Salesforce Case []
        Fix Version/s 2.0.0 [ 10230 ]
        Affects [Documentation (User Guide, Ref. Guide, etc.), Sample App./Tutorial]
        Assignee Deryk Sinotte [ deryk.sinotte ]
        Deryk Sinotte made changes -
        Salesforce Case []
        Assignee Deryk Sinotte [ deryk.sinotte ] Greg Dick [ greg.dick ]
        Ken Fyten made changes -
        Status Open [ 1 ] Resolved [ 5 ]
        Resolution Fixed [ 1 ]
        Ken Fyten made changes -
        Resolution Fixed [ 1 ]
        Status Resolved [ 5 ] Reopened [ 4 ]
        Ken Fyten made changes -
        Assignee Greg Dick [ greg.dick ] Ken Fyten [ ken.fyten ]
        Ken Fyten made changes -
        Salesforce Case []
        Fix Version/s 1.8.2-EE-GA_P03 [ 10251 ]
        Fix Version/s 2.0.0 [ 10230 ]
        Affects Version/s 1.8.2a [ 10229 ]
        Affects Version/s 2.0-Alpha2 [ 10214 ]
        Assignee Ken Fyten [ ken.fyten ] Greg Dick [ greg.dick ]
        Ken Fyten made changes -
        Summary Spring Security integration is broken Spring Security docs and tutorial should be updated for v3
        Issue Type Bug [ 1 ] Improvement [ 4 ]
        Salesforce Case []
        Component/s  Documentation [ 10018 ]
        Ken Fyten made changes -
        Salesforce Case []
        Fix Version/s EE-1.8.2.GA_P04 [ 10280 ]
        Fix Version/s EE-1.8.2.GA_P03 [ 10251 ]
        Ken Fyten made changes -
        Assignee Greg Dick [ greg.dick ] Carlo Guglielmin [ carlo.guglielmin ]
        Carlo Guglielmin made changes -
        Assignee Carlo Guglielmin [ carlo.guglielmin ] Ken Fyten [ ken.fyten ]
        Ken Fyten made changes -
        Status Reopened [ 4 ] Resolved [ 5 ]
        Resolution Fixed [ 1 ]
        Ken Fyten made changes -
        Status Resolved [ 5 ] Closed [ 6 ]

          People

          • Assignee:
            Ken Fyten
            Reporter:
            Pavel Kuzin
          • Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: