EPrints Technical Mailing List Archive
See the EPrints wiki for instructions on how to join this mailing list and related information.
Message: #10044
< Previous (by date) | Next (by date) > | < Previous (in thread) | Next (in thread) > | Messages - Most Recent First | Threads - Most Recent First
Re: [EP-tech] Help with redirect loops in EPrints 3.3.16
- To: eprints-tech@ecs.soton.ac.uk
- Subject: Re: [EP-tech] Help with redirect loops in EPrints 3.3.16
- From: Gunnar Wolf <gwolf@gwolf.org>
- Date: Sat, 15 Mar 2025 17:37:07 -0600
CAUTION: This e-mail originated outside the University of Southampton. Hello John, John Salter dijo [Thu, Mar 13, 2025 at 09:25:25AM +0000]:
Hi Gunnar, It might also be worth looking in [EPRINTS_ROOT]/archives/[ARCHIVE_ID]/cfg/cfg.d/20_baseurls.pl - maybe compare it with the default https://eur03.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Feprints%2Feprints%2Fblob%2F3.3%2Flib%2Fdefaultcfg%2Fcfg.d%2F20_baseurls.pl&data=05%7C02%7Ceprints-tech%40ecs.soton.ac.uk%7Ce55e0eb78f73432a304408dd641a4e08%7C4a5378f929f44d3ebe89669d03ada9d8%7C0%7C0%7C638776786427411713%7CUnknown%7CTWFpbGZsb3d8eyJFbXB0eU1hcGkiOnRydWUsIlYiOiIwLjAuMDAwMCIsIlAiOiJXaW4zMiIsIkFOIjoiTWFpbCIsIldUIjoyfQ%3D%3D%7C80000%7C%7C%7C&sdata=XJF35iEQUhdtRQMiayvxP9YmOK0hPcjDLbHnkfd5oL4%3D&reserved=0 If your repository was created a while ago on e.g. v3.3.10, the logic in that file might prefer http over https. There is also a line in that file which sets the base_url, which will overwrite the value you set in 10_core.pl.
This repository was created somewhere in 2012, so... quite likely! However, I had already updated the values in 20_baseurls as well :-\
You can check the calculated values of all the config options using this (replace EPRINTS_ROOT and ARCHIVE_ID with correct values): perl -IEPRINTS_ROOT/perl_lib -e 'use EPrints; use Data::Dumper; $Data::Dumper::Maxdepth = 2; $s = new EPrints::Session( 1, "ARCHIVE_ID", 0 ); print Dumper( $s->{config} );'
Thanks for this snippet,it is most interesting!
It will dump a lot of data out (the EPrints session has a lot in it!), so maybe pipe the output into a file or through 'less'. The 'Maxdepth' will limit the amount of info. The things you're interested in - URLs etc. should all live at the top config level, so it should show you useful info.
Interesting indeed! However... what can I do now that I have confirmed this? I found repeated URLs for my domain with an http:// protocol, for values that I know I have declared to be https (and must be, I suppose, overwritten further down the stack..?) At least, I get: 'http_cgiurl' => bless( do{\(my $o = 'https://eur03.safelinks.protection.outlook.com/?url=http%3A%2F%2Fru.iiec.unam.mx%2Fcgi&data=05%7C02%7Ceprints-tech%40ecs.soton.ac.uk%7Ce55e0eb78f73432a304408dd641a4e08%7C4a5378f929f44d3ebe89669d03ada9d8%7C0%7C0%7C638776786427429642%7CUnknown%7CTWFpbGZsb3d8eyJFbXB0eU1hcGkiOnRydWUsIlYiOiIwLjAuMDAwMCIsIlAiOiJXaW4zMiIsIkFOIjoiTWFpbCIsIldUIjoyfQ%3D%3D%7C80000%7C%7C%7C&sdata=cBrDUHoWEv3Aqaje%2BtznRzvbV89kgJncFkavLv1y1pw%3D&reserved=0')}, 'URI::http' ), 'base_url' => 'https://eur03.safelinks.protection.outlook.com/?url=http%3A%2F%2Fru.iiec.unam.mx%2F&data=05%7C02%7Ceprints-tech%40ecs.soton.ac.uk%7Ce55e0eb78f73432a304408dd641a4e08%7C4a5378f929f44d3ebe89669d03ada9d8%7C0%7C0%7C638776786427441386%7CUnknown%7CTWFpbGZsb3d8eyJFbXB0eU1hcGkiOnRydWUsIlYiOiIwLjAuMDAwMCIsIlAiOiJXaW4zMiIsIkFOIjoiTWFpbCIsIldUIjoyfQ%3D%3D%7C80000%7C%7C%7C&sdata=MBFnO%2Ft6KyfZ23jUsxOq6hNzowZPeIFHA3CJ4a687I8%3D&reserved=0', 'perl_url' => 'https://eur03.safelinks.protection.outlook.com/?url=http%3A%2F%2Fru.iiec.unam.mx%2Fcgi&data=05%7C02%7Ceprints-tech%40ecs.soton.ac.uk%7Ce55e0eb78f73432a304408dd641a4e08%7C4a5378f929f44d3ebe89669d03ada9d8%7C0%7C0%7C638776786427453101%7CUnknown%7CTWFpbGZsb3d8eyJFbXB0eU1hcGkiOnRydWUsIlYiOiIwLjAuMDAwMCIsIlAiOiJXaW4zMiIsIkFOIjoiTWFpbCIsIldUIjoyfQ%3D%3D%7C80000%7C%7C%7C&sdata=WEQ0v07g%2F98I7ftr3W8qUvNtImvp2yRNaX3rtQxU5pc%3D&reserved=0', 'frontpage' => 'https://eur03.safelinks.protection.outlook.com/?url=http%3A%2F%2Fru.iiec.unam.mx%2F&data=05%7C02%7Ceprints-tech%40ecs.soton.ac.uk%7Ce55e0eb78f73432a304408dd641a4e08%7C4a5378f929f44d3ebe89669d03ada9d8%7C0%7C0%7C638776786427465107%7CUnknown%7CTWFpbGZsb3d8eyJFbXB0eU1hcGkiOnRydWUsIlYiOiIwLjAuMDAwMCIsIlAiOiJXaW4zMiIsIkFOIjoiTWFpbCIsIldUIjoyfQ%3D%3D%7C80000%7C%7C%7C&sdata=uvtCehQ8ijbcmPJ7hOSzCA45hfLPDWnvnzPfm45gMrg%3D&reserved=0', 'http_url' => bless( do{\(my $o = 'https://eur03.safelinks.protection.outlook.com/?url=http%3A%2F%2Fru.iiec.unam.mx%2F&data=05%7C02%7Ceprints-tech%40ecs.soton.ac.uk%7Ce55e0eb78f73432a304408dd641a4e08%7C4a5378f929f44d3ebe89669d03ada9d8%7C0%7C0%7C638776786427476861%7CUnknown%7CTWFpbGZsb3d8eyJFbXB0eU1hcGkiOnRydWUsIlYiOiIwLjAuMDAwMCIsIlAiOiJXaW4zMiIsIkFOIjoiTWFpbCIsIldUIjoyfQ%3D%3D%7C80000%7C%7C%7C&sdata=wC4JXHTIg0XLFGKiV9qw3lRlAdp%2BY8Q1SDJ51OnkHwk%3D&reserved=0')}, 'URI::http' ), 'vlit' => { 'copyright_url' => 'https://eur03.safelinks.protection.outlook.com/?url=http%3A%2F%2Fru.iiec.unam.mx%2Fvlit.html&data=05%7C02%7Ceprints-tech%40ecs.soton.ac.uk%7Ce55e0eb78f73432a304408dd641a4e08%7C4a5378f929f44d3ebe89669d03ada9d8%7C0%7C0%7C638776786427489132%7CUnknown%7CTWFpbGZsb3d8eyJFbXB0eU1hcGkiOnRydWUsIlYiOiIwLjAuMDAwMCIsIlAiOiJXaW4zMiIsIkFOIjoiTWFpbCIsIldUIjoyfQ%3D%3D%7C80000%7C%7C%7C&sdata=5bKQlN5NbEpRtatULE2wvNjbndl1iA2g1ihBxs1v6Is%3D&reserved=0' } However, I'm *sure* they are not part of my declared configuration: There is not a single /http:.*ru.iiec/ under cfg/cfg.d. Where else should I be looking?
- Follow-Ups:
- RE: [EP-tech] Help with redirect loops in EPrints 3.3.16
- From: John Salter <J.Salter@leeds.ac.uk>
- RE: [EP-tech] Help with redirect loops in EPrints 3.3.16
- References:
- [EP-tech] Help with redirect loops in EPrints 3.3.16
- From: Gunnar Wolf <gwolf@gwolf.org>
- Re: [EP-tech] Help with redirect loops in EPrints 3.3.16
- From: Yuri Carrer <yuri.carrer@unipd.it>
- RE: [EP-tech] Help with redirect loops in EPrints 3.3.16
- From: John Salter <J.Salter@leeds.ac.uk>
- [EP-tech] Help with redirect loops in EPrints 3.3.16
- Prev by Date: Re: [EP-tech] Help with redirect loops in EPrints 3.3.16
- Next by Date: RE: [EP-tech] Contributor_types not registering on RIS import
- Previous by thread: RE: [EP-tech] Help with redirect loops in EPrints 3.3.16
- Next by thread: RE: [EP-tech] Help with redirect loops in EPrints 3.3.16
- Index(es):