Bug#298772: w3c-markup-validator: Supplied Apache-configuration insufficient for, Authorization proxying
tags 298772 -patch thanks mate ! Hi Adam, I just realised that I have not left any note in the Debian BTS about the bug you reported, even though I have mentioned it in the version of the package that got uploaded several months ago. Sorry about that. So, if you have not seen the note, I am reluctant to turn mod_rewrite on by default on a user's installed Apache server. I have added your little snippet of code to the documentation, so that users can make the change manually if needed. This does not really solve the problem, so closing the bug may not be a good idea (except if you want so), neither would tagging it wontfix (I won't use your solution, but the bug may be fixed in another way). I will probably forward it to upstream to see if a complete fix can be found. In the meantime, I'll remove the patch tag, since its content has been integrated in the package's documentation. All the best, Frederic -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]
Bug#298772: w3c-markup-validator: Supplied Apache-configuration insufficient for, Authorization proxying
On Tue, 30 May 2006 14:18:36 +0200, Frederic wrote: I just realised that I have not left any note in the Debian BTS about the bug you reported, even though I have mentioned it in the version of the package that got uploaded several months ago. Sorry about that. No worries, I had forgotten I had submitted the report. So, if you have not seen the note, I am reluctant to turn mod_rewrite on by default on a user's installed Apache server. I have added your little snippet of code to the documentation, so that users can make the change manually if needed. I haven't noticed it, but I agree with your assessment - so from my point of view your solution fixes the bug. Thanks for taking care of it! Best regards, Adam -- Vi är små citroner Adam Sjøgren [EMAIL PROTECTED]
Bug#298772: w3c-markup-validator: Supplied Apache-configuration insufficient for Authorization proxying
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.orig2005-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-perl2.27-1 generic configuration module ii libhtml-parser-perl 3.45-1 A collection of modules that parse ii libnet-ip-perl1.20-2 Perl extension for manipulating IP ii libset-intspan-perl 1.07-3 Manages sets of integers ii libtext-iconv-perl1.2-3 Convert between character sets in ii liburi-perl 1.30-1 Manipulates and accesses URI strin ii libwww-perl 5.803-4WWW client/server library for Perl ii opensp1.5.1.0-2 OpenJade group's SGML parsing tool ii perl 5.8.4-8Larry 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]