Subject: | Bug reportfor package App-Context-0.968 |
Date: | Sun, 24 Nov 2013 20:05:29 +0100 |
To: | bug-App-Context [...] rt.cpan.org |
From: | mt1957 <mt1957 [...] gmail.com> |
Hello Steven,
I am Marcel Timmerman and wanted to try out your modules App.
I've stumbled over a bug when installing the App Class from the
_App-Context-0.968_ package. It failed in the test phase showing;
*t/SharedDatastore.t .. 1/? Undefined subroutine &MIME::Base64::encode
called at lib/App/SharedDatastore.pm line 274.**
*
When looking at the MIME package I've seen that the encode function is
there but is only available when the statement 'use MIME::Base64 ()' is
used. Applying that in your
module SharedDatastore.pm on line 120 in method '_init';
*App->use("MIME::Base64 ()");*
I got another error, namely;
*t/SharedDatastore.t .. 1/? Tried to load class [MIME::Base64 ()] with
illegal characters*
That came from the App.pm module method 'use' where a test is done to
get a class only. While using an eval to get things done it could also
evaluate every possible use
construction, that is with '(' arguments ')'. I've changed that and
after that the test went ok.
The question is, is this nessesary for security? Then it is nessesary to
use the other MIME encoding commands instead.
On the other hand, accepting the possibility to deny a module to polute
someones namespace by adding () to the use would be a nice thing.
Greetings and thanks in advance to shine your light over it,
Marcel
ps
Your module version is 0.968
perl version of mine: This is perl 5, version 16, subversion 3 (v5.16.3)
Os: Linux h03-fedora 3.11.8-200.fc19.x86_64 #1 SMP Wed Nov 13 16:29:59
UTC 2013 x86_64 x86_64 x86_64 GNU/Linux