Bug#493632: apt-listbugs: invalid date error on texlive-latex-base

2009-05-19 Thread Francesco Poli
retitle 493632 apt-listbugs: should try and be more informative on invalid 
date SOAP parsing error
thanks

On Sun, 5 Oct 2008 11:38:28 +0200 Francesco Poli wrote:

[...]
 Whether this is the case or not, please help debbugs maintainers in
 pinpointing the bug (and reassigning #484789, if appropriate).

Update and summary for this bug.

The related bug #484789 is fixed for the BTS (even though Debbugs
developers seem to never upload new versions to the Debian
official archive: last upload was performed in 2003 !).

The only issue left to fix is within apt-listbugs proper.

As noted by Justin B Rye in http://bugs.debian.org/493632#15
apt-listbugs should be more informative when spitting out
its error message about this situation.
However, detecting the origin of the problem when the SOAP
XML stream is wrongly formed could be difficult to do,
as noted by Junichi in http://bugs.debian.org/493632#20.


-- 
 New location for my website! Update your bookmarks!
 http://www.inventati.org/frx
. Francesco Poli .
 GnuPG key fpr == C979 F34B 27CE 5CD8 DC12  31B5 78F4 279B DD6D FCF4


pgpORXtj0CFYv.pgp
Description: PGP signature


Bug#493632: apt-listbugs: invalid date error on texlive-latex-base

2008-10-04 Thread Francesco Poli
On Wed, 1 Oct 2008 23:11:24 +0100 Justin B Rye wrote:

 Francesco Poli wrote:
  On Tue, 05 Aug 2008 11:35:52 +0900 Junichi Uekawa wrote:
  Already-reported against debbugs.
  
  Could you please tell me which is the number for this debbugs bug?
 
 I'm assuming 484789, which has claimed to be pending since early
 August; debbugs has been at 2.4.1 since before Sarge went Stable.

Thank you very much!

-- 
 http://frx.netsons.org/doc/index.html#nanodocs
 The nano-document series is here!
. Francesco Poli .
 GnuPG key fpr == C979 F34B 27CE 5CD8 DC12  31B5 78F4 279B DD6D FCF4


pgpjdvkFGGVoA.pgp
Description: PGP signature


Bug#493632: apt-listbugs: invalid date error on texlive-latex-base

2008-10-04 Thread Junichi Uekawa
At Wed, 1 Oct 2008 23:11:24 +0100,
Justin B Rye wrote:
 
 Francesco Poli wrote:
  On Tue, 05 Aug 2008 11:35:52 +0900 Junichi Uekawa wrote:
  Already-reported against debbugs.
  
  Could you please tell me which is the number for this debbugs bug?
 
 I'm assuming 484789, which has claimed to be pending since early
 August; debbugs has been at 2.4.1 since before Sarge went Stable.

Well, debbugs as package might be not that well maintained, but
bugs.debian.org is maintained, and usually bugs are fixed quickly,
when they are fixable.

I think there is a bug in perl soap generator.


regards,
junichi
-- 
[EMAIL PROTECTED],debian.org}



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



Bug#493632: apt-listbugs: invalid date error on texlive-latex-base

2008-10-01 Thread Francesco Poli
On Tue, 05 Aug 2008 11:35:52 +0900 Junichi Uekawa wrote:

 
 Already-reported against debbugs.

Could you please tell me which is the number for this debbugs bug?

This bug is really annoying: I always have to upgrade
texlive-latex-base on a separate aptitude run (with aptitude install
texlive-latex-base) and manually check the BTS to see if any new RC
bug affects the new version...   :-(

Also, I really wonder why the problematic bug #356853 seems to never
get archived...  :-?

 
 At Sun, 3 Aug 2008 19:05:52 +0100,
 Justin B Rye wrote:
  
  Package: apt-listbugs
  Version: 0.0.89
  Severity: normal
  
  It chokes on texlive-latex-base, apparently due to bug 356853.
  Is it taking the fixed-version 2007-14 as a year+month value?
[...]

-- 
 http://frx.netsons.org/doc/index.html#nanodocs
 The nano-document series is here!
. Francesco Poli .
 GnuPG key fpr == C979 F34B 27CE 5CD8 DC12  31B5 78F4 279B DD6D FCF4



pgpYQ01RQs8Pw.pgp
Description: PGP signature


Bug#493632: apt-listbugs: invalid date error on texlive-latex-base

2008-10-01 Thread Justin B Rye
Francesco Poli wrote:
 On Tue, 05 Aug 2008 11:35:52 +0900 Junichi Uekawa wrote:
 Already-reported against debbugs.
 
 Could you please tell me which is the number for this debbugs bug?

I'm assuming 484789, which has claimed to be pending since early
August; debbugs has been at 2.4.1 since before Sarge went Stable.
-- 
JBR (submitter of 493632)



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



Bug#493632: apt-listbugs: invalid date error on texlive-latex-base

2008-08-11 Thread Junichi Uekawa
Hi,



  Justin B Rye wrote:
  It chokes on texlive-latex-base, apparently due to bug 356853.
  Is it taking the fixed-version 2007-14 as a year+month value?
 
  Already-reported against debbugs.
 
 The way apt-listbugs handles the situation is at least a minor bug.
 
 When an upgrade for dozens or hundreds of packages aborts with
 
   W: invalid date
 
 the natural response is
 
   Retry downloading bug information?[Y/n]?N
 
 Notice that the error doesn't mention texlive-latex-base (or
 apt-listbugs!) - it only tells me, uselessly, that an invalid date
 is involved.  If it returned something like
 
   Format error in texlive-latex-base bug 356853
 
 the natural response would be to put that one package on hold and
 deal with all the others first.

The SOAP XML parser barfs out parsing the whole XML stream because it
is fed invalid data. Parsing the broken datastream to find what part
really broke it is not a simple task; I will review a patch, but I
expect it would be ugly.

regards,
junichi
-- 
[EMAIL PROTECTED],debian.org}



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



Bug#493632: apt-listbugs: invalid date error on texlive-latex-base

2008-08-05 Thread Junichi Uekawa

Already-reported against debbugs.

At Sun, 3 Aug 2008 19:05:52 +0100,
Justin B Rye wrote:
 
 Package: apt-listbugs
 Version: 0.0.89
 Severity: normal
 
 It chokes on texlive-latex-base, apparently due to bug 356853.
 Is it taking the fixed-version 2007-14 as a year+month value?
 Debug run as follows:
 
 Exception `NoMethodError' at /usr/lib/ruby/1.8/rational.rb:78 - undefined 
 method `gcd' for Rational(1, 2):Rational
 Set XSD::XMLParser::XMLParser as XML processor.
 Wire dump:
 
 = Request
 
 ! CONNECT TO bugs.debian.org:80
 ! CONNECTION ESTABLISHED
 POST /cgi-bin/soap.cgi HTTP/1.1
 SOAPAction: 
 Content-Type: text/xml; charset=utf-8
 User-Agent: SOAP4R/1.5.5 (/114, ruby 1.8.7 (2008-06-20) [i486-linux])
 Date: Sun Aug 03 18:05:10 +0100 2008
 Content-Length: 1059
 Host: bugs.debian.org
 
 ?xml version=1.0 encoding=utf-8 ?
 env:Envelope xmlns:xsd=http://www.w3.org/2001/XMLSchema;
 xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance;
 xmlns:env=http://schemas.xmlsoap.org/soap/envelope/;
   env:Body
 n1:get_bugs xmlns:n1=Debbugs/SOAP/
 env:encodingStyle=http://schemas.xmlsoap.org/soap/encoding/;
   keyvalue n2:arrayType=xsd:anyType[4]
   xmlns:n2=http://schemas.xmlsoap.org/soap/encoding/;
   xsi:type=n2:Array
 item xsi:type=xsd:stringseverity/item
 item n2:arrayType=xsd:anyType[3]
 xsi:type=n2:Array
   item xsi:type=xsd:stringcritical/item
   item xsi:type=xsd:stringgrave/item
   item xsi:type=xsd:stringserious/item
 /item
 item xsi:type=xsd:stringpackage/item
 item n2:arrayType=xsd:anyType[1]
 xsi:type=n2:Array
   item xsi:type=xsd:stringtexlive-latex-base/item
 /item
   /keyvalue
 /n1:get_bugs
   /env:Body
 /env:Envelope
 
 = Response
 
 HTTP/1.1 200 OK
 Date: Sun, 03 Aug 2008 17:05:10 GMT
 Server: Apache/2.2.3 (Debian) mod_python/3.2.10 Python/2.4.4
 SOAPServer: SOAP::Lite/Perl/0.69
 Content-Length: 589
 Content-Type: text/xml; charset=utf-8
 
 ?xml version=1.0 encoding=UTF-8?soap:Envelope 
 xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance; 
 xmlns:soapenc=http://schemas.xmlsoap.org/soap/encoding/; 
 xmlns:xsd=http://www.w3.org/2001/XMLSchema; 
 soap:encodingStyle=http://schemas.xmlsoap.org/soap/encoding/; 
 xmlns:soap=http://schemas.xmlsoap.org/soap/envelope/;soap:Bodyget_bugsResponse
  xmlns=Debbugs/SOAP/soapenc:Array soapenc:arrayType=xsd:int[2] 
 xsi:type=soapenc:Arrayitem xsi:type=xsd:int483217/itemitem 
 xsi:type=xsd:int356853/item/soapenc:Array/get_bugsResponse/soap:Body/soap:Envelope
 
 fetching 483217 356853.. 
 Wire dump:
 
 = Request
 
 POST /cgi-bin/soap.cgi HTTP/1.1
 SOAPAction: 
 Content-Type: text/xml; charset=utf-8
 User-Agent: SOAP4R/1.5.5 (/114, ruby 1.8.7 (2008-06-20) [i486-linux])
 Date: Sun Aug 03 18:05:11 +0100 2008
 Content-Length: 647
 Host: bugs.debian.org
 
 ?xml version=1.0 encoding=utf-8 ?
 env:Envelope xmlns:xsd=http://www.w3.org/2001/XMLSchema;
 xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance;
 xmlns:env=http://schemas.xmlsoap.org/soap/envelope/;
   env:Body
 n1:get_status xmlns:n1=Debbugs/SOAP/
 env:encodingStyle=http://schemas.xmlsoap.org/soap/encoding/;
   bugnumber n2:arrayType=xsd:string[2]
   xmlns:n2=http://schemas.xmlsoap.org/soap/encoding/;
   xsi:type=n2:Array
 item xsi:type=xsd:int483217/item
 item xsi:type=xsd:int356853/item
   /bugnumber
 /n1:get_status
   /env:Body
 /env:Envelope
 
 = Response
 
 HTTP/1.1 200 OK
 Date: Sun, 03 Aug 2008 17:05:11 GMT
 Server: Apache/2.2.3 (Debian) mod_python/3.2.10 Python/2.4.4
 SOAPServer: SOAP::Lite/Perl/0.69
 Content-Length: 3700
 Content-Type: text/xml; charset=utf-8
 
 ?xml version=1.0 encoding=UTF-8?soap:Envelope 
 xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance; 
 xmlns:soapenc=http://schemas.xmlsoap.org/soap/encoding/; 
 xmlns:apachens=http://xml.apache.org/xml-soap; 
 xmlns:xsd=http://www.w3.org/2001/XMLSchema; 
 soap:encodingStyle=http://schemas.xmlsoap.org/soap/encoding/; 
 xmlns:soap=http://schemas.xmlsoap.org/soap/envelope/;soap:Bodyget_statusResponse
  xmlns=Debbugs/SOAP/s-gensym3 xsi:type=apachens:Mapitemkey 
 xsi:type=xsd:int356853/keyvaluesource 
 xsi:type=xsd:stringunknown/sourcedone 
 xsi:type=xsd:base64BinaryRnJhbmsgS8O8c3RlciA8ZnJhbmtAa3Vlc3RlcmVpLmNoPg==/donefound_versions
  soapenc:arrayType=Exception `ArgumentError' at 
 /usr/lib/ruby/1.8/date.rb:1519 - invalid date
 xsd:anyType[0] xsi:type=soapenc:Array /blocks xsi:type=xsd:string 
 /date xsi:type=xsd:int1142344986/datefixed 
 xsi:type=apachens:Mapitemkey 
 xsi:type=xsd:gYearMonth2007-14/keyvalue xsi:nil=true 
 //item/fixedfixed_versions soapenc:arrayType=xsd:gYearMonth[1] 
 xsi:type=soapenc:Arrayitem 
 xsi:type=xsd:gYearMonth2007-14/item/fixed_versionsmergedwith 
 xsi:type=xsd:string /found /unarchived xsi:type=xsd:string 
 /blockedby xsi:type=xsd:string /keywords 
 xsi:type=xsd:stringetch-ignore/keywordsmsgid 
 

Bug#493632: apt-listbugs: invalid date error on texlive-latex-base

2008-08-05 Thread Justin B Rye
Junichi Uekawa wrote:
 Justin B Rye wrote:
 It chokes on texlive-latex-base, apparently due to bug 356853.
 Is it taking the fixed-version 2007-14 as a year+month value?

 Already-reported against debbugs.

The way apt-listbugs handles the situation is at least a minor bug.

When an upgrade for dozens or hundreds of packages aborts with

W: invalid date

the natural response is

Retry downloading bug information?[Y/n]?N

Notice that the error doesn't mention texlive-latex-base (or
apt-listbugs!) - it only tells me, uselessly, that an invalid date
is involved.  If it returned something like

Format error in texlive-latex-base bug 356853

the natural response would be to put that one package on hold and
deal with all the others first.
-- 
JBR
Ankh kak! (Ancient Egyptian blessing)



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



Bug#493632: apt-listbugs: invalid date error on texlive-latex-base

2008-08-03 Thread Justin B Rye
Package: apt-listbugs
Version: 0.0.89
Severity: normal

It chokes on texlive-latex-base, apparently due to bug 356853.
Is it taking the fixed-version 2007-14 as a year+month value?
Debug run as follows:

Exception `NoMethodError' at /usr/lib/ruby/1.8/rational.rb:78 - undefined 
method `gcd' for Rational(1, 2):Rational
Set XSD::XMLParser::XMLParser as XML processor.
Wire dump:

= Request

! CONNECT TO bugs.debian.org:80
! CONNECTION ESTABLISHED
POST /cgi-bin/soap.cgi HTTP/1.1
SOAPAction: 
Content-Type: text/xml; charset=utf-8
User-Agent: SOAP4R/1.5.5 (/114, ruby 1.8.7 (2008-06-20) [i486-linux])
Date: Sun Aug 03 18:05:10 +0100 2008
Content-Length: 1059
Host: bugs.debian.org

?xml version=1.0 encoding=utf-8 ?
env:Envelope xmlns:xsd=http://www.w3.org/2001/XMLSchema;
xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance;
xmlns:env=http://schemas.xmlsoap.org/soap/envelope/;
  env:Body
n1:get_bugs xmlns:n1=Debbugs/SOAP/
env:encodingStyle=http://schemas.xmlsoap.org/soap/encoding/;
  keyvalue n2:arrayType=xsd:anyType[4]
  xmlns:n2=http://schemas.xmlsoap.org/soap/encoding/;
  xsi:type=n2:Array
item xsi:type=xsd:stringseverity/item
item n2:arrayType=xsd:anyType[3]
xsi:type=n2:Array
  item xsi:type=xsd:stringcritical/item
  item xsi:type=xsd:stringgrave/item
  item xsi:type=xsd:stringserious/item
/item
item xsi:type=xsd:stringpackage/item
item n2:arrayType=xsd:anyType[1]
xsi:type=n2:Array
  item xsi:type=xsd:stringtexlive-latex-base/item
/item
  /keyvalue
/n1:get_bugs
  /env:Body
/env:Envelope

= Response

HTTP/1.1 200 OK
Date: Sun, 03 Aug 2008 17:05:10 GMT
Server: Apache/2.2.3 (Debian) mod_python/3.2.10 Python/2.4.4
SOAPServer: SOAP::Lite/Perl/0.69
Content-Length: 589
Content-Type: text/xml; charset=utf-8

?xml version=1.0 encoding=UTF-8?soap:Envelope 
xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance; 
xmlns:soapenc=http://schemas.xmlsoap.org/soap/encoding/; 
xmlns:xsd=http://www.w3.org/2001/XMLSchema; 
soap:encodingStyle=http://schemas.xmlsoap.org/soap/encoding/; 
xmlns:soap=http://schemas.xmlsoap.org/soap/envelope/;soap:Bodyget_bugsResponse
 xmlns=Debbugs/SOAP/soapenc:Array soapenc:arrayType=xsd:int[2] 
xsi:type=soapenc:Arrayitem xsi:type=xsd:int483217/itemitem 
xsi:type=xsd:int356853/item/soapenc:Array/get_bugsResponse/soap:Body/soap:Envelope

fetching 483217 356853.. 
Wire dump:

= Request

POST /cgi-bin/soap.cgi HTTP/1.1
SOAPAction: 
Content-Type: text/xml; charset=utf-8
User-Agent: SOAP4R/1.5.5 (/114, ruby 1.8.7 (2008-06-20) [i486-linux])
Date: Sun Aug 03 18:05:11 +0100 2008
Content-Length: 647
Host: bugs.debian.org

?xml version=1.0 encoding=utf-8 ?
env:Envelope xmlns:xsd=http://www.w3.org/2001/XMLSchema;
xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance;
xmlns:env=http://schemas.xmlsoap.org/soap/envelope/;
  env:Body
n1:get_status xmlns:n1=Debbugs/SOAP/
env:encodingStyle=http://schemas.xmlsoap.org/soap/encoding/;
  bugnumber n2:arrayType=xsd:string[2]
  xmlns:n2=http://schemas.xmlsoap.org/soap/encoding/;
  xsi:type=n2:Array
item xsi:type=xsd:int483217/item
item xsi:type=xsd:int356853/item
  /bugnumber
/n1:get_status
  /env:Body
/env:Envelope

= Response

HTTP/1.1 200 OK
Date: Sun, 03 Aug 2008 17:05:11 GMT
Server: Apache/2.2.3 (Debian) mod_python/3.2.10 Python/2.4.4
SOAPServer: SOAP::Lite/Perl/0.69
Content-Length: 3700
Content-Type: text/xml; charset=utf-8

?xml version=1.0 encoding=UTF-8?soap:Envelope 
xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance; 
xmlns:soapenc=http://schemas.xmlsoap.org/soap/encoding/; 
xmlns:apachens=http://xml.apache.org/xml-soap; 
xmlns:xsd=http://www.w3.org/2001/XMLSchema; 
soap:encodingStyle=http://schemas.xmlsoap.org/soap/encoding/; 
xmlns:soap=http://schemas.xmlsoap.org/soap/envelope/;soap:Bodyget_statusResponse
 xmlns=Debbugs/SOAP/s-gensym3 xsi:type=apachens:Mapitemkey 
xsi:type=xsd:int356853/keyvaluesource 
xsi:type=xsd:stringunknown/sourcedone 
xsi:type=xsd:base64BinaryRnJhbmsgS8O8c3RlciA8ZnJhbmtAa3Vlc3RlcmVpLmNoPg==/donefound_versions
 soapenc:arrayType=Exception `ArgumentError' at /usr/lib/ruby/1.8/date.rb:1519 
- invalid date
xsd:anyType[0] xsi:type=soapenc:Array /blocks xsi:type=xsd:string 
/date xsi:type=xsd:int1142344986/datefixed 
xsi:type=apachens:Mapitemkey 
xsi:type=xsd:gYearMonth2007-14/keyvalue xsi:nil=true 
//item/fixedfixed_versions soapenc:arrayType=xsd:gYearMonth[1] 
xsi:type=soapenc:Arrayitem 
xsi:type=xsd:gYearMonth2007-14/item/fixed_versionsmergedwith 
xsi:type=xsd:string /found /unarchived xsi:type=xsd:string /blockedby 
xsi:type=xsd:string /keywords 
xsi:type=xsd:stringetch-ignore/keywordsmsgid 
xsi:type=xsd:stringlt;[EMAIL PROTECTED]gt;/msgidid 
xsi:type=xsd:int356853/idforwarded xsi:type=xsd:string /severity 
xsi:type=xsd:stringserious/severityowner xsi:type=xsd:string 
/log_modified xsi:type=xsd:int1211963913/log_modifiedlocation