You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@wicket.apache.org by Martin Zardecki <mp...@truecool.com> on 2010/09/05 21:04:40 UTC

mountBookmarkablePage problem?

Hi List I'm not sure if I uncovered a strange problem or something changed in how we configure things and I missed it.

I have an applet that uploads files to a my Wicket application using http, I have an upload handler defined like this:

mountBookmarkablePage("uploadHandler", UploadHandler.class);

And my UploadHandler class extends WebPage and looks like this:

public class UploadHandler extends SecureOneColumnBasePage // extends WebPage {
  public UploadHandler() {

    final HttpServletRequest request = ((WebRequest) RequestCycle.get().getRequest()).getHttpServletRequest();
    final WebResponse response = getWebRequestCycle().getWebResponse();
    UploadUtils.handleUpload(request, response);
  }
}

Everything works great in Wicket 1.4.1.

Then I went to upgrade to Wicket 1.4.10 and the uploading fails in all browsers except Safari running under Mac. My upload handler codes never gets hit or entered under 1.4.10 and nothing in the logs to indicated any problems related to this.

Any clues?

Thanks.

Martin


Re: mountBookmarkablePage problem?

Posted by Martin Zardecki <mp...@truecool.com>.
Figured it out, nothing to do with Wicket (sorry but I was getting
desperate).

If it helps anyone...we had to enable httpOnly on our server and the page in
question was trying to make sure we only uploaded to our current session.

Well turns out that httpOnly causes statefull Java Applets to lose their
way....the solution we employed was to make sure our Applet sent back the
session cookie.

Thanks,

Martin

-- 
View this message in context: http://apache-wicket.1842946.n4.nabble.com/mountBookmarkablePage-problem-tp2527600p2533461.html
Sent from the Wicket - User mailing list archive at Nabble.com.

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


Re: mountBookmarkablePage problem?

Posted by Igor Vaynberg <ig...@gmail.com>.
debug and see what is happening.

-igor

On Sun, Sep 5, 2010 at 12:04 PM, Martin Zardecki <mp...@truecool.com> wrote:
> Hi List I'm not sure if I uncovered a strange problem or something changed in how we configure things and I missed it.
>
> I have an applet that uploads files to a my Wicket application using http, I have an upload handler defined like this:
>
> mountBookmarkablePage("uploadHandler", UploadHandler.class);
>
> And my UploadHandler class extends WebPage and looks like this:
>
> public class UploadHandler extends SecureOneColumnBasePage // extends WebPage {
>  public UploadHandler() {
>
>    final HttpServletRequest request = ((WebRequest) RequestCycle.get().getRequest()).getHttpServletRequest();
>    final WebResponse response = getWebRequestCycle().getWebResponse();
>    UploadUtils.handleUpload(request, response);
>  }
> }
>
> Everything works great in Wicket 1.4.1.
>
> Then I went to upgrade to Wicket 1.4.10 and the uploading fails in all browsers except Safari running under Mac. My upload handler codes never gets hit or entered under 1.4.10 and nothing in the logs to indicated any problems related to this.
>
> Any clues?
>
> Thanks.
>
> Martin
>
>

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