Your message dated Wed, 07 Apr 2010 09:53:52 +0000
with message-id <e1nzrxi-0003tr...@ries.debian.org>
and subject line Bug#561417: fixed in dglog 1.0-2
has caused the Debian Bug report #561417,
regarding dglog: Denied requests show up as allowed
to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact ow...@bugs.debian.org
immediately.)


-- 
561417: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=561417
Debian Bug Tracking System
Contact ow...@bugs.debian.org with problems
--- Begin Message ---
Subject: dglog: Denied requests show up as allowed
Package: dglog
Version: 1.0-1
Severity: important
Tags: patch

*** Please type your report below this line ***
Looks like Dan's Guardian (dansguardian) has changed the format of the log. The 
narsty Perl regexps in dglog.pl don't work anymore. This shows up as denied 
requests being shown in reports of allowed requests, and denied requests 
reports being empty.

This somewhat dirty patch at least hacks around the problem:

--- a/dglog.pl
+++ b/dglog.pl
@@ -244,16 +244,38 @@ sub checkLine
     return if (!($dgDate ge $sSD && $dgDate le $sED));
   }
 
-  $url =~ /(\w+):\/\/([\w\.-]+)\/?(\S*)/;  
-  $protocol = $1; # HTTP, FTP
-  $baseurl = $2;  # domain part without http:// or ftp://
-  return if ($sURL ne "ALL" && $sURL ne $baseurl);
-  $toeol =~ /(\*.+\*)? ?(.+)? (\w+) (\d+)$/;
-  $action = $1; # *DENIED# or *EXCEPTION* etc., if exists
-  $reason = $2; # Reason for #1 if exists
-  $method = $3; # method (GET POST)
-  $size = $4;   # size
-  if ($sA ne "ALL") { 
+    #bust up the url
+    $url =~ /(\w+):\/\/([\w\.-]+)\/?(\S*)/;  
+    $protocol = $1; # HTTP, FTP
+    $baseurl = $2;  # domain part without http:// or ftp://
+    #for summaries
+    return if ($sURL ne "ALL" && $sURL ne $baseurl);
+
+    # now bust up the end
+    $reason = "";
+    $urlstatus = "";
+    $method = "";
+    $size = "";
+    $toeol =~ /(\*.+\*)?(.*)$/;
+    $action = $1; # *DENIED# or *EXCEPTION* etc., if exists
+    $bigreason = $2; # also ah hack
+    if($action){
+        $reason = $bigreason;
+        $method = ""; #hack
+        $size = 0; #hack
+        #print "this one has error\n";
+    } else {
+        #$toeol =~ /(\w+)\s+(\d+)\s+(\d+)\s+(\d+)\s+(\d+)\s+(\d+)/ ; # too 
complex
+        $toeol =~ /.*?(\w+)\s+(\d+)/;
+        $method = $1;
+        $size = $2;
+        $reason = ""; # there is no reason, it wasn' tdenied!
+        #$result = $5;
+        #$mimetype = $6;
+    }
+
+
+if ($sA ne "ALL") { 
     return if ($sA eq "denAll" &&
       $action ne "*DENIED*");
     return if ($sA eq "excAll" &&


-- System Information:
Debian Release: 5.0.3
  APT prefers stable
  APT policy: (500, 'stable')
Architecture: i386 (i686)

Kernel: Linux 2.6.26-2-686 (SMP w/1 CPU core)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/bash

Versions of packages dglog depends on:
ii  libcompress-zlib-perl    2.012-1         Perl module for creation and manip
ii  perl                     5.10.0-19lenny2 Larry Wall's Practical Extraction
ii  perl-modules             5.10.0-19lenny2 Core Perl modules

dglog recommends no packages.


dglog recommends no packages.

dglog suggests no packages.




--- End Message ---
--- Begin Message ---
Source: dglog
Source-Version: 1.0-2

We believe that the bug you reported is fixed in the latest version of
dglog, which is due to be installed in the Debian FTP archive:

dglog_1.0-2.debian.tar.gz
  to main/d/dglog/dglog_1.0-2.debian.tar.gz
dglog_1.0-2.dsc
  to main/d/dglog/dglog_1.0-2.dsc
dglog_1.0-2_all.deb
  to main/d/dglog/dglog_1.0-2_all.deb



A summary of the changes between this version and the previous one is
attached.

Thank you for reporting the bug, which will now be closed.  If you
have further comments please address them to 561...@bugs.debian.org,
and the maintainer will reopen the bug report if appropriate.

Debian distribution maintenance software
pp.
Dario Minnucci <mid...@debian.org> (supplier of updated dglog package)

(This message was generated automatically at their request; if you
believe that there is a problem with it please contact the archive
administrators by mailing ftpmas...@debian.org)


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256

Format: 1.8
Date: Wed, 07 Apr 2010 09:08:58 +0200
Source: dglog
Binary: dglog
Architecture: source all
Version: 1.0-2
Distribution: unstable
Urgency: low
Maintainer: Debian QA Group <packa...@qa.debian.org>
Changed-By: Dario Minnucci <mid...@debian.org>
Description: 
 dglog      - CGI log analyzer for DansGuardian
Closes: 561417
Changes: 
 dglog (1.0-2) unstable; urgency=low
 .
   * QA upload
   * Switch to dpkg-source 3.0 (quilt) format
   * debian/control:
     + Maintainer set to Debian QA Group
     + Standards-Version updated to 3.8.4
     + Homepage URL updated
     + Updated Build-Depends to debhelper >= 7.0
   * debian/watch: Added
   * debian/rules: Deprecated  dh_clean -k substituted by dh_prep
   * debian/copyright: Rewritten using DEP-5 format
   * debian/patches/001-fix-to-support-new-dansguardian-log.format.diff:
     + Patch added and applied. Thanks to Ken Restivo <k...@restivo.org>
       (Closes: #561417)
Checksums-Sha1: 
 c0de9de14faf2295da6e23ab805efdace902b1c6 1633 dglog_1.0-2.dsc
 075e809e7718ce067e58e749dd1ca40eff3149b3 4291 dglog_1.0-2.debian.tar.gz
 48d93822ab39223ee66cae769933f2fe8a872eb2 12040 dglog_1.0-2_all.deb
Checksums-Sha256: 
 c51f3bbb1ffc115081403f43fbe36c2167a227d0bf01983e2a39cbc32d2a166f 1633 
dglog_1.0-2.dsc
 4613d7c7376d15967df8ea05dd838afdd59cdfcdefa1f29d0b8fc670c5a4b0b0 4291 
dglog_1.0-2.debian.tar.gz
 ae5ec855141dfb11bef075c12ebb2f5e7f5274bf875617e9f04f8e1b02cfd2a2 12040 
dglog_1.0-2_all.deb
Files: 
 6c86ee0ebe692191ceba0302c0cd29f8 1633 web optional dglog_1.0-2.dsc
 fdbac5252a6c2dff8782a31937ec0d1b 4291 web optional dglog_1.0-2.debian.tar.gz
 9dbbcc24b61a6b53eeeb3118a212034a 12040 web optional dglog_1.0-2_all.deb

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.10 (GNU/Linux)

iQIcBAEBCAAGBQJLvDGfAAoJEPyEGy2CyLcRFf0P/1pTMagy4wY9+8z/0F0QRCp/
pD4BlX2l8tYd9LhU3cg2icYOCMXH9nWUTwv+PQFmKRO7ObmLZKKlheZPJAE2XjBG
WScRqFRrGU9xuHlzxRLfVfJUhPIARxE9AdpMXstL6Q0BKq6Jf7UaME3rtS67LGSZ
EOqRe9/e+f4gitvcTvIHBb9E35u4b1kyisT5NVsS8PJhptizuKu43w2Auk6YDDlu
wyG84b5ETbnndsWrqcRlFQ10eisQkpYjz68QUGJZJTExmvbaLve9JeQC3i6+KWEr
n8FuGsDiQ+8FDdyF9L5OCT8ACj6hxBhFvGWpZ5EgYUtTR1U1zcGIuSCDZTPEzkiO
U1Hq91QVgisAiGigCqVogRwEEPSFUbbBxjFPBEp+yswNK1SkWdUgTRQKj5yl1oN2
oi9vqzBg1GcY5H5CNfLwoKZ3MeU3lYgFzbGvBXZkoLYT4vqIaFujdufkrNsVNH3F
KeYakqO+wNIWosMYiNtdiZFwELqVQNnQW7zuO04RuIIDTomF4n/XE8UKYwAhnCxv
bZu5glY/d3n4f4qEt5sl1+/SGK6O9OHdyOJtn8Qm09qJoMTMeZDr0OfzpVE7WMo8
GmL40kw9znaxUKI+fhT3FnGcwPcqTHlYKIsjtUH3zCtbt5XhpI4keHryYe+zv54o
oLOGcGksEKO2DTccXPPI
=XpW/
-----END PGP SIGNATURE-----



--- End Message ---

Reply via email to