EPrints Technical Mailing List Archive
Message: #06105
< Previous (by date) | Next (by date) > | < Previous (in thread) | Next (in thread) > | Messages - Most Recent First | Threads - Most Recent First
Re: [EP-tech] On login - 302 Moved - The document has moved here
- To: eprints-tech@ecs.soton.ac.uk
- Subject: Re: [EP-tech] On login - 302 Moved - The document has moved here
- From: Rob McMahon <robmcmahoncv@gmail.com>
- Date: Tue, 22 Nov 2016 11:23:47 +0000
Hi Enio
Thank you, thank you. That's done the trick, and I probably wouldn't have found it myself. (And it would still have been broken after a re-install.) I've attached the diff I applied, in case anyone else needs it.On 22 November 2016 at 10:02, Enio Carboni <enio.carboni@gmail.com> wrote:
Hi Rob,
i think the problem is the new version of "perl".
From 5.16+ the utf8::decode($param) return e different value if $param is "undef" so you can try apply a patch https://github.com/eprints/
eprints/commit/ 157db0d27d423d38f9c0fc31ce47e5 19cd861d45 or use:
sed -i -e 's/utf8::decode($value);/if( EPrints::Utils::is_set( $value ) ) {\n\t\tutf8::decode($value);\n\t}/' perl_lib/EPrints/Repository.pm sed -i -e 's/utf8::decode($_) for @result;/for( @result ) {\n\t\tnext if( !EPrints::Utils::is_set( $_ ) );\n\t\tutf8::decode($_);\n\t} /' perl_lib/EPrints/Repository.pm
Enio
Il 21/11/2016 15:43, Rob McMahon ha scritto:
RobCheers,Has anyone got any clues as to what causes this ? Can anyone help me debug this ? I really don't want to start again, and have no confidence that I won't just hit the same error again. I'm tempted to use Gilles' hack.If you press the "back" button you are back to the front screen, and appear to be logged in successfully, although it has an error message saying "The requested screen does not exist, or has a fatal error: ."The apache ssl_access_log saysWhen you try to login as the admin user that I set up during epadmin create, you are taken to a page (cgi/users/login?login_check=I've installled 3.3.10 from source (3.3.10 because I want the new box to look as much like the original as possible before upgrading it). This is on CentOS 7, and I had a few issues with permissions initially, but which I now believe are resolved, mostly by putting the eprints directory in the httpd_sys_content_t context.But I don't see an answer, except to re-install. I'd much rather not go down that route.who refers toI've seen a couple of references to this problem in the archives.This is a new installation, to move a current archive from Ubuntu to CentOS.CentOS 7, with SELinux enabled
EPrints 3.3.10
[EP-tech] EPrints 3.3.12 Installation (from source) - Gilles Fournié
[EP-tech] Move 302 - David McElroy
1) that says
302 Moved.
Moved
The document has moved here.
[21/Nov/2016:10:43:09 +0000] "GET / HTTP/1.1" 200 7984
[21/Nov/2016:10:44:03 +0000] "GET /cgi/users/home HTTP/1.1" 302 -
[21/Nov/2016:10:44:03 +0000] "GET /cgi/users/login?target=https%3A%2F%2F---%2Fcgi%2Fusers% 2Fhome HTTP/1.1" 401 6119
[21/Nov/2016:10:51:05 +0000] "POST /cgi/users/login HTTP/1.1" 302 -
[21/Nov/2016:10:51:06 +0000] "GET /cgi/users/login?login_check=1 HTTP/1.1" 302 184
*** Options: http://mailman.ecs.soton.ac.uk/mailman/listinfo/eprints- *** Archive: http://www.eprints.org/tech.tech php/ *** EPrints community wiki: http://wiki.eprints.org/ *** EPrints developers Forum: http://forum.eprints.org/
*** Options: http://mailman.ecs.soton.ac.uk/mailman/listinfo/eprints- tech
*** Archive: http://www.eprints.org/tech.php/
*** EPrints community wiki: http://wiki.eprints.org/
*** EPrints developers Forum: http://forum.eprints.org/
Attachment:
diff
Description: Binary data
- References:
- [EP-tech] On login - 302 Moved - The document has moved here
- From: Rob McMahon <robmcmahoncv@gmail.com>
- Re: [EP-tech] On login - 302 Moved - The document has moved here
- From: Enio Carboni <enio.carboni@gmail.com>
- [EP-tech] On login - 302 Moved - The document has moved here
- Prev by Date: Re: [EP-tech] On login - 302 Moved - The document has moved here
- Next by Date: [EP-tech] OR2017 Technical Track Submissions Close 30th November Midnight
- Previous by thread: Re: [EP-tech] On login - 302 Moved - The document has moved here
- Next by thread: [EP-tech] OR2017 Technical Track Submissions Close 30th November Midnight
- Index(es):