To summarize my problem:

Original call: /admin/editquote?id=13
Redirect url after login: /admin/editquote

I did some more debugging and it went down like this:

PageMap:
interceptContinuationURL = cycle.getRequest().getPath();
calls
ServletWebRequest
        public String getPath()
        {
                return 
((WebApplication)Application.get()).getWicketFilter().getRelativePath(
                                httpServletRequest);
        }
Which calls

WicketFilter.getRelativePath(HttpServletRequest request)

is called, which does not include the queryParameters

so perhaps
interceptContinuationURL = cycle.getRequest().getPath(); should be:
interceptContinuationURL = cycle.getRequest().getURL();?

Problem is I can't test it now, making a snapshot build foobart my
login page, on which I just sent another mail.

Wouter

On 5/21/07, Johan Compagner <[EMAIL PROTECTED]> wrote:
> what does the getURL string return of a normal http request?
> thats also without the query string?
>
> What call do we need to have to really have the complete url?
>
> johan
>
>
>
>  On 5/19/07, Wouter de Vaal <[EMAIL PROTECTED]> wrote:
> >
> > Ok sure, but I need some help.
> >
> > Usually the part of the request that is missing is taken from (when
> > not using a framework)
> > javax.servlet.http.HttpServletRequest.getQueryString()
> >
> > But PageMap is depending on org.apache.wicket.Request which seems
> > unaware of http, but it does hold an instance of
> > org.apache.wicket.request.RequestParameters.
> >
> > Now I guess I can do two things, change Request to hold an abstract
> > for of getQueryString and implement it like the getUrl() method in all
> > the implementing classes, or convert the RequestParameter object to a
> > string. In the latter case I hope there is some utility class/method I
> > can use.
> >
> > Can any of you wicket guys please assist me on this?
> >
> > Wouter
> >
> > On 5/18/07, Johan Compagner <[EMAIL PROTECTED]> wrote:
> > > yes please make a case (with a patch is even better :) )
> > >
> > >
> > > On 5/18/07, Wouter de Vaal < [EMAIL PROTECTED]> wrote:
> > > > You are correct about the interpretation of my problem. I've run the
> > > debugger
> > > > and interceptContinuationURL = cycle.getRequest ().getURL(); does not
> > > > store the ?x=y part.
> > > >
> > > > Shall I file a bug report?
> > > >
> > > > Wouter
> > > >
> > > > On 5/18/07, Johan Compagner < [EMAIL PROTECTED] > wrote:
> > > > > ahh but that is an url that doesn't have query args like ?xx=yy
> > > > >
> > > > > you only have a path that should work yes
> > > > >
> > > > > johan
> > > > >
> > > > >
> > > > >
> > > > > On 5/18/07, Thomas R. Corbin < [EMAIL PROTECTED]> wrote:
> > > > > > On Friday 18 May 2007 8:04 am, Johan Compagner escreveu:
> > > > > > > hmm this could be bug i think, we dont support post params at
> all
> > > > > > > but get should be but maybe we store only part of the url (only
> the
> > > > > path)
> > > > > >
> > > > > >         i'm not sure that I quite understand the issue, but if my
> user
> > > > > goes to a url
> > > > > > such as
> > > > > >
> > > > > >
> > > > >
> > >
> http://myserver.com/myapp/app/queryDialog/variation/oru_edv/billGroup/23
> > > > > >
> > > > > >         and they go through my login page, they still end up at
> the
> > > right
> > > > > page with
> > > > > > all the page parameters.
> > > > > >
> > > > > >         Is that what you meant Wouter?
> > > > > >
> > > > > >         In that case, I'm still on the pre-apache-package reorg,
> but
> > > will
> > > > > upgrade
> > > > > > this weekend.
> > > > > >
> > > > > > >
> > > > > > > can you see what this code in PageMap:
> > > > > > >
> > > > > > > interceptContinuationURL = cycle.getRequest().getURL();
> > > > > > >
> > > > > > > does return? is getURL() onl returning the part withoug query
> > > params?
> > > > > > >
> > > > > > > johan
> > > > > > >
> > > > > > > On 5/18/07, Wouter de Vaal < [EMAIL PROTECTED]> wrote:
> > > > > > > > Hi,
> > > > > > > >
> > > > > > > > I'm using the login/authorization strategy taken from the
> wicket
> > > > > > > > examples, which is
> > > > > > > > throw new
> > > RestartResponseAtInterceptPageException(
> > > > > SignIn.class);
> > > > > > > >
> > > > > > > > in the application class and calling
> > > > > > > >
> > > > > > > > continueToOriginalDestination()
> > > > > > > >
> > > > > > > > in the login page.
> > > > > > > >
> > > > > > > > However when I'm using a bookmarkable page with
> PageParameters,
> > > the
> > > > > > > > parameters get lost in the process..
> > > > > > > >
> > > > > > > > Am I missing something, or is this behaviour just not
> supported?
> > > > > > > >
> > > > > > > > Regards,
> > > > > > > > Wouter
> > > > > > > >
> > > > > > > >
> > > > >
> > >
> -------------------------------------------------------------------------
> > > > > > > > This SF.net email is sponsored by DB2 Express
> > > > > > > > Download DB2 Express C - the FREE version of DB2 express and
> take
> > > > > > > > control of your XML. No limits. Just data. Click to get it
> now.
> > > > > > > > http://sourceforge.net/powerbar/db2/
> > > > > > > >
> _______________________________________________
> > > > > > > > Wicket-user mailing list
> > > > > > > > Wicket-user@lists.sourceforge.net
> > > > > > > >
> > > > >
> > >
> https://lists.sourceforge.net/lists/listinfo/wicket-user
> > > > > >
> > > > > >
> > > > >
> > >
> -------------------------------------------------------------------------
> > > > > > This SF.net email is sponsored by DB2 Express
> > > > > > Download DB2 Express C - the FREE version of DB2 express and take
> > > > > > control of your XML. No limits. Just data. Click to get it now.
> > > > > > http://sourceforge.net/powerbar/db2/
> > > > > > _______________________________________________
> > > > > > Wicket-user mailing list
> > > > > > Wicket-user@lists.sourceforge.net
> > > > > >
> > >
> https://lists.sourceforge.net/lists/listinfo/wicket-user
> > > > > >
> > > > >
> > > > >
> > > > >
> > >
> -------------------------------------------------------------------------
> > > > > This SF.net email is sponsored by DB2 Express
> > > > > Download DB2 Express C - the FREE version of DB2 express and take
> > > > > control of your XML. No limits. Just data. Click to get it now.
> > > > > http://sourceforge.net/powerbar/db2/
> > > > > _______________________________________________
> > > > > Wicket-user mailing list
> > > > > Wicket-user@lists.sourceforge.net
> > > > >
> > >
> https://lists.sourceforge.net/lists/listinfo/wicket-user
> > > > >
> > > > >
> > > >
> > > >
> > >
> -------------------------------------------------------------------------
> > > > This SF.net email is sponsored by DB2 Express
> > > > Download DB2 Express C - the FREE version of DB2 express and take
> > > > control of your XML. No limits. Just data. Click to get it now.
> > > > http://sourceforge.net/powerbar/db2/
> > > > _______________________________________________
> > > > Wicket-user mailing list
> > > > Wicket-user@lists.sourceforge.net
> > > >
> https://lists.sourceforge.net/lists/listinfo/wicket-user
> > > >
> > >
> > >
> > >
> -------------------------------------------------------------------------
> > > This SF.net email is sponsored by DB2 Express
> > > Download DB2 Express C - the FREE version of DB2 express and take
> > > control of your XML. No limits. Just data. Click to get it now.
> > > http://sourceforge.net/powerbar/db2/
> > > _______________________________________________
> > > Wicket-user mailing list
> > > Wicket-user@lists.sourceforge.net
> > >
> https://lists.sourceforge.net/lists/listinfo/wicket-user
> > >
> > >
> >
> >
> -------------------------------------------------------------------------
> > This SF.net email is sponsored by DB2 Express
> > Download DB2 Express C - the FREE version of DB2 express and take
> > control of your XML. No limits. Just data. Click to get it now.
> > http://sourceforge.net/powerbar/db2/
> > _______________________________________________
> > Wicket-user mailing list
> > Wicket-user@lists.sourceforge.net
> > https://lists.sourceforge.net/lists/listinfo/wicket-user
> >
>
>
> -------------------------------------------------------------------------
> This SF.net email is sponsored by DB2 Express
> Download DB2 Express C - the FREE version of DB2 express and take
> control of your XML. No limits. Just data. Click to get it now.
> http://sourceforge.net/powerbar/db2/
> _______________________________________________
> Wicket-user mailing list
> Wicket-user@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/wicket-user
>
>

-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user

Reply via email to