[syslog-ng] [Bug 241] New: pdbtool test --validate returns success when matching wrong pattern

bugzilla at bugzilla.balabit.com bugzilla at bugzilla.balabit.com
Tue Jul 23 17:27:24 CEST 2013


https://bugzilla.balabit.com/show_bug.cgi?id=241

           Summary: pdbtool test --validate returns success when matching
                    wrong pattern
           Product: syslog-ng
           Version: 3.4.x
          Platform: PC
        OS/Version: Linux
            Status: NEW
          Severity: normal
          Priority: unspecified
         Component: syslog-ng
        AssignedTo: bazsi at balabit.hu
        ReportedBy: erempel at uvic.ca
Type of the Report: ---
   Estimated Hours: 0.0


pdbtool test --validate pattern.xml  only returns a non-zero exit code if test values don't match.

If there is a catchall pattern in the pattern.xml database file then any test message that does not match the pattern it belongs to, but does match another
pattern will return a zero exit code.
The output still shows the wrong .classifier.rule_id

Testing message program='mailguard' message='2013-07-03T13:13:38-07:00 local at dog.comp.uvic.ca local4.notice mailguard:  Could not open
/var/mimedefang/sophie.pid'
 Wrong match name='.classifier.rule_id', value='UN-eb0cfada-af50-48b0-ac1e-de1ffad8fe6c', expected='b826184c-2990-46d4-a777-f87340f1796a'

but the return code from the pdbtool is still zero.

I would expect any test message that does not match the pattern it belongs to should produce a non-zero return code.


-- 
Configure bugmail: https://bugzilla.balabit.com/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are watching all bug changes.


More information about the syslog-ng mailing list