<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<style type="text/css" style="display:none;"><!-- P {margin-top:0;margin-bottom:0;} --></style>
</head>
<body dir="ltr">
<div id="divtagdefaultwrapper" style="font-size:12pt;color:#000000;background-color:#FFFFFF;font-family:Calibri,Arial,Helvetica,sans-serif;">
<p>Hi folks,</p>
<p><br>
</p>
<p>found a bug in 3.2 which is fixed in 3.3 but posting here in case anyone else comes up against it as it's a bit of a random one and was causing two seemingly identical installs to behave differently.<br>
</p>
<p><br>
</p>
<p>The error looks something like:</p>
<p><br>
</p>
<p><span style="font-family: &quot;Courier New&quot;,monospace;">------------------------------------------------------------------</span><br style="font-family: &quot;Courier New&quot;,monospace;">
<span style="font-family: &quot;Courier New&quot;,monospace;">---------------- EPrints System Error ----------------------------</span><br style="font-family: &quot;Courier New&quot;,monospace;">
<span style="font-family: &quot;Courier New&quot;,monospace;">------------------------------------------------------------------</span><br style="font-family: &quot;Courier New&quot;,monospace;">
<span style="font-family: &quot;Courier New&quot;,monospace;">Can't copy /home/broker/ePrints/archives/eprints1/cfg/static to /home/broker/ePrints/archives/eprints1/html/en: Is a directory</span><br style="font-family: &quot;Courier New&quot;,monospace;">
<span style="font-family: &quot;Courier New&quot;,monospace;">------------------------------------------------------------------</span><br style="font-family: &quot;Courier New&quot;,monospace;">
<span style="font-family: &quot;Courier New&quot;,monospace;">&nbsp;at /home/broker/ePrints/perl_lib/EPrints/Update/Static.pm line 325, &lt;DATA&gt; line 151.</span><br style="font-family: &quot;Courier New&quot;,monospace;">
<span style="font-family: &quot;Courier New&quot;,monospace;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; EPrints::Update::Static::copy_plain('/home/broker/ePrints/archives/eprints1/cfg/static', '/home/broker/ePrints/archives/eprints1/html/en', 'HASH(0x34d27c0)') called at /home/broker/ePrints/perl_lib/EPrints/Update/Static.pm
 line 171</span><br style="font-family: &quot;Courier New&quot;,monospace;">
<span style="font-family: &quot;Courier New&quot;,monospace;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; EPrints::Update::Static::update_static_file('EPrints::Repository=HASH(0xa434c8)', 'en', '') called at /home/broker/ePrints/perl_lib/EPrints/Apache/Rewrite.pm line 568</span><br style="font-family: &quot;Courier New&quot;,monospace;">
<span style="font-family: &quot;Courier New&quot;,monospace;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; EPrints::Apache::Rewrite::handler('Apache2::RequestRec=SCALAR(0x3451f90)') called at -e line 0</span><br style="font-family: &quot;Courier New&quot;,monospace;">
<span style="font-family: &quot;Courier New&quot;,monospace;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; eval {...} called at -e line 0</span></p>
<p><br>
</p>
<p>the key bit is that its going from Apache::Rewrite to Update::Static and failing to copy onto the directory html/en<br>
</p>
<p><br>
</p>
<p>The error is a missing &quot;return OK&quot; in EPrints::Apache::Rewrite after ln 274</p>
<p><br>
</p>
<p>This is in the handling for '/sword-app' URLS. Because the return is missing it falls through to treating the url as a static file. But by this time the path is empty. So in EPrints::Update::Static it tries to look for the file and update it if it's been
 changed. But because the filename is empty it is doing a comparison between directories (the first of the static dirs and html/en) and if the static dir is older it will do nothing and all works. If the static dir is newer, it will try to do a copy of the
 dir and fail with the above error message.</p>
<p><br>
</p>
<p>As I said, fixed in 3.3 but couldn't see it documented anywhere.<br>
</p>
<p><br>
</p>
<p>Cheers,</p>
<p><br>
</p>
<p>Ray.</p>
<p><br>
</p>
</div>
</body>
</html>