EPrints Technical Mailing List Archive
See the EPrints wiki for instructions on how to join this mailing list and related information.
Message: #02713
< Previous (by date) | Next (by date) > | < Previous (in thread) | Next (in thread) > | Messages - Most Recent First | Threads - Most Recent First
[EP-tech] Re: EPrints 3.3.12 Installation (from source)
- To: eprints-tech@ecs.soton.ac.uk
- Subject: [EP-tech] Re: EPrints 3.3.12 Installation (from source)
- From: Gilles Fournié <gilles.fournie@cirad.fr>
- Date: Wed, 05 Mar 2014 15:02:25 +0100
|
Hi, Thanks for your answer, Jan. I did not see anything about cookies. I compared with a test version we were using before (it's a 3.3.11 installed from binaries). Although the naming of the cookie has changed (in 3.3.12, the name contains the hostname), it seems that they are correctly set. I tracked the login process with Data::Dumper and I managed to get the connection working when using the admin account. But I had to modify (very lightly) two files. And as I am very far from being an Eprints expert, I don't like it very much... Here are the diffs (testing for empty strings in addition to the original "defined" test) : > diff --git a/cgi/users/login b/cgi/users/login > diff --git a/perl_lib/EPrints/ScreenProcessor.pm b/perl_lib/EPrints/ScreenProcessor.pmWhat do you think about that ? Did this patch hide a bad config on our server ? Thanks Gilles Le 05/03/2014 13:00, Jan Ploski a
écrit :
I would start troubleshooting this by looking at Firebug's network panel and comparing the exchanged request/response sequences during login to a working configuration, paying particular attention to Host and Set-Cookie / Cookie headers. My guess is that due to some Apache misconfiguration (maybe a mismatch in hostname actually used by Apache and the one EPrints thinks it should use) cookies are not being exchanged correctly, so that you end up in some "half-logged in" state. Other than that, you can insert "use Data::Dumper; print STDERR Carp::longmess(Dumper($variable));" anywhere in the code to output a stack trace and $variable's content to Apache's log, and trace undefined values back to where they should be set. Gilles Fournié wrote: |
- References:
- [EP-tech] EPrints 3.3.12 Installation (from source)
- From: Gilles Fournié <gilles.fournie@cirad.fr>
- [EP-tech] Re: EPrints 3.3.12 Installation (from source)
- From: Jan Ploski <jpl@plosquare.com>
- [EP-tech] EPrints 3.3.12 Installation (from source)
- Prev by Date: [EP-tech] Re: Spam filtering on request emails
- Next by Date: [EP-tech] Re: Spam filtering on request emails
- Previous by thread: [EP-tech] Re: EPrints 3.3.12 Installation (from source)
- Next by thread: [EP-tech] Re: EPrints 3.3.12 Installation (from source)
- Index(es):
