not sure that it works because rewrite needs to parse the url....anyway I was talking to rewrite that request using the rewrite of your webserver (hoping that you're not running web2py with rocket). If that's not the case, you must look into rewrite's regexes, and take care of it on web2py's updates.
On Wednesday, June 12, 2013 9:46:10 PM UTC+2, mweissen wrote: > > maybe i can use routes.py to change an incoming url like > > http://mydomain/app/contr/anotherfunction*;jsessionid=1.2.3.4.abcd* > ?var1=1&var2=2 > > to > > > http://mydomain/app/contr/anotherfunction*?jsessionid=1.2.3.4.abcd&* > var1=1&var2=2 > > this would solve the problem. > > 2013/6/12 Martin Weissenboeck <[email protected] <javascript:>> > >> did you meen to rewrite the serverlet? not possible, it's a foreign >> service. >> also i cannot change the delimiters. >> >> but i will have look at gluon.rewrite - thank you for this hint. >> but: if i had my "own rewrite", i would have to take care of it on every >> web2py upgrade - is it right? >> >> >> >> 2013/6/12 Niphlod <[email protected] <javascript:>> >> >>> if you rewrite the request in the webserver before passing the request >>> to web2py yes. >>> >>> BTW, that URL seems invalid. I'm not a strong RFC enforcer but AFAIK you >>> can have a ; separator or a & one, not both. >>> details >>> http://www.w3.org/TR/1999/REC-html401-19991224/appendix/notes.html#h-B.2.2and >>> >>> web2py doesn't handle the ; one by default, you should check the regexes >>> in gluon.rewrite. >>> >>> On Wednesday, June 12, 2013 7:17:13 PM UTC+2, mweissen wrote: >>>> >>>> A web2py function calls a java serverlet. >>>> This serverlet calls back my web2py application and uses an url like >>>> http://mydomain/app/contr/**anotherfunction<http://mydomain/app/contr/anotherfunction> >>>> *;jsessionid=1.2.3.4.abcd*?var1=1&var2=2 >>>> >>>> The part "*;jsessionid=1.2.3.4.abcd*" produces an "invalid request". I >>>> cannot change the (foreign) serverlet. Is there any way to ignore the >>>> jsessionid-part? >>>> -- >>>> >>>> Regards Martin >>>> >>> -- >>> >>> --- >>> You received this message because you are subscribed to the Google >>> Groups "web2py-users" group. >>> To unsubscribe from this group and stop receiving emails from it, send >>> an email to [email protected] <javascript:>. >>> For more options, visit https://groups.google.com/groups/opt_out. >>> >>> >>> >> >> >> -- --- You received this message because you are subscribed to the Google Groups "web2py-users" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/groups/opt_out.

