I found one better solution that solve this bug:

DBI.pm, line 3764
#        if ($self->{DEBUG})
#        {
            if ($_[0])
            {
                $self->{debug_msg}[scalar @{$self->{debug_msg}}] = $_[0];
                $self->debug ();
            }
            else
            {
                my $msg;
                if ($self->{DEBUG_STDERR})
                {
                    foreach $msg (@{$self->{debug_msg}})
                    {
                        print STDERR "OpenCA::DBI->$msg\n";
                    }
                }
                $self->{debug_msg} = ();
            }
#        }

Here initialize the required variable.

Gabor

2013-08-29 10:20 keltezéssel, Szigeti Gábor írta:
Hi all,

I installed the latest (1.5.0) version of openca-base from package and I got the following error message when I try to send certificate request from my browser.

error message in the /opt/openca/var/openca/log/stderr.log:

    OpenCA: General error trapped 700: The compilation of the command
    cmdPkcs10_req failed. Can't use an undefined value as an ARRAY reference
    at /opt/openca/lib/openca/functions/mail-utils.lib line 374.<br>

    Compilation failed in require at /opt/openca/etc/openca/openca_start
    line 66.


I made some debug and one 'debug_msg' part is missing from the req variable.

    'debug_msg' => undef


I back-ported the /opt/openca/lib/openca/perl_modules/perl5/OpenCA/DBI.pm from the 1.3.0 version of openca and it solved the problem.

    [root@fedora-19-devel-x86-64 OpenCA]# ls -al DBI.pm*

    -r--r--r--. 1 root root 120002 Apr 5 2012 DBI.pm

    -r--r--r--. 1 root root 120539 Aug 3 16:56 DBI.pm.orig


Can somebody fix this bug?

Thanks in advance,
Gabor Szigeti

------------------------------------------------------------------------------
Learn the latest--Visual Studio 2012, SharePoint 2013, SQL 2012, more!
Discover the easy way to master current and previous Microsoft technologies
and advance your career. Get an incredible 1,500+ hours of step-by-step
tutorial videos with LearnDevNow. Subscribe today and save!
http://pubads.g.doubleclick.net/gampad/clk?id=58040911&iu=/4140/ostg.clktrk
_______________________________________________
OpenCA-Devel mailing list
OpenCA-Devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/openca-devel

Reply via email to