when i do view source in the browser i only see a single html page.
what you are seeing may just be an artifact of having firebug enabled.

-igor

On Mon, May 10, 2010 at 10:01 PM, orange80 <jpsw...@gmail.com> wrote:
>
> Hey guys, I noticed this today when I was working on a project and examining
> responses in Firebug.  It looks like I'm getting the <html> root tag and all
> of its contents twice in the http response after 302 redirects.
>
> I have posted a very simple quickstart that will demonstrate the problem
> consistently.
>
> here is my quickstart:
> http://cosmiao.com/jps/wicket-2x-response-quickstart.zip
>
> All you have to do is this:
> (the behavior is the same with cache disabled or not)
> 1. open Firefox (v3.6.3) and activate the Firebug plugin (latest version
> v1.5.4).  (the status of whether the browser cache is enabled or not does
> not have any impact on the results here.)
>
> 2. enable Firebug and open the Net tab.
>
> 3. go to http://localhost:8080/
>
> 4. click on the link provided by jetty to get to the main page of our
> quickstart.
>
> 4. in the Net tab you should see this:
>        GET myquickstart        302
>        GET myquickstart        302
>        GET hello               200
>
> 5. check the GET hello Response subtab -- notice the html repeated 2 extra
> times.
>
> 6. reload the page from what should be your current url:
> http://localhost:8080/myquickstart/hello
>
> then you will see what we would normally expect--a response consisting of a
> single <html> tag.  notice there are no 302 redirects in the Net tab.
>
> 7. if you go to Link A or Link B, which will entail a single 302 redirect,
> you will see the html response repeated 1 extra time.
>
> Basically the problem is that for each 302 redirect we get an extra repeat
> of all the html in the response.  Interestingly, view source in Firefox will
> display only one root <html> tag, but that might be because the browser only
> reads the first <html>…</html> it gets.  At any rate, since Wicket uses
> session-page-relative Url's, which obviously involve a lot of 302 redirects,
> this is happening all the time.
>
> I thought it might have to do with my Url coding strategy, but changing that
> did not have any effect.  You can check this by checking out the other git
> branch in the folder of my quickstart.
>
> Can anyone, perhaps one of the devs, shed some light on what is going on
> here and whether this is an actual bug, something wrong with Firebug, or
> just me not understanding how something is supposed to work?
>
> Thanks,
> Jamie
>
> --
> View this message in context: 
> http://apache-wicket.1842946.n4.nabble.com/Html-root-tag-and-contents-repeating-in-response-after-302-redirect-tp2173315p2173315.html
> Sent from the Wicket - User mailing list archive at Nabble.com.
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
> For additional commands, e-mail: users-h...@wicket.apache.org
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org

Reply via email to