Hi On Thu, Jul 14, 2011 at 8:10 PM, Jonathan Gray <[email protected]> wrote: > please excuse me if this is a dupe - i posted to the general apache forum > and then MOVED it to the users forum & i wasn't sure if the post would go to > the mailing list if it was moved rather than originally posted > there...anyway: > > > i have seen this error reported several times and i have seen wicket devs > come back and say that it is fixed. what i see is that all versions of > wicket from 1.4.11 - 1.4.17 have this exact problem. i have a number of > RESTful calls to an app that are rewritten w mod_rewrite. the rewritten > requests are processed by a MultiActionController and which then uses > RequestDispatcher.forward to pass the request on to my custom > WebRequestCycle. Anything that is rewritten by mod_rewrite in 1.4.11 or > greater throws the StringIndexOutOfBounds exception in the * > getRelativePathPrefixToWicketHandler* method when it tries to do this: > > > relativeUrl = filterPath == null ? relativeUrl : > relativeUrl.substring(filterPath.length()); > > > because the forwardUrl = '/rw' and the relativeUrl = What is 'forwardUrl' ? > 'account/updates/14883'. can someone please offer a workaround for this? > let me know if you need more information. upgrading to 1.5 is fine and > all, but i would like to get this working in 1.4, too. This specific logic has been removed in Wicket 1.5 so the chance your app to work is much bigger. If it is broken then please create a tutorial how to setup Apache HTTPD and the Wicket application so we can debug it and fix it.
There is similar issue https://issues.apache.org/jira/browse/WICKET-2836 - but it as I said this is improved in 1.5. i have seen several > threads on this problem but nothing that definitively tells me what the > solution is. > > thanks. > -- Martin Grigorov jWeekend Training, Consulting, Development http://jWeekend.com --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
