# HG changeset patch # User Sylvain Thénault # Date 1305555840 -7200 # Node ID dc319ece0bd62f841e712df8133b38981b07d4de # Parent dce4fa28ae491681e4760460b9c7f1d3895ae631 [url rewriting] fix nasty bug in build_rset inner function: the same dictionary is used by all queries, hence triggering potentially important bugs on concurrent requests (this dictionary goes back and forth the repository) diff -r dce4fa28ae49 -r dc319ece0bd6 web/views/urlrewrite.py --- a/web/views/urlrewrite.py Tue May 10 07:57:52 2011 +0200 +++ b/web/views/urlrewrite.py Mon May 16 16:24:00 2011 +0200 @@ -141,7 +141,8 @@ def build_rset(rql, rgxgroups=None, cachekey=None, setuser=False, vid=None, vtitle=None, form={}, **kwargs): - def do_build_rset(inputurl, uri, req, schema): + def do_build_rset(inputurl, uri, req, schema, kwargs=kwargs): + kwargs = kwargs.copy() if rgxgroups: match = inputurl.match(uri) for arg, group in rgxgroups: