[Koha-bugs] [Bug 16622] some tests triggered by prove t fail for unset KOHA_CONF

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Mon Jul 11 19:56:06 CEST 2016


https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=16622

--- Comment #7 from M. Tompsett <mtompset at hotmail.com> ---
(In reply to Jacek Ablewicz from comment #4)
> (In reply to M. Tompsett from comment #1)
> > This line in C4/Auth_with_cas.pm is the culprit of all those warns:
> > my $context = C4::Context->new() or die 'C4::Context->new failed';
> > ... Sadly, I believe it is necessary, even though $context is not used.
> 
> Hm, why do you think this call is necessary in C4/Auth_with_cas.pm?

I've re-evaluated whether it is necessary. I think the point of the line was to
prevent further cascading errors.

Auth_with_cas uses:
intranetdir from the KOHA_CONF
casServerUrl from the system preferences table
OPACBaseURL from the system preferences table
staffClientBaseURL from the system preferences table

A simple use (as triggered by 00-load.t) should be fine with the line removed.
A more complex use should bomb, so the problems can get fixed. :) Sorry for the
worry about dragons, Jacek Ablewicz.

-- 
You are receiving this mail because:
You are watching all bug changes.


More information about the Koha-bugs mailing list