https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=27428 --- Comment #50 from David Cook <dcook@prosentient.com.au> --- Comment on attachment 167770 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=167770 Bug 27428: (follow-up) Fix Session Review of attachment 167770: --> (https://bugs.koha-community.org/bugzilla3/page.cgi?id=splinter.html&bug=27428&attachment=167770) ----------------------------------------------------------------- ::: opac/svc/elasticsearch/opac-elasticsearch.pl @@ +10,4 @@
my $browser = Koha::SearchEngine::Elasticsearch::Browse->new( { index => 'biblios' } ); my $cgi = CGI->new; +my $session = CGI::Session->load() or die CGI::Session->errstr();
This isn't how we do this in Koha. This is also why you'd use something like check_api_auth() (not that you should be doing a "svc" script at all), as you'd get a $sessionID that you could then use with C4::Auth::get_session($sessionID). But really this should be a REST API endpoint. -- You are receiving this mail because: You are watching all bug changes.