[EP-tech] Screen::Logout bug?

Jon Hallett Jon.Hallett at uwe.ac.uk
Wed May 16 09:21:59 BST 2012


I think there is a problem in perl_lib/EPrints/Plugin/Screen/Logout.pm for sites with multiple secure archives. The upshot is that

sub render_action_link
{
        my( $self, %opts ) = @_;

        my $link = $self->SUPER::render_action_link( %opts );
        $link->setAttribute( href => $self->{session}->config( "http_cgiroot" ) . "/logout" );

        return $link;
}

should probably check for the existence of https_cgiroot. We've bodged the code to

sub render_action_link
{
        my( $self, %opts ) = @_;

        my $link = $self->SUPER::render_action_link( %opts );
        $link->setAttribute( href => $self->{session}->config( "https_cgiroot" ) . "/logout" ); # note the https

        return $link;
}

which works for us, but which I suspect isn't the general solution.

The background is that we have two secure instances, http://eprints.uwe.ac.uk and http://researchdata.uwe.ac.uk. Unless the change is made to render_action_link the logout link is researchdata.uwe.ac.uk appears as http://eprints.uwe.ac.uk/cgi/logout, which doesn't work.

Thanks,

Jon Hallett CEng MBCS CITP
Library IT Manager
Library Services
UWE Bristol
Frenchay Campus
Coldharbour Lane
Bristol
BS16 1QY
+44 (0)117 328 1560
jon.hallett at uwe.ac.uk

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mailman.ecs.soton.ac.uk/pipermail/eprints-tech/attachments/20120516/5394ef69/attachment.html 


More information about the Eprints-tech mailing list