Re: httpd-test negotiation failures.

2002-02-04 Thread William A. Rowe, Jr.
Yes, just one other (little) thing... the appropriate .conf sections for
the bad resources below would be great!

Thanks!!!  Sorry, I am 'between machines' right now.  I've pruned your comments
below so I can print and study them.  I'm near-certain this is a behavior
change based on the new negotiation directives; but I want to know that they
are close-to-rights.

Bill

- Original Message - 
From: Justin Erenkrantz [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Cc: [EMAIL PROTECTED]
Sent: Sunday, February 03, 2002 11:55 AM
Subject: httpd-test negotiation failures.


 Per your request, here is a -d lwp=2 trace of the negotiation
 tests from httpd-2.0 HEAD.  Enjoy.  =)  Please let me know if
 there's anything else I can do.  -- justin
 
 modules/negotiation.1..98
 GET http://localhost.localdomain:8529/modules/negotiation/en/:
 User-Agent: libwww-perl/5.63
 
 HTTP/1.1 200 OK
 Connection: close
 Date: Sun, 03 Feb 2002 17:52:09 GMT
 Accept-Ranges: bytes
 ETag: 1ed53-e-cc300ec0
 Server: Apache/2.0.32-dev (Unix) mod_ssl/3.0a0 OpenSSL/0.9.6b DAV/2
 Vary: negotiate,accept-language
 Content-Language: de
 Content-Location: index.html.de
 Content-Type: text/html
 Last-Modified: Tue, 31 Jul 2001 21:50:27 GMT
 Client-Date: Sun, 03 Feb 2002 17:52:09 GMT
 Client-Peer: 127.0.0.1:8529
 TCN: choice
 
 #index.html.de
 
 not ok 1

Ok, asked for nothing, got .de - right?  Here comes the what-did-the-conf-say Q?


 # Failed test 1 in modules/negotiation.t at line 58
 GET http://localhost.localdomain:8529/modules/negotiation/en/compressed/:
 User-Agent: libwww-perl/5.63
 
 HTTP/1.1 200 OK
 Connection: close
 Date: Sun, 03 Feb 2002 17:52:09 GMT
 Accept-Ranges: bytes
 ETag: 1ed92-11-cc300ec0
 Server: Apache/2.0.32-dev (Unix) mod_ssl/3.0a0 OpenSSL/0.9.6b DAV/2
 Vary: negotiate,accept-language
 Content-Language: de
 Content-Location: index.html.de
 Content-Type: text/html
 Last-Modified: Tue, 31 Jul 2001 21:50:27 GMT
 Client-Date: Sun, 03 Feb 2002 17:52:09 GMT
 Client-Peer: 127.0.0.1:8529
 TCN: choice
 
 #index.html.de.gz
 
 not ok 2

Ok, not an error, consistent with #1 above, but they got the .gz they wanted.


 # Failed test 2 in modules/negotiation.t at line 62
 GET http://localhost.localdomain:8529/modules/negotiation/en/two/index:
 User-Agent: libwww-perl/5.63
 
 HTTP/1.1 200 OK
 Connection: close
 Date: Sun, 03 Feb 2002 17:52:09 GMT
 Accept-Ranges: bytes
 ETag: 1ef8c-e-cc300ec0;3b00e380
 Server: Apache/2.0.32-dev (Unix) mod_ssl/3.0a0 OpenSSL/0.9.6b DAV/2
 Vary: negotiate,accept-language
 Content-Language: de
 Content-Location: index.de.html
 Content-Type: text/html
 Last-Modified: Tue, 31 Jul 2001 21:50:27 GMT
 Client-Date: Sun, 03 Feb 2002 17:52:09 GMT
 Client-Peer: 127.0.0.1:8529
 TCN: choice
 
 #index.de.html
 
 not ok 3
 # Failed test 3 in modules/negotiation.t at line 66

Need to know the difference between this and #1, if any.



 GET http://localhost.localdomain:8529/modules/negotiation/fr/:
 User-Agent: libwww-perl/5.63
 
 HTTP/1.1 200 OK
 Connection: close
 Date: Sun, 03 Feb 2002 17:52:10 GMT
 Accept-Ranges: bytes
 ETag: 1f0d7-e-cc300ec0
 Server: Apache/2.0.32-dev (Unix) mod_ssl/3.0a0 OpenSSL/0.9.6b DAV/2
 Vary: negotiate,accept-language
 Content-Language: de
 Content-Location: index.html.de
 Content-Type: text/html
 Last-Modified: Tue, 31 Jul 2001 21:50:27 GMT
 Client-Date: Sun, 03 Feb 2002 17:52:10 GMT
 Client-Peer: 127.0.0.1:8529
 TCN: choice
 
 #index.html.de
 
 not ok 24
 # Failed test 24 in modules/negotiation.t at line 58 fail #2

Ok, it's looking pretty obvious, we were hoping for .fr here and didn't get it
by default.  Please send the conf on this #24 and #1, because THOSE are the
dir confs that I'm most interested in.


 GET http://localhost.localdomain:8529/modules/negotiation/fr/compressed/:
 User-Agent: libwww-perl/5.63
 
 HTTP/1.1 200 OK
 Connection: close
 Date: Sun, 03 Feb 2002 17:52:10 GMT
 Accept-Ranges: bytes
 ETag: 1f0eb-11-cc300ec0
 Server: Apache/2.0.32-dev (Unix) mod_ssl/3.0a0 OpenSSL/0.9.6b DAV/2
 Vary: negotiate,accept-language
 Content-Language: de
 Content-Location: index.html.de
 Content-Type: text/html
 Last-Modified: Tue, 31 Jul 2001 21:50:27 GMT
 Client-Date: Sun, 03 Feb 2002 17:52:10 GMT
 Client-Peer: 127.0.0.1:8529
 TCN: choice
 
 #index.html.de.gz
 
 not ok 25
 # Failed test 25 in modules/negotiation.t at line 62 fail #2
 GET http://localhost.localdomain:8529/modules/negotiation/fr/two/index:
 User-Agent: libwww-perl/5.63
 
 HTTP/1.1 200 OK
 Connection: close
 Date: Sun, 03 Feb 2002 17:52:10 GMT
 Accept-Ranges: bytes
 ETag: 1f0f5-e-cc3f5100;3b00e380
 Server: Apache/2.0.32-dev (Unix) mod_ssl/3.0a0 OpenSSL/0.9.6b DAV/2
 Vary: negotiate,accept-language
 Content-Language: de
 Content-Location: index.de.html
 Content-Type: text/html
 Last-Modified: Tue, 31 Jul 2001 21:50:28 GMT
 Client-Date: Sun, 03 Feb 2002 17:52:10 GMT
 Client-Peer: 127.0.0.1:8529
 TCN: choice
 
 #index.de.html
 
 not ok 26
 # Failed test 26 in modules/negotiation.t at line 66 fail #2



 GET 

Re: httpd-test negotiation failures.

2002-02-04 Thread Cliff Woolley
On Mon, 4 Feb 2002, William A. Rowe, Jr. wrote:

 Yes, just one other (little) thing... the appropriate .conf sections for
 the bad resources below would be great!

See below for a some verbose expected-received-description output I just
added.

The conf is this:

##
## mod_negotiation test config
##

IfModule mod_mime.c
AddLanguage en .en
AddLanguage fr .fr
AddLanguage de .de
AddLanguage fu .fu
AddHandler type-map .var
/IfModule

IfModule mod_negotiation.c
IfDefine APACHE1
CacheNegotiatedDocs
/IfDefine

IfDefine APACHE2
CacheNegotiatedDocs On
/IfDefine

Directory
/root/apache/httpd-test-6/perl-framework/t/htdocs/modules/negotiation/en
Options +MultiViews
LanguagePriority en fr de fu
/Directory

Directory
/root/apache/httpd-test-6/perl-framework/t/htdocs/modules/negotiation/de
Options +MultiViews
LanguagePriority de en fr fu
/Directory

Directory
/root/apache/httpd-test-6/perl-framework/t/htdocs/modules/negotiation/fr
Options +MultiViews
LanguagePriority fr en de fu
/Directory

Directory
/root/apache/httpd-test-6/perl-framework/t/htdocs/modules/negotiation/fu
Options +MultiViews
LanguagePriority fu fr en de
/Directory
/IfModule

 I suspect that we are choosing by size rather than language in these cases
 (check the file sizes please.)  I suspect this is a misconfig, and we want
 to explicitly add ForceLanguagePriority for those sections.

[EMAIL 
PROTECTED]:/root/apache/httpd-test/perl-framework/t/htdocs/modules/negotiation#
find . -name *html* -exec ls -al {} \;
-rw-r--r--1 root root   17 Jul 31  2001 ./de/compressed/index.html.de
-rw-r--r--1 root root   17 Jul 31  2001 ./de/compressed/index.html.en
-rw-r--r--1 root root   17 Jul 31  2001 ./de/compressed/index.html.fr
-rw-r--r--1 root root   17 Jul 31  2001 ./de/compressed/index.html.fu
-rw-r--r--1 root root   14 Jul 31  2001 ./de/index.html.de
-rw-r--r--1 root root   14 Jul 31  2001 ./de/index.html.en
-rw-r--r--1 root root   14 Jul 31  2001 ./de/index.html.fr
-rw-r--r--1 root root   14 Jul 31  2001 ./de/index.html.fu
-rw-r--r--1 root root   14 Jul 31  2001 ./de/two/index.de.html
-rw-r--r--1 root root   14 Jul 31  2001 ./de/two/index.en.html
-rw-r--r--1 root root   14 Jul 31  2001 ./de/two/index.fr.html
-rw-r--r--1 root root   14 Jul 31  2001 ./de/two/index.fu.html
-rw-r--r--1 root root   17 Jul 31  2001 ./en/compressed/index.html.de
-rw-r--r--1 root root   17 Jul 31  2001 ./en/compressed/index.html.en
-rw-r--r--1 root root   17 Jul 31  2001 ./en/compressed/index.html.fr
-rw-r--r--1 root root   17 Jul 31  2001 ./en/compressed/index.html.fu
-rw-r--r--1 root root   14 Jul 31  2001 ./en/index.html.de
-rw-r--r--1 root root   14 Jul 31  2001 ./en/index.html.en
-rw-r--r--1 root root   14 Jul 31  2001 ./en/index.html.fr
-rw-r--r--1 root root   14 Jul 31  2001 ./en/index.html.fu
-rw-r--r--1 root root   14 Jul 31  2001 ./en/two/index.de.html
-rw-r--r--1 root root   14 Jul 31  2001 ./en/two/index.en.html
-rw-r--r--1 root root   14 Jul 31  2001 ./en/two/index.fr.html
-rw-r--r--1 root root   14 Jul 31  2001 ./en/two/index.fu.html
-rw-r--r--1 root root   17 Jul 31  2001 ./fr/compressed/index.html.de
-rw-r--r--1 root root   17 Jul 31  2001 ./fr/compressed/index.html.en
-rw-r--r--1 root root   17 Jul 31  2001 ./fr/compressed/index.html.fr
-rw-r--r--1 root root   17 Jul 31  2001 ./fr/compressed/index.html.fu
-rw-r--r--1 root root   14 Jul 31  2001 ./fr/index.html.de
-rw-r--r--1 root root   14 Jul 31  2001 ./fr/index.html.en
-rw-r--r--1 root root   14 Jul 31  2001 ./fr/index.html.fr
-rw-r--r--1 root root   14 Jul 31  2001 ./fr/index.html.fu
-rw-r--r--1 root root   14 Jul 31  2001 ./fr/two/index.de.html
-rw-r--r--1 root root   14 Jul 31  2001 ./fr/two/index.en.html
-rw-r--r--1 root root   14 Jul 31  2001 ./fr/two/index.fr.html
-rw-r--r--1 root root   14 Jul 31  2001 ./fr/two/index.fu.html
-rw-r--r--1 root root   17 Jul 31  2001 ./fu/compressed/index.html.de
-rw-r--r--1 root root   17 Jul 31  2001 ./fu/compressed/index.html.en
-rw-r--r--1 root root   17 Jul 31  2001 ./fu/compressed/index.html.fr
-rw-r--r--1 root root   17 Jul 31  2001 ./fu/compressed/index.html.fu
-rw-r--r--1 root root   14 Jul 31  2001 ./fu/index.html.de
-rw-r--r--1 root root   14 Jul 31  2001 ./fu/index.html.en
-rw-r--r--1 root root   14 Jul 31  2001 ./fu/index.html.fr
-rw-r--r--1 root root   14 Jul 31  2001 ./fu/index.html.fu
-rw-r--r--1 root root   14 Jul 31  2001 ./fu/two/index.de.html
-rw-r--r--1 root root   14 Jul 31  2001 ./fu/two/index.en.html
-rw-r--r--1 root root   14 Jul 31  2001