<html><head><meta http-equiv="Content-Type" content="text/html charset=iso-8859-1"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;">Hi Florian<div><br></div><div><span class="Apple-tab-span" style="white-space:pre">        </span>I believe that secure.xml was phased out some versions ago. &nbsp;It certainly isn't part of the current release of EPrints (see&nbsp;<a href="https://github.com/eprints/eprints/tree/3.3/lib/templates">https://github.com/eprints/eprints/tree/3.3/lib/templates</a>&nbsp;).</div><div><br></div><div><span class="Apple-tab-span" style="white-space:pre">        </span>I would suggest that you check you're loading resources correctly in the template:</div><div><br></div><div><span class="Apple-tab-span" style="white-space:pre">                </span><a href="https://github.com/eprints/eprints/blob/3.3/lib/templates/default.xml#L8">https://github.com/eprints/eprints/blob/3.3/lib/templates/default.xml#L8</a></div><div><br><div apple-content-edited="true">
<div style="color: rgb(0, 0, 0); letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px; word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;"><div><span class="Apple-tab-span" style="white-space:pre">        </span>If that fails, swap your template for the default one of the version you're using and see if you still have the same problem. &nbsp;Finally, if you're still lost, put your template up somewhere where we can see (do you have a github account?) it and post a link to it so we can take a look.</div><div><br></div><div>--<br>Adam Field<br>Business Relationship Manager and Community Lead<br>EPrints Services</div><div><br></div><div>I am currently not working in the UK. &nbsp;Due to timezone differences (GMT -9) email responses may take longer.</div></div>

</div>
<br><div><div>On 11 Jul 2015, at 00:04, Florian Heß &lt;<a href="mailto:hess@ub.uni-heidelberg.de">hess@ub.uni-heidelberg.de</a>&gt; wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite">Hi,<br><br>please could someone point me to where in the codebase EPrints decides <br>to load either of default.xml or secure.xml template? Failed to grep <br>that place in order to find out what the exact conditions are.<br><br>What I am struggling with is to load local asset files (.css, .js). If <br>the connection is secure because the client is logged in, Firefox seems <br>to happily load these files into cache as Firebug shows, but refuses to <br>use them. That's apparently why the user area is styled with bare <br>browser-defaults, while in the public pages the styles are applied properly.<br><br>Firebug allows to change the loaded code on the fly. By fixing the urls, <br>I get some style afterwards. Not everything, to fix this may be yet <br>another issue when I have solved the basic one.<br><br>We have different hosts for insecure and secure connections, and <br>different http(s)_roots too: https requires loading from a subpath on <br>another vhost, while http is served directly from the official domain. <br>This setup seems to be too exotic for the current implementation. <br>Because EPrints urls are variadic in regard to hierarchy depth, the <br>paths cannot be indicated relative or absolute-on-same-domain in the <br>template (at least not without dirty methods asking for trouble).<br><br>If the default.xml vs. secure.xml template distinction is deprecated, I <br>didn't find a hint in the changelogs. As a work-around I considered to <br>define a different $config{base_url} when the connection is secure, but <br>in cfg.d/session.pl file, can't I use $session-&gt;get_secure to get a <br>session-restricted base_url for template rendering?<br><br>Following has no effect:<br><br>$c-&gt;{session_init} = sub {<br> &nbsp;&nbsp;&nbsp;&nbsp;my ($session, $offline) = @_;<br> &nbsp;&nbsp;&nbsp;&nbsp;$c-&gt;{base_url} = $c-&gt;{https_root} if $session-&gt;get_secure;<br>};<br><br><br>Kind regards<br>Florian<br><br>-- <br>UB Heidelberg (Altstadt)<br>Plöck 107-109, 69117 HD<br>Abt. Informationstechnik<br><a href="http://www.ub.uni-heidelberg.de/">http://www.ub.uni-heidelberg.de/</a><br><br>*** Options: http://mailman.ecs.soton.ac.uk/mailman/listinfo/eprints-tech<br>*** Archive: http://www.eprints.org/tech.php/<br>*** EPrints community wiki: http://wiki.eprints.org/<br>*** EPrints developers Forum: http://forum.eprints.org/<br></blockquote></div><br></div></body></html>