Skip Menu |

This queue is for tickets about the Mail-GPG CPAN distribution.

Report information
The Basics
Id: 71380
Status: open
Priority: 0/
Queue: Mail-GPG

People
Owner: Nobody in particular
Requestors: dirk.heinrichs [...] altum.de
Cc:
AdminCc:

Bug Information
Severity: Unimportant
Broken in: 1.0.7
Fixed in: (no value)



Subject: Multiple unkown methods
There seem to be multiple calls to unknown methods in Mail::GPG 1.0.7: 1) Can't call method "head" without a package or object reference at /usr/local/share/perl/5.12.4/Mail/GPG.pm line 134. 2) Can't call method "dup" without a package or object reference at /usr/local/share/perl/5.12.4/Mail/GPG.pm line 514. Because of this, the package doesn't work at all, so I've set severity to "Critical". Bye... Dirk
Am Sa 01. Okt 2011, 08:05:06, dirk.heinrichs@altum.de schrieb: Show quoted text
> There seem to be multiple calls to unknown methods in Mail::GPG 1.0.7:
You are misreading the error messages here. The methods are not unknown, but Mail::GPG tries to call methods on undefinied values. This may depend on the data you fed into it, so the package is surely not completely broken (how would "make test" work in that case?) Show quoted text
> 1) Can't call method "head" without a package or object reference at > /usr/local/share/perl/5.12.4/Mail/GPG.pm line 134. > > 2) Can't call method "dup" without a package or object reference at > /usr/local/share/perl/5.12.4/Mail/GPG.pm line 514.
Both calls refer to $entity (an object of MIME::Entity). It looks for me that some higher level methods (called by your code) get an undefined $entity object. Show quoted text
> Because of this, the package doesn't work at all, so I've set severity > to "Critical".
In future be more careful with blaming a module and check your own code first ;) I noted on my todo list that Mail::GPG should check for valid parameters and throw proper error messages. Jörn
Subject: Re: [rt.cpan.org #71380] Multiple unkown methods
Date: Sat, 01 Oct 2011 19:43:54 +0200
To: bug-Mail-GPG [...] rt.cpan.org
From: Dirk Heinrichs <dirk.heinrichs [...] altum.de>
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Am 01.10.2011 15:11, schrieb JRED via RT: Show quoted text
> Am Sa 01. Okt 2011, 08:05:06, dirk.heinrichs@altum.de schrieb: >
>> There seem to be multiple calls to unknown methods in Mail::GPG >> 1.0.7:
> > You are misreading the error messages here. The methods are not > unknown, but Mail::GPG tries to call methods on undefinied values. > This may depend on the data you fed into it, so the package is > surely not completely broken (how would "make test" work in that > case?) >
>> 1) Can't call method "head" without a package or object reference >> at /usr/local/share/perl/5.12.4/Mail/GPG.pm line 134. >> >> 2) Can't call method "dup" without a package or object reference >> at /usr/local/share/perl/5.12.4/Mail/GPG.pm line 514.
> > Both calls refer to $entity (an object of MIME::Entity).
Ah, OK. My fault, overlooked that in the docs. Show quoted text
> It looks for me that some higher level methods (called by your > code) get an undefined $entity object.
Yes, because I didn't build() one *shame*. Show quoted text
>> Because of this, the package doesn't work at all, so I've set >> severity to "Critical".
> > In future be more careful with blaming a module and check your own > code first ;)
Mea culpa :) Show quoted text
> I noted on my todo list that Mail::GPG should check for valid > parameters and throw proper error messages.
OK. Bye... Dirk -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.11 (GNU/Linux) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/ iD8DBQFOh1FV8NVtnsLkZ7sRAu9hAKCiX1wCCXyrrtuDJNtDSU4hVJ5LDgCfSWAB MxxZzBznbpUISrozmOlkVj0= =dULr -----END PGP SIGNATURE-----