CryptoMapper and mounted pages.

2013-10-03 Thread Roman Grigoriadi
Hello Wicket users! I am trying to make a CryptoMapper working for a mounted page, in a way, that the URL in browser would be unencrypted, but all the other stuff like ListenerInterface links urls will be encrypted. I am using a wicket 1.5.10, but I tried to reproduce it on a quickstart project

Re: CryptoMapper and mounted pages.

2013-10-04 Thread Roman Grigoriadi
Hi Martin, thanks for suggestion, but it appears to me, that the problem actually is that the CryptoMapper is not set as root if you call any of mountPage(..), after setting CryptoMapper as root mapper. I suppose your suggestion would work if MountedMappers will be added in a SystemMapper

Re: CryptoMapper and mounted pages.

2013-10-07 Thread Roman Grigoriadi
Hi Dmitry! Thank you for your suggestion, but I can't see how bundled BookmarkableCryptoMapper could help in my case. In my quickstart on 6.10.0 CryptoMapper is never given a word, so it will never join the mapper chain, during mapHandler(..) in case of bookmarkable page, disregarding its

org.apache.wicket.util.upload.FileUploadBase#fileSizeMax

2014-10-21 Thread Roman Grigoriadi
Hi Wicket users, I am trying to check size of a single file in a multi file upload POST request. It seems there is a parameter for this in FileUploadBase class called fileSizeMax which is used for checking length of an input stream for a file during parsing request and writing files to disk temp.

Re: org.apache.wicket.util.upload.FileUploadBase#fileSizeMax

2014-10-21 Thread Roman Grigoriadi
I am trying to check size of each of uploaded files, when there is more than one file in one POST request. While there may be other way to do so, it looks like fileSizeMax in FileUploadBase, does just the right thing, aborting processing multipart POST by throwing FileUploadException which

Re: org.apache.wicket.util.upload.FileUploadBase#fileSizeMax

2014-10-22 Thread Roman Grigoriadi
Martin, thank you for your responses, but I don't think you understand what I am asking about. My question was purely about Wicket API, not about how containers implementing receiving request stream. I am not trying to stop container processing input stream. I want to tell user in an ajax

Re: org.apache.wicket.util.upload.FileUploadBase#fileSizeMax

2014-10-22 Thread Roman Grigoriadi
Martin, sorry, but maxSize is not the maxFileSize (which I am asking for). See javadoc comments in FileUploadBase: *maxSize:*/The maximum size permitted for the complete request, as opposed to {@link #fileSizeMax}./ *fileSizeMax:*/The maximum size permitted for a single uploaded file, as opposed

Re: org.apache.wicket.util.upload.FileUploadBase#fileSizeMax

2014-10-22 Thread Roman Grigoriadi
First approach will be configurable per form, while second only per /MultipartServletWebRequestImpl/. For setting fileSizeMax by second approach you will have also to override /org.apache.wicket.protocol.http.servlet.ServletWebRequest#newMultipartWebRequest(...)/. On the other hand, second

Re: org.apache.wicket.util.upload.FileUploadBase#fileSizeMax

2014-10-22 Thread Roman Grigoriadi
I'll try to checkout sources and create a ticket with a patch included. Regards, Roman. Martin Grigorov-4 wrote I was suggesting to do both of them. Please file a ticket in JIRA and I'll implement it. Or attach a patch/send a pull request if you have the time :-) Thanks! -- View this