Odd number of page parameters - why IllegalStateException ?
Hi all, I would like to ask, why the default URL strategy throws IllegalStateException, when there is odd number of parameters ? We have a problem with this way handling, because our users rewrite URLs manually (we cannot prevent users from doing this). Our pages are stateless and they don't use any parameters - BUT there are throwing exceptions and showing InternalErrorPage-s. It is presented like a serious problem like DB, or like service failed but there is no problem actually - only parameters, that are not used. I think, that page parameters should not result in INTERNAL ERROR, because there are many cases, where this is not relevant. There should be an alternative way - some custom handling or ignoring parameters in such a situation. What do you think about this problem ? Thanks -- View this message in context: http://www.nabble.com/Odd-number-of-page-parameters---why-IllegalStateException---tp20671254p20671254.html Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Odd number of page parameters - why IllegalStateException ?
we can return a 404 instead i suppose. create a jira issue. -igor On Mon, Nov 24, 2008 at 2:25 PM, Stefan Simik [EMAIL PROTECTED] wrote: Hi all, I would like to ask, why the default URL strategy throws IllegalStateException, when there is odd number of parameters ? We have a problem with this way handling, because our users rewrite URLs manually (we cannot prevent users from doing this). Our pages are stateless and they don't use any parameters - BUT there are throwing exceptions and showing InternalErrorPage-s. It is presented like a serious problem like DB, or like service failed but there is no problem actually - only parameters, that are not used. I think, that page parameters should not result in INTERNAL ERROR, because there are many cases, where this is not relevant. There should be an alternative way - some custom handling or ignoring parameters in such a situation. What do you think about this problem ? Thanks -- View this message in context: http://www.nabble.com/Odd-number-of-page-parameters---why-IllegalStateException---tp20671254p20671254.html Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Odd number of page parameters - why IllegalStateException ?
oki, thx https://issues.apache.org/jira/browse/WICKET-1957 igor.vaynberg wrote: we can return a 404 instead i suppose. create a jira issue. -igor On Mon, Nov 24, 2008 at 2:25 PM, Stefan Simik [EMAIL PROTECTED] wrote: Hi all, I would like to ask, why the default URL strategy throws IllegalStateException, when there is odd number of parameters ? We have a problem with this way handling, because our users rewrite URLs manually (we cannot prevent users from doing this). Our pages are stateless and they don't use any parameters - BUT there are throwing exceptions and showing InternalErrorPage-s. It is presented like a serious problem like DB, or like service failed but there is no problem actually - only parameters, that are not used. I think, that page parameters should not result in INTERNAL ERROR, because there are many cases, where this is not relevant. There should be an alternative way - some custom handling or ignoring parameters in such a situation. What do you think about this problem ? Thanks -- View this message in context: http://www.nabble.com/Odd-number-of-page-parameters---why-IllegalStateException---tp20671254p20671254.html Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- View this message in context: http://www.nabble.com/Odd-number-of-page-parameters---why-IllegalStateException---tp20671254p20674964.html Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]