EPrints Technical Mailing List Archive
Message: #08434
< Previous (by date) | Next (by date) > | < Previous (in thread) | Next (in thread) > | Messages - Most Recent First | Threads - Most Recent First
Re: [EP-tech] Word Documents won't download
- To: John Salter <J.Salter@leeds.ac.uk>, "eprints-tech@ecs.soton.ac.uk" <eprints-tech@ecs.soton.ac.uk>, James Kerwin <jkerwin2101@gmail.com>
- Subject: Re: [EP-tech] Word Documents won't download
- From: Rory McNicholl <rory.mcnicholl@london.ac.uk>
- Date: Tue, 5 Jan 2021 12:46:22 +0000
CAUTION: This e-mail originated outside the University of Southampton.
Hello,
not sure it will apply to this particular issue, but I have often to switched round the emphasis in 20_baseurls.pl so that it will expect "securehost" and fall back to "host" if that is not set...
So the condition becomes:
my $uri = URI->new( "http://" );
if( ! EPrints::Utils::is_set( $c->{securehost} ) )
{
$uri->scheme( "http" );
$uri->host( $c->{host} );
$uri->port( $c->{port} );
$uri = $uri->canonical;
$uri->path( $c->{http_root} );
}
else
{
$uri->scheme( "https" );
$uri->host( $c->{securehost} );
$uri->port( $c->{secureport} );
$uri = $uri->canonical;
$uri->path( $c->{https_root} );
}
This is quite useful at picking up some instances of URLs not using securehost when they should, but I don't think it does all of them.
Cheers,
Rory
Rory McNicholl
Team Lead - Research Technologies
CoSector, University of London
Senate House
Malet Street
London
WC1E 7HU
t: +44 (0)20 7863 1344
e: rory.mcnicholl@london.ac.uk
w: https://cosector.com/digital-research/
The University of London is an exempt charity in England and Wales.
From: eprints-tech-bounces@ecs.soton.ac.uk <eprints-tech-bounces@ecs.soton.ac.uk> on behalf of James Kerwin via Eprints-tech <eprints-tech@ecs.soton.ac.uk>
Sent: 05 January 2021 12:11 To: John Salter <J.Salter@leeds.ac.uk> Cc: eprints-tech@ecs.soton.ac.uk <eprints-tech@ecs.soton.ac.uk> Subject: Re: [EP-tech] Word Documents won't download
CAUTION: This e-mail originated outside the University of Southampton.
Hi John,
I am glad you sent this because I don't have a
20_baseurls.pl in my archive config, but after you mentioned it I've just discovered it exists in the default cfg. Pretty sure mine is the old version as it checks for host first and if that isn't set looks for securehost.
In an act of desperate experimentation, before discovering this baseurls file, I commented out:
This DOES give me a https in the elements file link where it previously gave me http. I assumed this would fix it, but it hasn't! I click and see this text in my browser:
I'm at a little bit of a loss now that hasn't fixed it.This time I have no console clues to go on either. I've checked the RT1 settings in Elements and (surprisingly) wherever they mention the repo url it's already https. I shall keep thinking thoughts and hopefully a solution will magically present itself.
Thanks,
James
On Tue, Jan 5, 2021 at 11:31 AM John Salter <J.Salter@leeds.ac.uk> wrote:
|
- Follow-Ups:
- Re: [EP-tech] Word Documents won't download
- From: Rory McNicholl <rory.mcnicholl@london.ac.uk>
- Re: [EP-tech] Word Documents won't download
- References:
- [EP-tech] Word Documents won't download
- From: James Kerwin <jkerwin2101@gmail.com>
- Re: [EP-tech] Word Documents won't download
- From: James Kerwin <jkerwin2101@gmail.com>
- Re: [EP-tech] Word Documents won't download
- From: David R Newman <drn@ecs.soton.ac.uk>
- Re: [EP-tech] Word Documents won't download
- From: John Salter <J.Salter@leeds.ac.uk>
- Re: [EP-tech] Word Documents won't download
- From: David R Newman <drn@ecs.soton.ac.uk>
- Re: [EP-tech] Word Documents won't download
- From: John Salter <J.Salter@leeds.ac.uk>
- Re: [EP-tech] Word Documents won't download
- From: James Kerwin <jkerwin2101@gmail.com>
- Re: [EP-tech] Word Documents won't download
- From: James Kerwin <jkerwin2101@gmail.com>
- Re: [EP-tech] Word Documents won't download
- From: John Salter <J.Salter@leeds.ac.uk>
- Re: [EP-tech] Word Documents won't download
- From: James Kerwin <jkerwin2101@gmail.com>
- Re: [EP-tech] Word Documents won't download
- From: Rory McNicholl <rory.mcnicholl@london.ac.uk>
- [EP-tech] Word Documents won't download
- Prev by Date: Re: [EP-tech] Word Documents won't download
- Next by Date: Re: [EP-tech] Word Documents won't download
- Previous by thread: [EP-tech] Sort view with creators_name and corp_creators
- Index(es):