<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<style type="text/css" style="display:none;"> P {margin-top:0;margin-bottom:0;} </style>
</head>
<body dir="ltr">
<div style="padding-bottom: 10px; padding-top: 5px;">
<div style="padding:12px; border:1px solid #8D3970; background-color:#F7F9FA; color:#8D3970; font-size:14px; line-height:22px; font-family: Calibri, Arial, Helvetica, sans-serif;">
<strong>CAUTION:</strong> This e-mail originated outside the University of Southampton.
</div>
</div>
<div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
Hi David,</div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<br>
</div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
Thank you for the detailed explanation and all of your work on this.</div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
I did not know if unsetting {host} variable is the recommended way going forward, hence I hesitated, but g<span style="color: rgb(0, 0, 0); font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt;">iven that our repository is HTTPS-only with HSTS
 , running on 3.4.3, unsetting the {host} to undefined seems like the best way forward.&nbsp; I will do that that.&nbsp; As I wrote, I did notice that this solves the issue on the testing server, it's just that I didn't know if that is a setting that is &quot;supported&quot;.&nbsp;
 These wiki help pages have the {host} set in the examples:</span></div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<span style="color: rgb(0, 0, 0); font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt;"><a href="https://eur03.safelinks.protection.outlook.com/?url=https%3A%2F%2Fwiki.eprints.org%2Fw%2FHow_to_use_EPrints_with_HTTPS&amp;data=04%7C01%7Ceprints-tech%40ecs.soton.ac.uk%7Cf46556678e2549c7499908d9d153f5fa%7C4a5378f929f44d3ebe89669d03ada9d8%7C0%7C0%7C637770981705985361%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000&amp;sdata=zUnbezlgvQK6UXDyVJCdEIzIp1yzt1czPWbHahtlHFw%3D&amp;reserved=0" originalSrc="https://wiki.eprints.org/w/How_to_use_EPrints_with_HTTPS" shash="tEF6AYUB2Q3cjcFr7vOIF6fuQYZtq8Xg03LCTYGAP07xce53uAKZrEY6BMJzJOeP8DS8/dBR3+bzadOcLJhAdEWbhL8WNxxL2QAn/zh2F/iLHwnVwytCZBCGtUeAuSArEQYfuVWqUS6/UV7FmvOpOjtd6QZFGkSdTx5NYGQugXg=" id="LPNoLPOWALinkPreview_1">https://wiki.eprints.org/w/How_to_use_EPrints_with_HTTPS</a><br>
</span></div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<a href="https://eur03.safelinks.protection.outlook.com/?url=https%3A%2F%2Fwiki.eprints.org%2Fw%2FHTTPS-only_and_HSTS&amp;data=04%7C01%7Ceprints-tech%40ecs.soton.ac.uk%7Cf46556678e2549c7499908d9d153f5fa%7C4a5378f929f44d3ebe89669d03ada9d8%7C0%7C0%7C637770981705985361%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000&amp;sdata=iTmCCg7k%2FQAg3F%2Bdxn3y8wAcP9aXTTn3I0iyWXq%2FPxA%3D&amp;reserved=0" originalSrc="https://wiki.eprints.org/w/HTTPS-only_and_HSTS" shash="hDFR/DfQlSrPOmr5Kh3CwsyI/laQm+7xiyBOvnHrz//MVQnkH32QFXhecrq3FKk1H6qP1XBA+7CNkFskjtKiGmKA8F8odbN6BH8MB5xcWF0JzWJnSIYL7RIM3ygMxCeZFQV7SoyCCLGZGx/r/A+hUaseDga8Rrqsm416QWf5xKw=" id="LPNoLPOWALinkPreview_2">https://wiki.eprints.org/w/HTTPS-only_and_HSTS</a><br>
</div>
<div class="_Entity _EType_OWALinkPreview _EId_OWALinkPreview_2 _EReadonly_1"></div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
and I was also unaware of this page:</div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<a href="https://eur03.safelinks.protection.outlook.com/?url=https%3A%2F%2Fwiki.eprints.org%2Fw%2FSimplified_HTTPS_Configuration&amp;data=04%7C01%7Ceprints-tech%40ecs.soton.ac.uk%7Cf46556678e2549c7499908d9d153f5fa%7C4a5378f929f44d3ebe89669d03ada9d8%7C0%7C0%7C637770981705985361%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000&amp;sdata=xXsiaIxcUYv1EAYQppEe6j9CXUj1QmhQJv8MVTNULEo%3D&amp;reserved=0" originalSrc="https://wiki.eprints.org/w/Simplified_HTTPS_Configuration" shash="slvM3d6a6dUmHITAxcfGT7D5AmvIbOXunBBNRUcm4+GDJDjlEJGxH7HtV2DHi7Gh1+JfeZiWSjiNFKPMpEeM5A4kcKkCQ2OtN34RMrWvnZryd1vUcUTxWyLy13oNV4s+CDZeJdzHtOUIe8HB0zE7BbchSKB9g3JytDf4p0cjRW8=" id="LPNoLPOWALinkPreview">https://wiki.eprints.org/w/Simplified_HTTPS_Configuration</a><br>
</div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
Let's add a link to the &quot;Simplified HTTPS Configuration&quot; page from some of these others?<br>
<br>
</div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
I did track down the same line that you referenced (<span style="font-family: &quot;Segoe UI&quot;, &quot;Segoe UI Web (West European)&quot;, &quot;Segoe UI&quot;, -apple-system, &quot;system-ui&quot;, Roboto, &quot;Helvetica Neue&quot;, sans-serif; font-size: 14px; color: rgb(0, 0, 0);">perl_lib/EPrints/URL.pm)
 while troubleshooting, so it is reassuring that I was on the right track: </span>
<span style="color: rgb(0, 0, 0); font-family: &quot;Segoe UI&quot;, &quot;Segoe UI Web (West European)&quot;, &quot;Segoe UI&quot;, -apple-system, &quot;system-ui&quot;, Roboto, &quot;Helvetica Neue&quot;, sans-serif; font-size: 14px;">if ( EPrints::Utils::is_set( $session-&gt;config( &quot;securehost&quot; ) ) &amp;&amp; ( $opts{scheme}
 eq &quot;https&quot; || !EPrints::Utils::is_set( $session-&gt;config( &quot;host&quot; ) )&quot;</span></div>
<div style="color: rgb(0, 0, 0);"><span style="font-size: 14px;"><br>
</span></div>
<div style="color: rgb(0, 0, 0);"><span style="font-size: 14px;">I will search through our configuration files to make sure that &quot;host&quot; variable isn't used for something without a fallback, but I think that I will not find that.&nbsp; I was more worried about breaking
 something in the core by unsetting that {host} variable, so your message was very helpful.</span></div>
<div style="color: rgb(0, 0, 0);"><span style="font-size: 14px;"><br>
</span></div>
<div style="color: rgb(0, 0, 0);"><span style="font-size: 14px;">Best wishes,</span></div>
<div style="color: rgb(0, 0, 0);"><span style="font-size: 14px;"><br>
</span></div>
<div style="color: rgb(0, 0, 0);"><span style="font-size: 14px;">Tomasz</span></div>
<div style="color: rgb(0, 0, 0);"><span style="font-size: 14px;"><br>
</span>
<p style="font-family: &quot;Segoe UI&quot;, &quot;Segoe UI Web (West European)&quot;, &quot;Segoe UI&quot;, -apple-system, &quot;system-ui&quot;, Roboto, &quot;Helvetica Neue&quot;, sans-serif; font-size: 14px; background-color: rgb(255, 255, 255); margin-top: 0px; margin-bottom: 0px;">
<br>
</p>
</div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<br>
</div>
<div class="_Entity _EType_OWALinkPreview _EId_OWALinkPreview _EReadonly_1"></div>
<br>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<br>
</div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<span style="color: rgb(0, 0, 0); font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt;"><br>
</span></div>
<div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<br>
</div>
<div id="Signature">
<div>
<div></div>
<div name="divtagdefaultwrapper" style="font-family:Calibri,Arial,Helvetica,sans-serif; font-size:; margin:0">
<div style="font-family:Tahoma; font-size:13px">
<p class="MsoNormal" style="margin:0cm 0cm 0.0001pt; font-size:11pt; font-family:Calibri,sans-serif; color:rgb(33,33,33); background:white">
<span lang="FR-CA" style="font-size:8pt; font-family:&quot;Courier New&quot;; color:rgb(166,166,166)">________________________________________________</span></p>
<p class="MsoNormal" style="margin:0cm 0cm 12pt 17.85pt; font-size:11pt; font-family:Calibri,sans-serif; color:rgb(33,33,33); background:white">
<span lang="FR-CA" style="font-size:9pt; font-family:Arial,sans-serif; color:black">Tomasz Neugebauer<span style=""><br>
</span><span style="background-color:rgb(255,255,255); display:inline!important">Senior Librarian | Bibliothécaire titulaire
</span><span style="margin:0px; background-color:rgb(255,255,255)"><br>
</span>Digital Projects &amp; Systems Development Librarian / Bibliothécaire des Projets Numériques &amp; Développement de Systèmes<br>
Concordia University / Université Concordia</span></p>
<p class="MsoNormal" style="margin:0cm 0cm 12pt 17.85pt; font-size:11pt; font-family:Calibri,sans-serif; color:rgb(33,33,33); background:white">
<span lang="FR-CA" style="font-size:9pt; font-family:Arial,sans-serif; color:black">Tel. / Tél. 514-848-2424 ext. / poste 7738<br>
Email / courriel:&nbsp;</span><a tabindex="0" href="mailto:tomasz.neugebauer@concordia.ca" target="_blank"><span lang="FR-CA" style="font-size:9pt; font-family:Arial,sans-serif; color:blue">tomasz.neugebauer@concordia.ca</span></a><span style="font-size:9pt; font-family:Arial,sans-serif; color:black"></span></p>
<p class="MsoNormal" style="margin:0cm 0cm 12pt 17.85pt; font-size:11pt; font-family:Calibri,sans-serif; color:rgb(33,33,33); background:white">
<span lang="FR-CA" style="font-size:9pt; font-family:Arial,sans-serif; color:black">Mailing address / adresse postale:&nbsp;1455 De Maisonneuve Blvd. W.,&nbsp;LB-540-03, Montreal, Quebec H3G 1M8<br>
Street address / adresse municipale: 1400&nbsp;De Maisonneuve Blvd. W.,&nbsp;LB-540-03, Montreal, Quebec H3G 1M8</span></p>
<p class="MsoNormal" style="margin:0cm 0cm 12pt 17.85pt; font-size:11pt; font-family:Calibri,sans-serif; color:rgb(33,33,33); background:white">
<span class="MsoHyperlink" style="color:rgb(5,99,193); text-decoration:underline"><span lang="IT" style="font-size:9pt; font-family:Arial,sans-serif; color:purple">library.concordia.ca</span></span></p>
</div>
</div>
</div>
</div>
</div>
<div id="appendonsend"></div>
<div style="font-family:Calibri,Arial,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0)">
<br>
</div>
<hr tabindex="-1" style="display:inline-block; width:98%">
<div id="divRplyFwdMsg" dir="ltr"><font face="Calibri, sans-serif" color="#000000" style="font-size:11pt"><b>From:</b> David R Newman &lt;drn@ecs.soton.ac.uk&gt;<br>
<b>Sent:</b> Thursday, December 23, 2021 8:00 PM<br>
<b>To:</b> eprints-tech@ecs.soton.ac.uk &lt;eprints-tech@ecs.soton.ac.uk&gt;; Tomasz Neugebauer &lt;Tomasz.Neugebauer@concordia.ca&gt;<br>
<b>Subject:</b> Re: [EP-tech] mixed-content warnings</font>
<div>&nbsp;</div>
</div>
<div>
<p style="margin-top: 0px; margin-bottom: 0px;"><span style="font-weight:bold; color:rgb(156,0,0)">Attention</span> This email originates from outside the concordia.ca domain. // Ce courriel provient de l'exterieur du domaine de concordia.ca</p>
<p style="margin-top: 0px; margin-bottom: 0px;"><br>
</p>
<div><br>
</div>
<p style="margin-top: 0px; margin-bottom: 0px;">Hi Tomasz,</p>
<p style="margin-top: 0px; margin-bottom: 0px;"><br>
</p>
<p style="margin-top: 0px; margin-bottom: 0px;">Mixed content warnings is something, I have been trying to improve in recent version of EPrints, so new installs should not suffer these problems.&nbsp;&nbsp; However, upgrades will still be problematic.&nbsp; This is because
 old templates, citations, workflows and even CSS and Javascript files may have http URLs in them.&nbsp; This means you really need to go through all these files and seek out http URLs.</p>
<p style="margin-top: 0px; margin-bottom: 0px;"><br>
</p>
<p style="margin-top: 0px; margin-bottom: 0px;">The main problem I have found is the use http_url or http_cgiurl in templates citations and even workflows.&nbsp; These should ideally use rel_path and rel_cgipath instead but as this does not give your the full URL
 it might be better to use base_url and perl_url instead.&nbsp; However, to make sure that these are https not http, you will need to make sure you have either no or an up to date version of 20_baseurls.pl in your archive's cfg/cfg.d/ (assuming you are running 3.4.1+,
 which it sounds like you are).&nbsp; This is because of a change made for 3.4.1 to ensure that base_url and perl_url get configured as https if $c-&gt;{securehost} is defined.<br>
</p>
<p style="margin-top: 0px; margin-bottom: 0px;"><br>
</p>
<p style="margin-top: 0px; margin-bottom: 0px;">It is worth grepping across all of your archive's cfg directory for the string &quot;http:&quot; to route out any hardcoded http URLs.</p>
<p style="margin-top: 0px; margin-bottom: 0px;"><br>
</p>
<p style="margin-top: 0px; margin-bottom: 0px;">One of the things I did in recent versions of EPrints is provide a way of reconfiguring 10_core.pl to better/more intuitive enable HTTPS everywhere [1].&nbsp; This ensures all http URL requests are redirected to https
 without needing to have picked up the HSTS header, which require visiting an https URL at least once (and therefore does not work for stateless bots).&nbsp; If you deploy HTTPS everywhere, as well as running generate_apacheconf and reloading the webserver, you
 will need to make sure all browse views and abstract pages are regenerated.&nbsp; <br>
</p>
<p style="margin-top: 0px; margin-bottom: 0px;"><br>
</p>
<p style="margin-top: 0px; margin-bottom: 0px;">As you comment in your email below, you are worried about unsetting $c-&gt;{host} as it may break things.&nbsp; I am aware of one issue with this in 3.4.3 core code [2].&nbsp; However, this is a fairly straightforward fix
 and is only a problem if your have multiple languages enabled for your repository.&nbsp; If you use the Repository Links Bazaar plugin [3], that will also require a similar fix.&nbsp; I think there may be one or two other Bazaar plugins that use $c-&gt;{host} but I cannot
 remember what they are off the top of my head.<br>
</p>
<p style="margin-top: 0px; margin-bottom: 0px;"><br>
If you look at perl_lib/EPrints/URL.pm line 129 [4] you should see the line:</p>
<p style="margin-top: 0px; margin-bottom: 0px;"><br>
</p>
<p style="margin-top: 0px; margin-bottom: 0px;">if ( EPrints::Utils::is_set( $session-&gt;config( &quot;securehost&quot; ) ) &amp;&amp; ( $opts{scheme} eq &quot;https&quot; || !EPrints::Utils::is_set( $session-&gt;config( &quot;host&quot; ) )
<br>
</p>
<p style="margin-top: 0px; margin-bottom: 0px;"><br>
</p>
<p style="margin-top: 0px; margin-bottom: 0px;">If you have HTTPS everywhere configuration enabled this should ensure HTTPS URLs are always used for things like the thumbnail URLs you describe having a problem with.&nbsp; However, if you are not using HTTPS everywhere
 configuration you will still get http URLs for thumbnails and similar.&nbsp; I would therefore recommending enabling this and I will see if I can track down the Bazaar plugins that may be affected by $c-&gt;{host} being undefined.</p>
<p style="margin-top: 0px; margin-bottom: 0px;"><br>
</p>
<p style="margin-top: 0px; margin-bottom: 0px;">The problem with EPrints is it has gone through various iterations of HTTP/HTTPS use:</p>
<p style="margin-top: 0px; margin-bottom: 0px;"><br>
</p>
<p style="margin-top: 0px; margin-bottom: 0px;">1. No HTTPS <br>
</p>
<p style="margin-top: 0px; margin-bottom: 0px;">2. HTTP for public pages and HTTPS for back-end admin pages.</p>
<p style="margin-top: 0px; margin-bottom: 0px;">3. HTTPS for all pages</p>
<p style="margin-top: 0px; margin-bottom: 0px;"><br>
</p>
<p style="margin-top: 0px; margin-bottom: 0px;">This means as the code has evolved over time how to configure the appropriate URLs in various situation has got progressively more complicated, as way of supporting these different approaches for HTTPS have been
 incorporated into ePrints over the year.&nbsp; I go in to a bit of detail about this in the EPrints 3.4.3 release page [5].&nbsp; I still don't think this is perfect, as there is the potential requirements in Bazaar plugins or bespoke archive code/configuration that
 require $c-&gt;{host} to be defined.&nbsp; However, after a lot of consideration, the changes I made for 3.4.3 tried to make the best compromise between fixing the mixed content warnings, simplifying URLs config variables and their use and not seriously breaking existing
 repositories when they are upgraded.<br>
</p>
<p style="margin-top: 0px; margin-bottom: 0px;"><br>
</p>
<p style="margin-top: 0px; margin-bottom: 0px;">Regards</p>
<p style="margin-top: 0px; margin-bottom: 0px;"><br>
</p>
<p style="margin-top: 0px; margin-bottom: 0px;">David Newman<br>
</p>
<p style="margin-top: 0px; margin-bottom: 0px;"><br>
</p>
<p style="margin-top: 0px; margin-bottom: 0px;">[1] <a class="x_moz-txt-link-freetext" href="https://eur03.safelinks.protection.outlook.com/?url=https%3A%2F%2Fwiki.eprints.org%2Fw%2FSimplified_HTTPS_Configuration&amp;data=04%7C01%7Ceprints-tech%40ecs.soton.ac.uk%7Cf46556678e2549c7499908d9d153f5fa%7C4a5378f929f44d3ebe89669d03ada9d8%7C0%7C0%7C637770981705985361%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000&amp;sdata=xXsiaIxcUYv1EAYQppEe6j9CXUj1QmhQJv8MVTNULEo%3D&amp;reserved=0" originalSrc="https://wiki.eprints.org/w/Simplified_HTTPS_Configuration" shash="slvM3d6a6dUmHITAxcfGT7D5AmvIbOXunBBNRUcm4+GDJDjlEJGxH7HtV2DHi7Gh1+JfeZiWSjiNFKPMpEeM5A4kcKkCQ2OtN34RMrWvnZryd1vUcUTxWyLy13oNV4s+CDZeJdzHtOUIe8HB0zE7BbchSKB9g3JytDf4p0cjRW8=" originalsrc="https://wiki.eprints.org/w/Simplified_HTTPS_Configuration" shash="CGTnmegqRorqIWT7j+uyDI1Bu4t+DDIz7Wj9zypLUVNlBY85s6/48jcvfmZmVr+KpUVL/9lSfkuzVfbARhuC16iMkhm3+ooRjXZsAfi3T+Hlz0hj4MulZEQ6rfv43RaRJjv6k3zmOQ2VatXrAUQTfmBn3o54r/NhD4SGw030Bfg=">
https://wiki.eprints.org/w/Simplified_HTTPS_Configuration</a></p>
<p style="margin-top: 0px; margin-bottom: 0px;">[2] <a class="x_moz-txt-link-freetext" href="https://eur03.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Feprints%2Feprints3.4%2Fissues%2F118&amp;data=04%7C01%7Ceprints-tech%40ecs.soton.ac.uk%7Cf46556678e2549c7499908d9d153f5fa%7C4a5378f929f44d3ebe89669d03ada9d8%7C0%7C0%7C637770981705985361%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000&amp;sdata=%2BqCxMiijk9t4f%2Fe3KTrGq%2BQGqEKLGWU105W4XcwkZ8s%3D&amp;reserved=0" originalSrc="https://github.com/eprints/eprints3.4/issues/118" shash="laThhp+WHSbbE3cHRJL22Qh2sAsUPYGrqqKFz563BHmuzTOKvrR3x4O0BUSKop/O11MTNyXWQbEHuCgWdDkMLMfMjuVkrfAzRAareX8plZvVAACZnM+PySx2OJ4NbU1HP0rnxZd2YjjHc/wK+HWsiue6SSYgGPAZADC7+x42it8=" originalsrc="https://github.com/eprints/eprints3.4/issues/118" shash="noigHp6TZQmNloGkJI/EEC1U4GGKnPZhjXXhmaTY1Pzsrhsd72KtQuxs3BKRDWncNiXJjkjEKb+d1YDEPzGP23hfGTuVx9HuWH+8W9811VEvW51bk5FwB2HGtx5MoZwHMJ53yt9anJeSE6T8QzDxdbF57SOtfYnA6Rmq0NPqr18=">
https://github.com/eprints/eprints3.4/issues/118</a></p>
<p style="margin-top: 0px; margin-bottom: 0px;">[3] <a class="x_moz-txt-link-freetext" href="https://eur03.safelinks.protection.outlook.com/?url=http%3A%2F%2Fbazaar.eprints.org%2F379%2F&amp;data=04%7C01%7Ceprints-tech%40ecs.soton.ac.uk%7Cf46556678e2549c7499908d9d153f5fa%7C4a5378f929f44d3ebe89669d03ada9d8%7C0%7C0%7C637770981706142028%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000&amp;sdata=ziASrOAnuV7E9fqRaf4DoVdq4qNc9ekYdeg%2BXJheh7c%3D&amp;reserved=0" originalSrc="http://bazaar.eprints.org/379/" shash="stNRc42jxVARRAto6cmYSa8Jsf7H2DtVE23XMb/c2UOVLXA0MpkXxrsxov9wjKqAEyB77l6KzjRG76j7wmr7njIu9knqPkmdLkh4Wb/twX0jWkATQkR2FWmlN8kciQWsd25+5JH4812TZhH7Noxq+CH81nmCnpWBwLX5Q3mKiik=" originalsrc="http://bazaar.eprints.org/379/" shash="sbouASCUrnKiWPg6nhEERlymxQEDlYeRE3nAz1S8Y2j2LF4Js1hr27Wt/mZfhBIKXyFY6ek13N/aMVzXPrZZtDanRxgJgiQfAa16qbPAsn1u8bcHVmfE+38VcTs8s5FeSjnEr/M4l7Zq5nQ5ldpt4UgsXiCTUsZ3lmx6mK4E0N8=">
http://bazaar.eprints.org/379/</a><br>
</p>
<p style="margin-top: 0px; margin-bottom: 0px;">[4] <a class="x_moz-txt-link-freetext" href="https://eur03.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Feprints%2Feprints3.4%2Fblob%2Fmaster%2Fperl_lib%2FEPrints%2FURL.pm%23L129&amp;data=04%7C01%7Ceprints-tech%40ecs.soton.ac.uk%7Cf46556678e2549c7499908d9d153f5fa%7C4a5378f929f44d3ebe89669d03ada9d8%7C0%7C0%7C637770981706142028%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000&amp;sdata=iOQF5SEbzz5z%2F%2Fy2QngwhfOkSvXR3QJ0muV7Mh%2B4I9c%3D&amp;reserved=0" originalSrc="https://github.com/eprints/eprints3.4/blob/master/perl_lib/EPrints/URL.pm#L129" shash="RXiyDwroTpuu/18M6RoVfJs84TjcjYj4SwAWrOr+rXPMOtyV0ID7vrAzKaV46LCIM4GxZtJZkucMyS0xaAv0ZKdQ19y2ze3GcEOLwqKTzHK+OQRqTBNI9ZyfQf1KQbqbwzF8e5TYAkkPjkuxO7fVXSP30p70wD6vzTRGl2Vkez8=" originalsrc="https://github.com/eprints/eprints3.4/blob/master/perl_lib/EPrints/URL.pm#L129" shash="eR93eVELHr80Qn8I8dxz/YPKwFyCeTm2m/wm1BgNZKU5XidybWwc8eVM+wdU24RYrwtxfDR9umbN07AFtojzCFaLZKapeC4/TikD5i74tfbImf7E0v/bTYNb6lvkCbYjdWSV2v3BMeUS/c2b1McLEpMuvxYLyoPbHuJVEJLMx7o=">
https://github.com/eprints/eprints3.4/blob/master/perl_lib/EPrints/URL.pm#L129</a></p>
<p style="margin-top: 0px; margin-bottom: 0px;">[5] <a class="x_moz-txt-link-freetext" href="https://eur03.safelinks.protection.outlook.com/?url=https%3A%2F%2Fwiki.eprints.org%2Fw%2FEPrints_3.4.3%23Configuration_URLs_and_Paths&amp;data=04%7C01%7Ceprints-tech%40ecs.soton.ac.uk%7Cf46556678e2549c7499908d9d153f5fa%7C4a5378f929f44d3ebe89669d03ada9d8%7C0%7C0%7C637770981706142028%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000&amp;sdata=RANtqzrYzq4k8O5b1M8YLnspGSO497LrcZGsI9szR58%3D&amp;reserved=0" originalSrc="https://wiki.eprints.org/w/EPrints_3.4.3#Configuration_URLs_and_Paths" shash="GHLTMMOMXLcFiOYWAn31qAa2FOJOdWQ0iW1T3e+G43TVUgoqfBg7KgbWQUfg5S08GYVbOXFHj4zN0WCaqdp/zSBULlvsTDG8bgOS0IuVHIWWFI+5Hkh0P7/re+1Kc9fDlBsNqHhbb7joh/1typuJ1k6IAIwyLXSYifbv7rrI8v4=" originalsrc="https://wiki.eprints.org/w/EPrints_3.4.3#Configuration_URLs_and_Paths" shash="PRR9mMACLde2xAVDzIIfzVgDwAHvU7QPajXViKShBCGXS+FKYW/KfsSRbhu4ojWqfhnxFZ/wh83F+1hSJGRJ615Nff94b/2KlyjNOBws1nxA3mUB8H4nF7i7fGUazVuwNkRoEn+xZn9CYJoqzGdhlE6iMSRQJGnBrkDpz3yILWg=">
https://wiki.eprints.org/w/EPrints_3.4.3#Configuration_URLs_and_Paths</a></p>
<p style="margin-top: 0px; margin-bottom: 0px;"><br>
</p>
<div class="x_moz-cite-prefix">On 23/12/2021 23:12, Tomasz Neugebauer via Eprints-tech wrote:<br>
</div>
<blockquote type="cite">
<div style="padding-bottom:10px; padding-top:5px">
<div style="padding:12px; border:1px solid #8D3970; background-color:#F7F9FA; color:#8D3970; font-size:14px; line-height:22px; font-family:Calibri,Arial,Helvetica,sans-serif">
<strong>CAUTION:</strong> This e-mail originated outside the University of Southampton.
</div>
</div>
<div>
<div style="font-family:Calibri,Arial,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0)">
I thought​ that I resolved all of the &quot;mixed content&quot; warnings on our repository a while back, but after a recent upgrade from 3.3.12 to 3.4.3, I noticed that I have some mixed content warnings again, specifically on the thumbnails on the abstract pages.&nbsp; I
 might have missed some of these warning before, though, so this might not be a new issue after the upgrade.&nbsp;&nbsp;</div>
<div style="font-family:Calibri,Arial,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0)">
<br>
</div>
<div style="font-family:Calibri,Arial,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0)">
Because I have HSTS headers, the browser redirects those those requests to HTTPS, but I would like to fix it.&nbsp; Both the SRC and the HREF of the thumbnails for PDFs are referenced as HTTP instead of HTTPS.&nbsp; The only thing that fixed it during my testing was
 if I was to remove (comment out) &quot; the&nbsp;<span style="background-color:rgb(255,255,255); display:inline!important">$c-&gt;{host}<span>&nbsp;</span></span> line/ariable in 10_core.pl</div>
<div style="font-family:Calibri,Arial,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0)">
That resolves the issue, but I'm worried to apply this change because I don't know if something else might rely on that variable.</div>
<div style="font-family:Calibri,Arial,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0)">
<br>
</div>
<div style="font-family:Calibri,Arial,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0)">
I spent a good part of a day trying to follow the code, and I know that the {scheme} variable in URL.pm doesn't get properly set to https in the case of the thumbnails, but the code is so confusing when it comes to the thumbnail URLs that I can't figure out
 why.&nbsp; I do have a suspicion that there is a bug in the core code somewhere, but perhaps it is something in our own configuration.&nbsp;</div>
<div style="font-family:Calibri,Arial,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0)">
I know this issue is not new to this list, in fact, I wrote the first drafts of the HSTS page on the Wiki (<a href="https://eur03.safelinks.protection.outlook.com/?url=https%3A%2F%2Fwiki.eprints.org%2Fw%2FHTTPS-only_and_HSTS&amp;data=04%7C01%7Ceprints-tech%40ecs.soton.ac.uk%7Cf46556678e2549c7499908d9d153f5fa%7C4a5378f929f44d3ebe89669d03ada9d8%7C0%7C0%7C637770981706142028%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000&amp;sdata=cbnyi9i8kVehoCQoV%2FyX%2Fgr%2FrRGe7wb0XHFmJKl7B1U%3D&amp;reserved=0" originalSrc="https://wiki.eprints.org/w/HTTPS-only_and_HSTS" shash="kHmjf7yn7Ep+tCOq0gGjz4lRGdyYbjnaQ12jpmP4LK2i59HtOuVoSWON4c2XW06Ac1vjD3S9ZjhjmjsllYREbfyxVePhNPrg6wUb0PPm6Li/ZZ/OtfIPL1LfUhEoib/r5atFVp4z7Z13I5JWXA6/K6UFQhvVRARqZkRo4BVE8qc=" originalsrc="https://wiki.eprints.org/w/HTTPS-only_and_HSTS" shash="IkiLyKRPEg1iUgPZDpTREgMFcH/3ZrtmqEJgW5PbJs4PPY8m/pz/5u13tsCQVvQlCQ7OThld0XBm7saR0tAvNL8gXS+vuMYDmcIE8YL7tNhqjlvyz1nC3TbP7U9+BUhMiH/T/dim5jI3zdnu4bplivwx2JlhuOaOt1UGUJNi+f4=" id="LPNoLPOWALinkPreview">https://wiki.eprints.org/w/HTTPS-only_and_HSTS</a>),
 but looking through the updated page there and any recent exchanges that relate to this didn't help me figure it out.&nbsp;&nbsp;</div>
<div style="font-family:Calibri,Arial,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0)">
Let me know if you have any ideas?</div>
<div style="font-family:Calibri,Arial,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0)">
<br>
</div>
<div style="font-family:Calibri,Arial,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0)">
Best wishes,
<div>Tomasz</div>
</div>
<div style="font-family:Calibri,Arial,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0)">
<br>
<br>
</div>
<div style="font-family:Calibri,Arial,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0)">
<br>
</div>
<div>
<div id="x_Signature">
<div>
<div name="x_divtagdefaultwrapper" style="font-family:Calibri,Arial,Helvetica,sans-serif; font-size:; margin:0">
</div>
</div>
</div>
</div>
</div>
<br>
<fieldset class="x_moz-mime-attachment-header"></fieldset>
<pre class="x_moz-quote-pre">*** Options: <a class="x_moz-txt-link-freetext" href="https://eur03.safelinks.protection.outlook.com/?url=http%3A%2F%2Fmailman.ecs.soton.ac.uk%2Fmailman%2Flistinfo%2Feprints-tech&amp;data=04%7C01%7Ceprints-tech%40ecs.soton.ac.uk%7Cf46556678e2549c7499908d9d153f5fa%7C4a5378f929f44d3ebe89669d03ada9d8%7C0%7C0%7C637770981706142028%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000&amp;sdata=lm1Dxae7vycbgt0vVL%2F2tcqM8KnggVQSM5YbXorNXGQ%3D&amp;reserved=0" originalSrc="http://mailman.ecs.soton.ac.uk/mailman/listinfo/eprints-tech" shash="emJZVmJYm3GjaTlm/PCZ+L6Ka6ddRkRD34xZm8RXrQsVOWs+MvA62ZswOWInRXRBiH3y0aeSUf1ZtbXq67LNDXpcZQK0D40kjdoqau4iq14572thTwIFUM/bdHky8BVdCMJCnMEvr8LHDJdHqZISNHLMriqoy+5atWz1XZbUIJM=" originalsrc="http://mailman.ecs.soton.ac.uk/mailman/listinfo/eprints-tech" shash="Ze2dvPIdRP39IaWS4CWdasI4QPsi7GK+Df6qiRohufiXJX3CUtp0ZxQeYLFJloJQOtMpwGFrqAY5jn8HSnX7oYoh6hciOtoQ2lCP6UnFXj7AZ2rGJAkIqqBwZNJgQV23jjgduerHSZ3ect+wYxQGsJ4+z7TaL3WrxlRzHUno6DU=">http://mailman.ecs.soton.ac.uk/mailman/listinfo/eprints-tech</a>
*** Archive: <a class="x_moz-txt-link-freetext" href="https://eur03.safelinks.protection.outlook.com/?url=http%3A%2F%2Fwww.eprints.org%2Ftech.php%2F&amp;data=04%7C01%7Ceprints-tech%40ecs.soton.ac.uk%7Cf46556678e2549c7499908d9d153f5fa%7C4a5378f929f44d3ebe89669d03ada9d8%7C0%7C0%7C637770981706142028%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000&amp;sdata=vGxyIdBAtSUeWuf%2F7Rywc7hE3SdJo7ih2wplVLHpoJM%3D&amp;reserved=0" originalSrc="http://www.eprints.org/tech.php/" shash="P40fR9S1joo6RdbAWmDAm7a5mBto5WVzTDum1GEhXcT0WplLhv6V68vOrO01wNTlWlPL8nEXPGZBoWYDES0Q1pjJujY0lCHzD3NOEux/aITUpxf2/Q/rv6KrJpjiXmeywEsV1hTLRPJcB3btRL2IFR9Lv530Vs/8zjufQWwOR1s=" originalsrc="http://www.eprints.org/tech.php/" shash="LgWOQVAdt3lUDfD8XWCcvHqKaAd6gpf+Co7R3NcrsIc8JZJ51Il+ixRKXficaUwlwJ5ztRevUHjOMHJ+5cwfRPiBlU5m+WELm46iC7taDm5DH7bzzFasVH3x7pJcZ6DK5LSg5yjd8t+xEC5slJy7yxzvfB+WBW7X0lLRKoZyPrY=">http://www.eprints.org/tech.php/</a>
*** EPrints community wiki: <a class="x_moz-txt-link-freetext" href="https://eur03.safelinks.protection.outlook.com/?url=http%3A%2F%2Fwiki.eprints.org%2F&amp;data=04%7C01%7Ceprints-tech%40ecs.soton.ac.uk%7Cf46556678e2549c7499908d9d153f5fa%7C4a5378f929f44d3ebe89669d03ada9d8%7C0%7C0%7C637770981706142028%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000&amp;sdata=suUiDFkqih3O8Myi1RJzSdXJT49dVQ2o5vHLCQhvzdk%3D&amp;reserved=0" originalSrc="http://wiki.eprints.org/" shash="CFSFZIBvP1zNwq8RBkCz8lFaKNJDembenbdVrdTldBpdZamrgIh1fSFhpFoN9i0kPly8i0wpet2TWDIminYfjh06HszfeUDrCpCr2G7Zr8+X+t+Pay6ZM+j7ITEHTSddsnHrC/p6mqlfdOcY+HBR8uY4mwxzpvQX7f8NYsqvRXI=" originalsrc="http://wiki.eprints.org/" shash="IUolDQjUmheV+upyuWG+pqrxDI0dKITqIb9aFlM63mPTld/EZil/v2B0ZPT3uutl6MrtLLlbZON4kZAklUTljF2jqGNPug/ki7rrLyiM06b0aQmdcoFoXZED+DT6IAFVaptp3vuxbVZAr3aqLXc5ZSj/2A6bL5FMGlYI4SFadW4=">http://wiki.eprints.org/</a></pre>
</blockquote>
<div id="x_DAB4FAD8-2DD7-40BB-A1B8-4E2AA1F9FDF2"><br>
<table style="border-top:1px solid #D3D4DE">
<tbody>
<tr>
<td style="width:55px; padding-top:13px"><a href="https://eur03.safelinks.protection.outlook.com/?url=http%3A%2F%2Fwww.avg.com%2Femail-signature%3Futm_medium%3Demail%26utm_source%3Dlink%26utm_campaign%3Dsig-email%26utm_content%3Demailclient&amp;data=04%7C01%7Ceprints-tech%40ecs.soton.ac.uk%7Cf46556678e2549c7499908d9d153f5fa%7C4a5378f929f44d3ebe89669d03ada9d8%7C0%7C0%7C637770981706142028%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000&amp;sdata=HfwULN4hKvWZPcMYP1QGml2wLDxniYYlO%2BfN541wqvY%3D&amp;reserved=0" originalSrc="http://www.avg.com/email-signature?utm_medium=email&utm_source=link&utm_campaign=sig-email&utm_content=emailclient" shash="Ufnyn3USATQSR7Nm7NHNi6KGiAhplRqIUkULJHZA03STED69EQPxaQ/3cBKKkmUfrBywCg0kSyiH39zYIRaLiDOF/pJPrvmlPHa+Pa++DPpBSVTNlq5rEFG0qsXa2f27Z5VjODBvgDiR5NHW5NbTLzPaeaQbILfChDoWY2GLbKQ=" originalsrc="http://www.avg.com/email-signature?utm_medium=email&amp;utm_source=link&amp;utm_campaign=sig-email&amp;utm_content=emailclient" shash="cZ2GpWanOd1O5KPykFKR8SjK9puB+UZQddB0Wmo+VHvCzqAxYw2BZheSQM9lb6jMalxBvXvDJlsGkdQtZSP7TtEpq3u4drsTTIIXCTeyrAvQzrwNzs91eCh2gPysGB6SreRE2OPR+FFZLI8x+iuwjJK8exTfluRgeEuRIeEjwDQ=" target="_blank"><img alt="" width="46" height="29" style="width:46px; height:29px" src="https://ipmcdn.avast.com/images/icons/icon-envelope-tick-green-avg-v1.png"></a></td>
<td style="width:470px; padding-top:12px; color:#41424e; font-size:13px; font-family:Arial,Helvetica,sans-serif; line-height:18px">
Virus-free. <a href="https://eur03.safelinks.protection.outlook.com/?url=http%3A%2F%2Fwww.avg.com%2Femail-signature%3Futm_medium%3Demail%26utm_source%3Dlink%26utm_campaign%3Dsig-email%26utm_content%3Demailclient&amp;data=04%7C01%7Ceprints-tech%40ecs.soton.ac.uk%7Cf46556678e2549c7499908d9d153f5fa%7C4a5378f929f44d3ebe89669d03ada9d8%7C0%7C0%7C637770981706142028%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000&amp;sdata=HfwULN4hKvWZPcMYP1QGml2wLDxniYYlO%2BfN541wqvY%3D&amp;reserved=0" originalSrc="http://www.avg.com/email-signature?utm_medium=email&utm_source=link&utm_campaign=sig-email&utm_content=emailclient" shash="Ufnyn3USATQSR7Nm7NHNi6KGiAhplRqIUkULJHZA03STED69EQPxaQ/3cBKKkmUfrBywCg0kSyiH39zYIRaLiDOF/pJPrvmlPHa+Pa++DPpBSVTNlq5rEFG0qsXa2f27Z5VjODBvgDiR5NHW5NbTLzPaeaQbILfChDoWY2GLbKQ=" originalsrc="http://www.avg.com/email-signature?utm_medium=email&amp;utm_source=link&amp;utm_campaign=sig-email&amp;utm_content=emailclient" shash="cZ2GpWanOd1O5KPykFKR8SjK9puB+UZQddB0Wmo+VHvCzqAxYw2BZheSQM9lb6jMalxBvXvDJlsGkdQtZSP7TtEpq3u4drsTTIIXCTeyrAvQzrwNzs91eCh2gPysGB6SreRE2OPR+FFZLI8x+iuwjJK8exTfluRgeEuRIeEjwDQ=" target="_blank" style="color:#4453ea">
www.avg.com</a> </td>
</tr>
</tbody>
</table>
<a href="#x_DAB4FAD8-2DD7-40BB-A1B8-4E2AA1F9FDF2" width="1" height="1"></a></div>
</div>
</div>
</body>
</html>