1 Reply Latest reply on Oct 7, 2011 10:31 AM by Jérémy Bogatirsky

    Login redirection transforms '&' to '?' in query parameters

    Jérémy Bogatirsky Newbie

      Hi all,


      I'm facing a redirection problem after login in my Seam 3 project using Seam Faces 3.0.2


      When accessing my private page with query parameters '/private/vertical?param1=value1&param2=value2', the successfull login redirection redirects me to '/private/vertical?param1=value1?param2=value2'



      The '&' has been transformed to a '?'


      My Faces configuration to protect private pages :


      import org.jboss.seam.faces.rewrite.FacesRedirect;
      import org.jboss.seam.faces.security.LoginView;
      import org.jboss.seam.faces.view.config.ViewConfig;
      import org.jboss.seam.faces.view.config.ViewPattern;
      
      @ViewConfig
      public interface ViewConfiguration {
          static enum MyPages {
              @FacesRedirect
              @ViewPattern("/private/*")
              @Private
              @LoginView("/login.xhtml")
              PRIVATE,
      
              @ViewPattern("/login.xhtml")
              LOGIN;
          }
      }
      



      And my @Private :



      import org.jboss.seam.security.annotations.SecurityBindingType;
      
      @SecurityBindingType
      @Retention(RetentionPolicy.RUNTIME)
      @Target({ElementType.TYPE, ElementType.FIELD, ElementType.METHOD})
      public @interface Private { }



      I didn't see any issue on the JIRA talking about such a problem.
      Am I missing something ?


      Thanks in advance.


      Jeremy