Your message dated Fri, 3 Jun 2011 18:10:17 +0200 with message-id <20110603161016.GA20898@rivendell.home.ouaza.com> and subject line Re: Bug#628886: PTS: strip whitespace from pre-redirection URLs has caused the Debian Bug report #628886, regarding PTS: strip whitespace from pre-redirection URLs to be marked as done. This means that you claim that the problem has been dealt with. If this is not the case it is now your responsibility to reopen the Bug report if necessary, and/or fix the problem forthwith. (NB: If you are a system administrator and have no idea what this message is talking about, this may indicate a serious mail system misconfiguration somewhere. Please contact owner@bugs.debian.org immediately.) -- 628886: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=628886 Debian Bug Tracking System Contact owner@bugs.debian.org with problems
--- Begin Message ---
- To: bts <submit@bugs.debian.org>
- Subject: PTS: strip whitespace from pre-redirection URLs
- From: Paul Wise <pabs@debian.org>
- Date: Thu, 02 Jun 2011 13:56:25 +0800
- Message-id: <[🔎] 1306994185.8733.4.camel@chianamo>
Package: qa.debian.org Severity: wishlist User: debian-qa@lists.debian.org Usertags: pts Tags: patch Please apply the below patch to the PTS apache configuration to strip whitespace from input URLs before performing the redirects. This is useful when copy and pasting package names and accidentally including extra whitespace. --- a/apache.conf +++ b/apache.conf @@ -15,11 +15,11 @@ RewriteEngine on RewriteRule ^/$ /common/index.html [L,R] RewriteRule ^/favicon\.ico$ http://www.debian.org/favicon.ico [L,R] -RewriteRule ^/lib([^/])([^/]+)$ /lib$1/lib$1$2.html [L,R] -RewriteRule ^/([^/])([^/]+)$ /$1/$1$2.html [L,R] -RewriteCond %{QUERY_STRING} ^src=lib(.)(.+)$ +RewriteRule ^/\s*lib([^/])([^/]+)\s*$ /lib$1/lib$1$2.html [L,R] +RewriteRule ^/\s*([^/])([^/]+)\s*$ /$1/$1$2.html [L,R] +RewriteCond %{QUERY_STRING} ^src=\s*lib(.)(.+)\s*$ RewriteRule ^/common/index.html$ /lib%1/lib%1%2.html? [L,R,NE] -RewriteCond %{QUERY_STRING} ^src=(.)(.+)$ +RewriteCond %{QUERY_STRING} ^src=\s*(.)(.+)\s*$ RewriteRule ^/common/index.html$ /%1/%1%2.html? [L,R,NE] </VirtualHost> -- bye, pabs http://wiki.debian.org/PaulWiseAttachment: signature.asc
Description: This is a digitally signed message part
--- End Message ---
--- Begin Message ---
- To: Paul Wise <pabs@debian.org>, 628886-done@bugs.debian.org
- Subject: Re: Bug#628886: PTS: strip whitespace from pre-redirection URLs
- From: Raphael Hertzog <hertzog@debian.org>
- Date: Fri, 3 Jun 2011 18:10:17 +0200
- Message-id: <20110603161016.GA20898@rivendell.home.ouaza.com>
- In-reply-to: <[🔎] 1307109353.15238.4.camel@chianamo>
- References: <[🔎] 1306994185.8733.4.camel@chianamo> <[🔎] 20110603132826.GE17973@rivendell.home.ouaza.com> <[🔎] 1307109223.15238.2.camel@chianamo> <[🔎] 1307109353.15238.4.camel@chianamo>
On Fri, 03 Jun 2011, Paul Wise wrote: > Bah, had some typos, fixed: Thanks, applied, will be live next time apache is reloaded. That said usually "[^\s]" is written as "\S". I supposed it would work here to but I kept the tested syntax you gave me. Cheers, -- Raphaël Hertzog ◈ Debian Developer Follow my Debian News ▶ http://RaphaelHertzog.com (English) ▶ http://RaphaelHertzog.fr (Français)
--- End Message ---