mchibouni / owasp-esapi-php

Automatically exported from code.google.com/p/owasp-esapi-php
Other
0 stars 0 forks source link

Tries to Create New Log File Even if Logger/LogLevel is set to OFF #33

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Deny write access to logging directory/
2. Set Logger/LogLevel to OFF in ESAPI.xml
3. Call new ESAPI('ESAPI.xml');

What is the expected output? What do you see instead?

Code generates a PHP Notice:

Warning: fopen(ESAPI_logging_file) [function.fopen]: failed to open stream:
Permission denied in
lib/apache-log4php/trunk/src/main/php/appenders/LoggerAppenderFile.php  on
line 67

What version of the product are you using? On what operating system?

Latest version on Ubuntu Apache 2.2

Please provide any additional information below.

reference/DefaultAuditor.php(591): $appenderLogfile->activateOptions();

Original issue reported on code.google.com by ejsexto...@gmail.com on 12 Apr 2010 at 6:58

GoogleCodeExporter commented 9 years ago
Probably not the best solution, but it seems to work.

Original comment by ejsexto...@gmail.com on 12 Apr 2010 at 7:12

Attachments:

GoogleCodeExporter commented 9 years ago
Seems to work! Thank you!! Please consider joining the project as a contributor.

Best,

Mike

Original comment by mike.bob...@gmail.com on 12 Apr 2010 at 7:19