Bug#464553: websec: Sends empty diff on unmodified pages

2008-04-10 Thread Kevin Price
Hi, Lucas, Cyril!

I also experienced this behaviour after I installed websec_1.9.0-1 on
etch. It disappeared the moment I created an empty ~/.websec/ignore.list
. This might also help you. Please let us know if it did and if I can
give you any more help debugging.

I'm sorry I understand no French. Accept-Language: en, de

cheers

Kevin
-- 
http://www.kevin-price.de/



signature.asc
Description: OpenPGP digital signature


Bug#464553: websec: Sends empty diff on unmodified pages

2008-04-10 Thread Cyril Brulebois
On 10/04/2008, Kevin Price wrote:
 Hi, Lucas, Cyril!

o Kevin,

 I also experienced this behaviour after I installed websec_1.9.0-1 on
 etch. It disappeared the moment I created an empty
 ~/.websec/ignore.list . This might also help you. Please let us know
 if it did and if I can give you any more help debugging.
 
 I'm sorry I understand no French. Accept-Language: en, de

kein Problem. Indeed, touching this file made that bug go away, thanks.
I've no time to investigate this problem any further at the moment, tho.

Cheers,

-- 
Cyril Brulebois


pgpxeYf5GJluW.pgp
Description: PGP signature


Bug#464553: websec: Sends empty diff on unmodified pages

2008-04-01 Thread Lucas Nussbaum
tags 464553 + moreinfo unreproducible
thanks

On 13/03/08 at 13:51 +0100, Cyril Brulebois wrote:
 On 13/03/2008, Lucas Nussbaum wrote:
  Actually, I can't reproduce it: The emails I receive contain stuff. By
  empty, do you mean totally empty? Could you copy one of those mails
  (headers included) to this bug log?
 
 Yes. Yes, here it comes.
 
  The MailDocument() function in /usr/bin/websec sends the mail. If the
  other headers in the mail are correct, could you modify it so that you
  display the value of $content?
 
 Yes. Using the following:
 600 $req-content($content);
 601 
 602 print \$content: [, $content, ]\n;
 603 
 604 $ua = new LWP::UserAgent;
 
 Output:
 | Sending highlighted page to [EMAIL PROTECTED] ...
 | $content: []
 
 Checking for $content not being empty might do, before:
 590 foreach $email (@recipients) {
 
 Cheers,

From our IRC debugging session, we found out that tempfile() didn't
create the temporary file.

End of our IRC log:
03/13/08 14:08:46 lucas tu peux rajouter des print autour de la ligne 87 ?
03/13/08 14:17:37 lucas KiBi: ^
03/13/08 14:23:27 KiBi wiwi, pardon de taffer.
03/13/08 14:24:42 KiBi lucas: base: /home/kibi/.websec
03/13/08 14:24:42 KiBi archive: /home/kibi/.websec/archive
03/13/08 14:24:42 KiBi page_current: /home/kibi/.websec/N8HBYjNDrB.html
03/13/08 14:27:46 lucas et après l'appel à tempfile(), le fichier n'existe 
pas?
03/13/08 14:28:55 KiBi lucas: En effet, non.
03/13/08 14:36:02 lucas le fichier temporaire est supposé etre viré 
automatiquement à la fin de l'exec. je changerais bien UNLINK=1 par UNLINK=0 
pou
r voir
03/13/08 14:36:24 lucas fin bon, ca peut attendre :)

Could you test with UNLINK=0?
-- 
| Lucas Nussbaum
| [EMAIL PROTECTED]   http://www.lucas-nussbaum.net/ |
| jabber: [EMAIL PROTECTED] GPG: 1024D/023B3F4F |


signature.asc
Description: Digital signature


Bug#464553: websec: Sends empty diff on unmodified pages

2008-03-13 Thread Lucas Nussbaum
On 11/03/08 at 23:36 +0100, Lucas Nussbaum wrote:
 On 07/02/08 at 16:59 +0100, Cyril Brulebois wrote:
  Package: websec
  Version: 1.9.0-3
  Severity: normal
  
  Hi,
  
  here's the setup:
  | $ cat .websec/url.list 
  | # Defaults
  | Auth = none
  | #Diff = webdiff
  | Diff = none
  | Hicolor = blue
  | Ignore = General,Date_Time
  | IgnoreURL = Adverts
  | Tmin = 1
  | Tmax = 10
  | Email = [EMAIL PROTECTED]
  | 
  | URL = https://nm.debian.org/nmlist.php
  | Name = NM list
  | Prefix = nmlist
  
  Note that I've tried Diff=webdiff, then htmldiff, then none.
  
  Here is the problem:
  | [EMAIL PROTECTED]:~$ ls -l .websec/archive/*
  | -rw--- 1 kibi kibi 73784 2008-02-07 16:55 .websec/archive/nmlist.html
  | -rw--- 1 kibi kibi 73784 2008-02-07 16:16 
  .websec/archive/nmlist.old.html
  | [EMAIL PROTECTED]:~$ websec
  | Web Secretary Ver 1.9.1
  | By Chew Wei Yih Copyleft (c) 1998
  | 
  | Processing = https://nm.debian.org/nmlist.php (NM list) ...
  | [EMAIL PROTECTED]:~$ ls -l .websec/archive/*
  | -rw--- 1 kibi kibi 73784 2008-02-07 16:58 .websec/archive/nmlist.html
  | -rw--- 1 kibi kibi 73784 2008-02-07 16:55 
  .websec/archive/nmlist.old.html
  
  And I'm getting a mail, which is empty is all cases.
  
 I can reproduce the problem with Diff = none. Might be caused by the
 fact that if-modified-since is not used.

Actually, I can't reproduce it: The emails I receive contain stuff. By
empty, do you mean totally empty? Could you copy one of those mails
(headers included) to this bug log?

The MailDocument() function in /usr/bin/websec sends the mail. If the
other headers in the mail are correct, could you modify it so that you
display the value of $content?
-- 
| Lucas Nussbaum
| [EMAIL PROTECTED]   http://www.lucas-nussbaum.net/ |
| jabber: [EMAIL PROTECTED] GPG: 1024D/023B3F4F |



-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]



Bug#464553: websec: Sends empty diff on unmodified pages

2008-03-13 Thread Cyril Brulebois
On 13/03/2008, Lucas Nussbaum wrote:
 Actually, I can't reproduce it: The emails I receive contain stuff. By
 empty, do you mean totally empty? Could you copy one of those mails
 (headers included) to this bug log?

Yes. Yes, here it comes.

 The MailDocument() function in /usr/bin/websec sends the mail. If the
 other headers in the mail are correct, could you modify it so that you
 display the value of $content?

Yes. Using the following:
600 $req-content($content);
601 
602 print \$content: [, $content, ]\n;
603 
604 $ua = new LWP::UserAgent;

Output:
| Sending highlighted page to [EMAIL PROTECTED] ...
| $content: []

Checking for $content not being empty might do, before:
590 foreach $email (@recipients) {

Cheers,

-- 
Cyril Brulebois
From [EMAIL PROTECTED]  Thu Mar 13 13:45:14 2008
Return-Path: [EMAIL PROTECTED]
X-Original-To: [EMAIL PROTECTED]
Delivered-To: [EMAIL PROTECTED]
Received: by duckcorp.org (Postfix, from userid 1000)
id C0CABC875A; Thu, 13 Mar 2008 13:45:13 +0100 (CET)
User-Agent: libwww-perl/5.808
Content-Type: text/html
Content-Transfer-Encoding: 7bit
MIME-Version: 1.0
Subject:  NM list - 13 mars 2008 (jeu) - https://nm.debian.org/nmlist.php
To: [EMAIL PROTECTED]
Message-Id: [EMAIL PROTECTED]
Date: Thu, 13 Mar 2008 13:45:13 +0100 (CET)
From: [EMAIL PROTECTED] (Cyril Brulebois)



pgpfBEgeNjc46.pgp
Description: PGP signature


Bug#464553: websec: Sends empty diff on unmodified pages

2008-03-11 Thread Lucas Nussbaum
On 07/02/08 at 16:59 +0100, Cyril Brulebois wrote:
 Package: websec
 Version: 1.9.0-3
 Severity: normal
 
 Hi,
 
 here's the setup:
 | $ cat .websec/url.list 
 | # Defaults
 | Auth = none
 | #Diff = webdiff
 | Diff = none
 | Hicolor = blue
 | Ignore = General,Date_Time
 | IgnoreURL = Adverts
 | Tmin = 1
 | Tmax = 10
 | Email = [EMAIL PROTECTED]
 | 
 | URL = https://nm.debian.org/nmlist.php
 | Name = NM list
 | Prefix = nmlist
 
 Note that I've tried Diff=webdiff, then htmldiff, then none.
 
 Here is the problem:
 | [EMAIL PROTECTED]:~$ ls -l .websec/archive/*
 | -rw--- 1 kibi kibi 73784 2008-02-07 16:55 .websec/archive/nmlist.html
 | -rw--- 1 kibi kibi 73784 2008-02-07 16:16 
 .websec/archive/nmlist.old.html
 | [EMAIL PROTECTED]:~$ websec
 | Web Secretary Ver 1.9.1
 | By Chew Wei Yih Copyleft (c) 1998
 | 
 | Processing = https://nm.debian.org/nmlist.php (NM list) ...
 | [EMAIL PROTECTED]:~$ ls -l .websec/archive/*
 | -rw--- 1 kibi kibi 73784 2008-02-07 16:58 .websec/archive/nmlist.html
 | -rw--- 1 kibi kibi 73784 2008-02-07 16:55 
 .websec/archive/nmlist.old.html
 
 And I'm getting a mail, which is empty is all cases.
 
I can reproduce the problem with Diff = none. Might be caused by the
fact that if-modified-since is not used.

But with Diff = webdiff, it works fine (no email sent if no changes
detected)

Can you double-check if it works for you with Diff = webdiff?

Thank you,
-- 
| Lucas Nussbaum
| [EMAIL PROTECTED]   http://www.lucas-nussbaum.net/ |
| jabber: [EMAIL PROTECTED] GPG: 1024D/023B3F4F |



-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]



Bug#464553: websec: Sends empty diff on unmodified pages

2008-03-11 Thread Cyril Brulebois
On 11/03/2008, Lucas Nussbaum wrote:
  | #Diff = webdiff
  | Diff = none
  …
  And I'm getting a mail, which is empty is all cases.
  
 But with Diff = webdiff, it works fine (no email sent if no changes
 detected)
 
 Can you double-check if it works for you with Diff = webdiff?

Yes, I can. And yes, empty mails are sent with Diff=webdiff.

-- 
Cyril Brulebois


pgp34Uvbb8HhO.pgp
Description: PGP signature


Bug#464553: websec: Sends empty diff on unmodified pages

2008-02-07 Thread Cyril Brulebois
Package: websec
Version: 1.9.0-3
Severity: normal

Hi,

here's the setup:
| $ cat .websec/url.list 
| # Defaults
| Auth = none
| #Diff = webdiff
| Diff = none
| Hicolor = blue
| Ignore = General,Date_Time
| IgnoreURL = Adverts
| Tmin = 1
| Tmax = 10
| Email = [EMAIL PROTECTED]
| 
| URL = https://nm.debian.org/nmlist.php
| Name = NM list
| Prefix = nmlist

Note that I've tried Diff=webdiff, then htmldiff, then none.

Here is the problem:
| [EMAIL PROTECTED]:~$ ls -l .websec/archive/*
| -rw--- 1 kibi kibi 73784 2008-02-07 16:55 .websec/archive/nmlist.html
| -rw--- 1 kibi kibi 73784 2008-02-07 16:16 .websec/archive/nmlist.old.html
| [EMAIL PROTECTED]:~$ websec
| Web Secretary Ver 1.9.1
| By Chew Wei Yih Copyleft (c) 1998
| 
| Processing = https://nm.debian.org/nmlist.php (NM list) ...
| [EMAIL PROTECTED]:~$ ls -l .websec/archive/*
| -rw--- 1 kibi kibi 73784 2008-02-07 16:58 .websec/archive/nmlist.html
| -rw--- 1 kibi kibi 73784 2008-02-07 16:55 .websec/archive/nmlist.old.html

And I'm getting a mail, which is empty is all cases.

Cheers,

-- 
Cyril Brulebois

-- System Information:
Debian Release: lenny/sid
  APT prefers unstable
  APT policy: (500, 'unstable'), (1, 'experimental')
Architecture: powerpc (ppc)

Kernel: Linux 2.6.24-1-powerpc
Locale: LANG=fr_FR.UTF-8, LC_CTYPE=fr_FR.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/bash

Versions of packages websec depends on:
ii  libcrypt-ssleay-perl  0.55-1 Support for https protocol in LWP
ii  libwww-perl   5.805-1WWW client/server library for Perl
ii  perl  5.8.8-12   Larry Wall's Practical Extraction 

websec recommends no packages.

-- no debconf information



-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]