You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@wicket.apache.org by "Daniel Radünz (JIRA)" <ji...@apache.org> on 2016/12/08 12:21:58 UTC

[jira] [Created] (WICKET-6295) Clicking Link in BrowserInfoPage results in infinite request loop

Daniel Radünz created WICKET-6295:
-------------------------------------

             Summary: Clicking Link in BrowserInfoPage results in infinite request loop
                 Key: WICKET-6295
                 URL: https://issues.apache.org/jira/browse/WICKET-6295
             Project: Wicket
          Issue Type: Bug
          Components: wicket
    Affects Versions: 6.25.0
            Reporter: Daniel Radünz


Clicking on the link in the BrowserInfoPage used to gather extended browser information results in an infinite loop in which the browser is alternating between sending several GET and POST request per second for the BrowserInfoPage.

Based on QuickStart with Wicket 6.25:
{code:Java|title=WicketApplication.java}
...
	@Override
	public void init()
	{
		super.init();
		getRequestCycleSettings().setGatherExtendedBrowserInfo(true);
	}
...
{code}
{code:Java|title=Homapage.java}
public class HomePage extends WebPage {
	private static final long serialVersionUID = 1L;

	public HomePage(final PageParameters parameters) {
		super(parameters);

		// Get ClientInfo for example to conditionally add components
		// further down in the code
		ClientInfo clientInfo = Session.get().getClientInfo();

		// Run code that takes a few seconds, just long enough to allow
		// an impatient user to click the link in the BrowserInfoPage
		try {
			Thread.sleep(3000);
		} catch (InterruptedException e) {
		}

		add(new Label("version", getApplication().getFrameworkSettings().getVersion()));
    }
}
{code}

Wicket 7 does not exhibit this behavior. 



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)