[syslog-ng] [Bug 96] New: pdbtool misleading error message

bugzilla at bugzilla.balabit.com bugzilla at bugzilla.balabit.com
Tue Nov 2 23:51:05 CET 2010


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

           Summary: pdbtool misleading error message
           Product: syslog-ng
           Version: 3.2.x
          Platform: PC
        OS/Version: Linux
            Status: NEW
          Severity: normal
          Priority: unspecified
         Component: syslog-ng
        AssignedTo: bazsi at balabit.hu
        ReportedBy: czanik at balabit.hu
Type of the Report: ---
   Estimated Hours: 0.0


When trying to test a non-existent file with pdbtool it gives misleading error messages and even calls an external application before failing.

czanik at linux-6y8u:~/patterndb> pdbtool test --validate uw-imapd.ceee
uw-imapd.ceee: Unable to detect patterndb version, please write the <patterndb> tag on a single line
warning: failed to load external entity "/usr/share/syslog-ng/xsd/patterndb-0.xsd"
Schemas parser error : Failed to locate the main schema resource at '/usr/share/syslog-ng/xsd/patterndb-0.xsd'.
WXS schema /usr/share/syslog-ng/xsd/patterndb-0.xsd failed to compile
warning: failed to load external entity "uw-imapd.ceee"
uw-imapd.ceee: xmllint returned an error, the executed command was:
xmllint --noout --nonet --schema /usr/share/syslog-ng/xsd/patterndb-0.xsd uw-imapd.ceeeError opening classifier configuration file; filename='uw-imapd.ceee',
error='No such file or directory (2)'

I think, that the proper behavior would be, that pdbtool detect that the file is nonexistent, prints a message about it (without any other misleading messages)
and quits without calling external apps.


-- 
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