1 Reply Latest reply on Oct 22, 2012 4:09 AM by Martin Kouba

    URL problem

    petitefl3ur Newbie

      Hi,

       

      Some people copy url from my web site with the cid and nested parameters.

       

      The url looks like this : http:/........?n=76&cid=2986&conversationPropagation=nest

       

      The problem is that this url cause problems when you arrive on my site without active session. The exception is like :  java.lang.IllegalStateException: No active conversation context


      And the page works great without these 2 parameters : cid=2986&conversationPropagation=nest

       

       

      Is there a way to sanitize url when there is no active scope ?

       

      Thx!

      Raphaël

        • 1. Re: URL problem
          Martin Kouba Master

          Hi,

           

          I'm not sure it's a neat solution but... either create your own Seam filter component (see for instance org.jboss.seam.web.RewriteFilter to be inspired) or create regular Servlet filter to do the same business. org.jboss.seam.contexts.Contexts.isConversationContextActive() should work to check wthether the scope is active...