Hey there,

On 22.11.2010 13:44, "Stähelin, Simon (ID)" wrote:
> I got some further. It seems that (maybe) just the logline is wrong. I
> sent two mail form my account, after the first mail, the log said
> quota=5/500 (why not 1/500). 

We are seeing the exact same problem with 2.0.11RC1, but not with 2.0.10
stable.  I can confirm that it's not JUST the logline. The handling of
the quota being calculated and written back to DB is broken.

I did set my counter limit to 1000 and started mailing ... from the
first mail on for quite a few it constantly logged 5/1000 (0.5%) (which
is already wrong). Then all of a sudden the values jumped like crazy to
270 and then to +800 and then over 1000 -> further emails are blocked.

With 2.0.10 it works just like expected. policyd counts from 1 to 1000
with a dampening through the time that is already passed.



I also found the following entried in the logfile of 2.0.11RC1:

--- policyd.log ---
Use of uninitialized value $currentCounter in subtraction (-) at
cbp/modules/Quotas.pm line 179, <_READ> line 25.
Use of uninitialized value $currentCounter in subtraction (-) at
cbp/modules/Quotas.pm line 179.
Use of uninitialized value $currentCounter in subtraction (-) at
cbp/modules/Quotas.pm line 179.
Use of uninitialized value $currentCounter in subtraction (-) at
cbp/modules/Quotas.pm line 179, <_READ> line 33.
Use of uninitialized value $currentCounter in subtraction (-) at
cbp/modules/Quotas.pm line 179.
Use of uninitialized value $currentCounter in subtraction (-) at
cbp/modules/Quotas.pm line 179, <_READ> line 12170.
Use of uninitialized value $currentCounter in subtraction (-) at
cbp/modules/Quotas.pm line 179, <_READ> line 23154.
Use of uninitialized value $currentCounter in subtraction (-) at
cbp/modules/Quotas.pm line 179, <_READ> line 16998.
Use of uninitialized value $currentCounter in subtraction (-) at
cbp/modules/Quotas.pm line 179, <_READ> line 24152.
Use of uninitialized value $currentCounter in subtraction (-) at
cbp/modules/Quotas.pm line 179, <_READ> line 26804.
Use of uninitialized value $currentCounter in subtraction (-) at
cbp/modules/Quotas.pm line 179, <_READ> line 26804.
Use of uninitialized value $currentCounter in subtraction (-) at
cbp/modules/Quotas.pm line 179, <_READ> line 16998.
Use of uninitialized value $currentCounter in subtraction (-) at
cbp/modules/Quotas.pm line 179, <_READ> line 26761.
Use of uninitialized value $currentCounter in subtraction (-) at
cbp/modules/Quotas.pm line 179, <_READ> line 28051.
Use of uninitialized value $currentCounter in subtraction (-) at
cbp/modules/Quotas.pm line 179, <_READ> line 23747.
Use of uninitialized value $currentCounter in subtraction (-) at
cbp/modules/Quotas.pm line 179, <_READ> line 26761.
--- / policyd.log ---



So I strongly believe there is a bug within the QUOTA module.


Regards,


Christian

_______________________________________________
Users mailing list
[email protected]
http://lists.policyd.org/mailman/listinfo/users

Reply via email to