Package: w3c-markup-validator
Version: 0.6.7-2
Severity: normal
Tags: patch

The Apache-configuration supplied by this package is insufficient for
validating pages that require http-authorization.

The "check" script attempts to proxy the auth-request (the browser
pops up a login/password dialogue), but fails (the dialogue keeps
appearing over and over despite correctly entered login/password).

The problem is that the script expects the environment variable
HTTP_AUTHORIZATION to contain the contents of the Authorization-header
(see line 1408 in /usr/lib/cgi-bin/check). It does not by default.

By searching a little I've found an easy way to set this using
mod_rewrite, as shown in this tiny patch:


--- apache.conf.orig    2005-03-09 22:34:20.875157298 +0100
+++ apache.conf 2005-03-09 22:34:47.086559812 +0100
@@ -2,6 +2,10 @@
 ScriptAlias /w3c-markup-validator/checklink /usr/lib/cgi-bin/checklink
 Alias /w3c-markup-validator /usr/share/w3c-markup-validator/html
 
+RewriteEngine On
+RewriteCond %{HTTP:Authorization} ^(.*)$ [NC]
+RewriteRule /.* - [E=HTTP_AUTHORIZATION:%1]
+
 <Location /w3c-markup-validator>
   Options +Includes +MultiViews
   AddHandler server-parsed .html


  Best regards,

     Adam


-- System Information:
Debian Release: 3.1
  APT prefers unstable
  APT policy: (500, 'unstable')
Architecture: i386 (i686)
Kernel: Linux 2.6.11-asjo-p4
Locale: LANG=C, LC_CTYPE=da_DK (charmap=ISO-8859-1)

Versions of packages w3c-markup-validator depends on:
ii  apache [httpd]                1.3.33-4   versatile, high-performance HTTP s
ii  debconf                       1.4.46     Debian configuration management sy
ii  libconfig-general-perl        2.27-1     generic configuration module
ii  libhtml-parser-perl           3.45-1     A collection of modules that parse
ii  libnet-ip-perl                1.20-2     Perl extension for manipulating IP
ii  libset-intspan-perl           1.07-3     Manages sets of integers
ii  libtext-iconv-perl            1.2-3      Convert between character sets in 
ii  liburi-perl                   1.30-1     Manipulates and accesses URI strin
ii  libwww-perl                   5.803-4    WWW client/server library for Perl
ii  opensp                        1.5.1.0-2  OpenJade group's SGML parsing tool
ii  perl                          5.8.4-8    Larry Wall's Practical Extraction 
ii  sgml-data                     2.0.2      common SGML and XML data
ii  w3c-dtd-xhtml                 1.1-5      W3C eXtensible HyperText Markup La
ii  wwwconfig-common              0.0.42     Debian web auto configuration

-- debconf information:
* w3c-markup-validator/webserver: Apache


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to