OK. possibly fixed. Uploading to trunk. Give it a try in a couple of
minutes.

On Jul 9, 3:24 am, SergeyPo <ser...@zarealye.com> wrote:
> If I put old (v 1.75) regex there (line 75), version 1.65.1 stops
> working - says invalid on any request like 127.0.0.1:8000 , admin/
> default/index etc:
>
> OLD REGEX:
> regex_url = \
>     re.compile('(?:^$)|(?:^\w+/?$)|(?:^\w+/[\w\-]+/?$)|(?:^\w+/[\w\-]+/
> \w+/?$)|(?:^\w+/[\w\-]+/\w+(/[\w\-]+(\.[\w\-\=]+)*)+/?$)|(?:^(\w+)/
> static(/[\w\-\=]+(\.[\w\-]+)*)+$)'
>                )
>
> NEW REGEX:
> regex_url = \
>     re.compile('(^/(?P<b>\w+)/static/(?P<x>(\w[\-\=\./]?)*)$)|(^(/(?
> P<a>\w+)(/(?P<c>\w+)(/(?P<f>\w+)(\.(?P<e>\w+))?(/(?P<s>(\w[\-\=\./]?)
> +))?)?)?)?/?$)')
>
> They are so different that it would take me ages to understand...
> Don't have time right now to find in versions when it changed but if
> anybody has idea please help. Test case:
>
> http://127.0.0.1:8000/welcome/default/index/1
> works (1 is unused param just for testing)
>
> http://127.0.0.1:8000/welcome/default/index/-1
> gives INVALID REQUEST error.
>
> Thank  you!
>
> On Jul 9, 11:01 am, Yarko Tymciurak <yark...@gmail.com> wrote:
>
> > you can browse through all the changes in main.py near line 75 from 
> > here:http://bazaar.launchpad.net/~mdipierro/web2py/devel/changes?filter_fi...
>
> > On Thu, Jul 9, 2009 at 1:58 AM, Yarko Tymciurak <yark...@gmail.com> wrote:
> > > I suspect this is regex_url (gluon/main.py about line 75).
>
> > > You can search thru all the version changes in launchpad - it might be 
> > > this
> > > change (or maybe an eralier one):
>
> > >http://bazaar.launchpad.net/~mdipierro/web2py/devel/revision/917#gluo...<http://bazaar.launchpad.net/%7Emdipierro/web2py/devel/revision/917#gl...>
>
> > > On Thu, Jul 9, 2009 at 1:40 AM, SergeyPo <ser...@zarealye.com> wrote:
>
> > >> In version 1.57 this worked: 127.0.0.1:8000/appname/controllername/
> > >> function/1/-1/10/-10<http://127.0.0.1:8000/appname/controllername/%0Afunction/1/-1/10/-10>
> > >> (notice negative numbers in arguments)
>
> > >> In version 1.65 this causes 'Invalid Request' error. This makes my app
> > >> incompatible. Please help me where to look to patch.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"web2py Web Framework" group.
To post to this group, send email to web2py@googlegroups.com
To unsubscribe from this group, send email to 
web2py+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/web2py?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to