Announcement Announcement Module
No announcement yet.
Issues with redirect Page Title Module
Move Remove Collapse
Conversation Detail Module
  • Filter
  • Time
  • Show
Clear All
new posts

  • Issues with redirect

    I'm using SS 2.0.4 and GWT 2.0.4 (I just noticed they have the same version #) and I'm seeing at least three issues related to url redirecting. What I want to do is have the user go to a specific "place" of my app after proper authentication according to what the URL contains, but I see these:

    1. If user goes to
    http://host/app/index.html#session=1544352019 (or simply http://host/app/#session=1544352019)
    for the first time (no chached files on browser so not currently logged in) the app goes simply to login.html and after successful authentication, to index.html (gets rid of the rest of the URL)
    2. If user has loaded app before but is unauthenticated, my app starts and then I catch unauthenticated user through ajax request, upon which I display login dialog that sets the FORM action to "j_spring_security_check?spring-security-redirect=#session=1544352019". It works for Firefox and Chrome, but not for IE7.
    3. Similar to (2) but I set the Window Location directly to
    http://host/app/j_spring_security_ch...ion=1544352019 and on IE7, it goes to login.html, but after a successful authentication, it displays
    http://host/app/j_spring_security_check but doesn't display anything (browser complains about bad page or something).

    This is my SS config and don't see any errors on the SS logs:

      <http auto-config="false">
          <intercept-url pattern="/public" filters="none"/>
          <intercept-url pattern="/login.html*" filters="none"/>
          <intercept-url pattern="/img/**" filters="none"/>
          <intercept-url pattern="/unsecure" filters="none"/>
          <intercept-url pattern="/*.css" filters="none"/>
          <intercept-url pattern="/*cache*" filters="none"/>
          <intercept-url pattern="/gwt/**" filters="none"/>
          <intercept-url pattern="/**" access="IS_AUTHENTICATED_REMEMBERED" />
          <form-login login-page="/login.html"
          <logout logout-success-url="/login.html" />
          <remember-me key="DEXcenterRocks"
                       token-repository-ref="tokenRepository" />
       <beans:bean id="dataSource" class="org.springframework.jdbc.datasource.DriverManagerDataSource">
          <beans:property name="driverClassName" value="com.mysql.jdbc.Driver"/>
          <beans:property name="url" value="jdbc:mysql://localhost:3306/dexcenter"/>
          <beans:property name="username" value="root"/>
          <beans:property name="password" value="dexcenter"/>
       <beans:bean id="BCrypt" class=""/>
          <password-encoder ref="BCrypt"/>
          <jdbc-user-service data-source-ref="dataSource"/>
       <beans:bean id="tokenRepository" class="">
          <beans:property name="createTableOnStartup" value="false" />
          <beans:property name="dataSource" ref="dataSource"/>
    Anybody know what I'm missing?
    It works otherwise (no redirection), and when the user is logged in already, going directly to the custom URL works fine too.