Re: svn commit: r708902 - /httpd/httpd/trunk/modules/metadata/mod_expires.c

2008-11-01 Thread Ruediger Pluem


On 10/29/2008 02:32 PM, [EMAIL PROTECTED] wrote:
 Author: jim
 Date: Wed Oct 29 06:32:58 2008
 New Revision: 708902
 
 URL: http://svn.apache.org/viewvc?rev=708902view=rev
 Log:
 Avoid time traveling :)
 
 Modified:
 httpd/httpd/trunk/modules/metadata/mod_expires.c
 
 Modified: httpd/httpd/trunk/modules/metadata/mod_expires.c
 URL: 
 http://svn.apache.org/viewvc/httpd/httpd/trunk/modules/metadata/mod_expires.c?rev=708902r1=708901r2=708902view=diff
 ==
 --- httpd/httpd/trunk/modules/metadata/mod_expires.c (original)
 +++ httpd/httpd/trunk/modules/metadata/mod_expires.c Wed Oct 29 06:32:58 2008
 @@ -430,6 +430,9 @@
  }
  
  expires = base + additional;
 +if (expires  r-request_time) {
 +expires = r-request_time;
 +}
  apr_table_mergen(t, Cache-Control,
   apr_psprintf(r-pool, max-age=% APR_TIME_T_FMT,
apr_time_sec(expires - r-request_time)));
 

This causes failures in the perl framework:

t/modules/expires.t92   15  16.30%  4 10 14 17-18 22 29-30 34-
35 38 42 46 48 50

But IMHO the code is now correct after the patch and the tests are wrong. The 
following
patch makes the tests pass again:

Index: t/modules/expires.t
===
--- t/modules/expires.t (Revision 707830)
+++ t/modules/expires.t (Arbeitskopie)
@@ -231,6 +231,13 @@
 if ($exp_conf =~ /^([A|M])(\d+)$/) {
 $exp_type = $1;
 $expected = $2;
+## With modification date as base expire times can be in the past
+## Correct behaviour for the server in this case is to set expires
+## time equal to access time.
+if (($exp_type eq 'M')
+ ($headers{access}  $headers{modified} + $expected)) {
+$expected = $headers{access} - $headers{modified};
+}
 } else {
 print STDERR \n\ndoom: $exp_conf\n\n;
 return 0;

Comments?

Regards

Rüdiger


Re: svn commit: r709553 - in /httpd/httpd/trunk: CHANGES docs/manual/mod/mod_authn_core.xml modules/aaa/mod_authn_core.c

2008-11-01 Thread Ruediger Pluem


On 10/31/2008 09:26 PM, André Malo wrote:
 * [EMAIL PROTECTED] wrote:
 
 Author: chrisd
 Date: Fri Oct 31 13:18:07 2008
 New Revision: 709553

 URL: http://svn.apache.org/viewvc?rev=709553view=rev
 Log:
 Add AuthType of None to support disabling authentication.
 Prevent crash when provider alias created to provider which is not
 yet registered.
 Migrate remaining functionality of mod_authn_default to mod_authn_core.
 
 While this sounds nice...
 could you please split such changes into atomic commits? One issue - one 
 commit. You also committed docs changes you didn't mention in the log 
 message.
 
 I'm not sure if the crash fix shouldn't go into CHANGES.

Plus it makes it really hard to read the diffs if you mix formating changes
with functional changes. Please separate them.

Regards

Rüdiger


Re: svn commit: r709708 - in /httpd/httpd/trunk: include/ap_mmn.h include/mod_auth.h modules/aaa/mod_authz_owner.c

2008-11-01 Thread Ruediger Pluem


On 11/01/2008 04:01 PM, [EMAIL PROTECTED] wrote:
 Author: chrisd
 Date: Sat Nov  1 08:01:35 2008
 New Revision: 709708
 
 URL: http://svn.apache.org/viewvc?rev=709708view=rev
 Log:
 remove unused AUTHZ_GROUP_NOTE define
 
 Modified:
 httpd/httpd/trunk/include/ap_mmn.h
 httpd/httpd/trunk/include/mod_auth.h
 httpd/httpd/trunk/modules/aaa/mod_authz_owner.c

IMHO this requires a major bump (no problem on trunk) and not only a minor one.

Regards

Rüdiger