Author: rjollos
Date: Thu Jul 11 23:42:08 2013
New Revision: 1502396

URL: http://svn.apache.org/r1502396
Log:
Attachments could not be added to the global wiki. Refs #387.

Don't redirect requests to `/attachment/wiki` to the default product as this 
causes attachments that are intended for the global wiki to be added to the 
wiki for the default product. Patch by Olemis.

Modified:
    bloodhound/trunk/bloodhound_multiproduct/multiproduct/hooks.py

Modified: bloodhound/trunk/bloodhound_multiproduct/multiproduct/hooks.py
URL: 
http://svn.apache.org/viewvc/bloodhound/trunk/bloodhound_multiproduct/multiproduct/hooks.py?rev=1502396&r1=1502395&r2=1502396&view=diff
==============================================================================
--- bloodhound/trunk/bloodhound_multiproduct/multiproduct/hooks.py (original)
+++ bloodhound/trunk/bloodhound_multiproduct/multiproduct/hooks.py Thu Jul 11 
23:42:08 2013
@@ -33,7 +33,7 @@ PRODUCT_RE = re.compile(r'^/products(?:/
 REDIRECT_DEFAULT_RE = \
     re.compile(r'^/(?P<section>milestone|roadmap|query|report|newticket|'
                r'ticket|qct|timeline|diff|batchmodify|search|'
-               r'(raw-|zip-)?attachment)(?P<pathinfo>.*)')
+               r'(raw-|zip-)?attachment/(ticket|milestone))(?P<pathinfo>.*)')
 
 
 class MultiProductEnvironmentFactory(EnvironmentFactoryBase):


Reply via email to