<html><body>
<p><font size="2" face="sans-serif">Hi,</font><br>
<br>
<font size="2" face="sans-serif">just to bring up that topic again: perl_lib/EPrints/Apache/CRUD.pm should allow HEAD requests for https://{repo}/id/eprint/{xy}/ - that is why we wonder that EPrints returns a 404 ?</font><br>
<br>
<font size="2" face="sans-serif">We observe that not only with our repo, but with other EPrints repos as well, e.g. </font><br>
<br>
<font size="2" face="Menlo-Regular">curl "</font><a href="https://eur03.safelinks.protection.outlook.com/?url=https%3A%2F%2Fmadoc.bib.uni-mannheim.de%2Fid%2Feprint%2F3147%2F&data=01%7C01%7Ceprints-tech%40ecs.soton.ac.uk%7Cfff23f61b151468f3c6808d82e03cba4%7C4a5378f929f44d3ebe89669d03ada9d8%7C0&sdata=kBNkp%2BkGH%2FqDK9p1nHkPPPi4KJs3OqxzBHEYbrCH8Bs%3D&reserved=0" originalSrc="https://madoc.bib.uni-mannheim.de/id/eprint/3147/" shash="WWdPTAS1msKztJVH0nGR27RI7qHHId4XkA9i4wyzlV7andcoxQB0h2YCce3LaVov+nGkb+X5/p0SaPE+aiHy4u7R1ZDGAm5WKT5Y9re1lLQEwwy6iLQeRloAu4NZ/zuJ7ywNEluAVEFcuwdJ3ENOGOAhxCtrShEVQCTtngKL/14="><font size="2" face="Menlo-Regular">https://madoc.bib.uni-mannheim.de/id/eprint/3147/</font></a><font size="2" face="Menlo-Regular">" yields the page</font><br>
<font size="2" face="Menlo-Regular">curl --head "</font><a href="https://eur03.safelinks.protection.outlook.com/?url=https%3A%2F%2Fmadoc.bib.uni-mannheim.de%2Fid%2Feprint%2F3147%2F&data=01%7C01%7Ceprints-tech%40ecs.soton.ac.uk%7Cfff23f61b151468f3c6808d82e03cba4%7C4a5378f929f44d3ebe89669d03ada9d8%7C0&sdata=kBNkp%2BkGH%2FqDK9p1nHkPPPi4KJs3OqxzBHEYbrCH8Bs%3D&reserved=0" originalSrc="https://madoc.bib.uni-mannheim.de/id/eprint/3147/" shash="WWdPTAS1msKztJVH0nGR27RI7qHHId4XkA9i4wyzlV7andcoxQB0h2YCce3LaVov+nGkb+X5/p0SaPE+aiHy4u7R1ZDGAm5WKT5Y9re1lLQEwwy6iLQeRloAu4NZ/zuJ7ywNEluAVEFcuwdJ3ENOGOAhxCtrShEVQCTtngKL/14="><font size="2" face="Menlo-Regular">https://madoc.bib.uni-mannheim.de/id/eprint/3147/</font></a><font size="2" face="Menlo-Regular">" yields HTTP status 404!</font><br>
<br>
<font size="2" face="sans-serif">So this must be a general bug of EPrints and it is not working according to the specification in perl_lib/EPrints/Apache/CRUD.pm</font><br>
<br>
<font size="2" face="sans-serif">Kind regards,</font><br>
<br>
<font size="2" face="sans-serif">Martin</font><br>
<br>
<font size="2" face="sans-serif">--</font><br>
<font size="2" face="sans-serif">Dr. Martin Brändle</font><br>
<font size="2" face="sans-serif">Zentrale Informatik</font><br>
<font size="2" face="sans-serif">Universität Zürich</font><br>
<font size="2" face="sans-serif">Stampfenbachstr. 73</font><br>
<font size="2" face="sans-serif">CH-8006 Zürich</font><br>
<br>
<img width="16" height="16" src="cid:1__=4EBB0F3EDF8C2E718f9e8a93df9@lotus.uzh.ch" border="0" alt="Inactive hide details for "Martin Braendle via Eprints-tech" ---14.07.2020 14:12:41---Hi out there we're working on a linkcheck"><font size="2" color="#424282" face="sans-serif">"Martin Braendle via Eprints-tech" ---14.07.2020 14:12:41---Hi out there we're working on a linkchecker to remove all gone official and related</font><br>
<br>
<font size="1" color="#5F5F5F" face="sans-serif">Von:        </font><font size="1" face="sans-serif">"Martin Braendle via Eprints-tech" <eprints-tech@ecs.soton.ac.uk></font><br>
<font size="1" color="#5F5F5F" face="sans-serif">An:        </font><font size="1" face="sans-serif"><eprints-tech@ecs.soton.ac.uk></font><br>
<font size="1" color="#5F5F5F" face="sans-serif">Datum:        </font><font size="1" face="sans-serif">14.07.2020 14:12</font><br>
<font size="1" color="#5F5F5F" face="sans-serif">Betreff:        </font><font size="1" face="sans-serif">[EP-tech] Linkcheck: HEAD method ends up in 404</font><br>
<font size="1" color="#5F5F5F" face="sans-serif">Gesendet von:        </font><font size="1" face="sans-serif"><eprints-tech-bounces@ecs.soton.ac.uk></font><br>
<hr width="100%" size="2" align="left" noshade style="color:#8091A5; "><br>
<br>
<br>
<font size="2" face="sans-serif">Hi out there</font><font size="3" face="serif"><br>
</font><font size="2" face="sans-serif"><br>
we're working on a linkchecker to remove all gone official and related links in our Repo. Some of the URLs return to our own Repo and lickchecker gets an ugly 404 although the publications exist.</font><font size="3" face="serif"><br>
</font><font size="2" face="sans-serif"><br>
So, what we're doing is some LWP::UserAgent stuff, a simple get HEAD of the URL an then analyze the response. If there was a '$status_code == HTTP_METHOD_NOT_ALLOWED' we would try a GET and all together we're doing some delay/retry/timeout handling. But in the end we allways catch a 404 :-(</font><font size="3" face="serif"><br>
</font><font size="2" face="sans-serif"><br>
Additional information<br>
- We use a 404 handler<br>
- We're allowed to use Get, Put, Trace, Options - all fine, only HEAD method results in a 404 ?!? <br>
- We use the redirect from </font><a href="https://eur03.safelinks.protection.outlook.com/?url=https%3A%2F%2Fwww.zora.uzh.ch%2F1&data=01%7C01%7Ceprints-tech%40ecs.soton.ac.uk%7Cfff23f61b151468f3c6808d82e03cba4%7C4a5378f929f44d3ebe89669d03ada9d8%7C0&sdata=fM0GyDdSHXLoh54o3C7UNuPQZ%2BB49rSupGQAh4%2F5Ydk%3D&reserved=0" originalSrc="https://www.zora.uzh.ch/1" shash="CpQOvVnsc0Z7JUzwXKZX6YBFO5zQjlT6Wi7RrYecexV1IcycbzsMjMHKm+3Ua/ifJorKTipN/g4dN2F4y5oAau93z4HjM/qdw3kzDFM+kVVkXaKYFVtEXyR1QNnP/49LyWQcUquQmE3AU7oxLcMbKFK2U591dhbdoIaHwMWyhPY="><font size="2" color="#0000FF" face="sans-serif"><u>https://www.zora.uzh.ch/1</u></font></a><font size="2" face="sans-serif"> => </font><a href="https://eur03.safelinks.protection.outlook.com/?url=https%3A%2F%2Fwww.zora.uzh.ch%2Fid%2Feprint%2F1%2F&data=01%7C01%7Ceprints-tech%40ecs.soton.ac.uk%7Cfff23f61b151468f3c6808d82e03cba4%7C4a5378f929f44d3ebe89669d03ada9d8%7C0&sdata=mWKzNq571Y0B%2Bm5ETOV2UXWNJqaladVR27DYtB65Lxw%3D&reserved=0" originalSrc="https://www.zora.uzh.ch/id/eprint/1/" shash="Yx0r3HS4Pom6pFZ8vazU5bm/wO7tltH1SOoyI8dnKDdTw4YNHpU7yZY38Z2aFOZbLDe2SL4aYCooNJd0T/QhMFeYYmuP+Jn9yx1SpgyodC7dgImQNr1MR0RpPuCuuRckPFJI752czn3OPBiBZAHnvJsLHHWgJDbeDzJjpPTkMSs="><font size="2" color="#0000FF" face="sans-serif"><u>https://www.zora.uzh.ch/id/eprint/1/</u></font></a><font size="2" face="sans-serif"> and it only seems to concern this dynamic type of content; static pages work fine.</font><font size="3" face="serif"><br>
</font><font size="2" face="sans-serif"><br>
Let's show some examples via CURL:</font><font size="3" face="serif"><br>
</font><font size="2" face="sans-serif"><br>
[zora]$ </font><font size="2" face="sans-serif"><b>curl -i -X HEAD -L "</b></font><a href="https://eur03.safelinks.protection.outlook.com/?url=https%3A%2F%2Fwww.zora.uzh.ch%2F1&data=01%7C01%7Ceprints-tech%40ecs.soton.ac.uk%7Cfff23f61b151468f3c6808d82e03cba4%7C4a5378f929f44d3ebe89669d03ada9d8%7C0&sdata=fM0GyDdSHXLoh54o3C7UNuPQZ%2BB49rSupGQAh4%2F5Ydk%3D&reserved=0" originalSrc="https://www.zora.uzh.ch/1" shash="CpQOvVnsc0Z7JUzwXKZX6YBFO5zQjlT6Wi7RrYecexV1IcycbzsMjMHKm+3Ua/ifJorKTipN/g4dN2F4y5oAau93z4HjM/qdw3kzDFM+kVVkXaKYFVtEXyR1QNnP/49LyWQcUquQmE3AU7oxLcMbKFK2U591dhbdoIaHwMWyhPY="><font size="2" color="#0000FF" face="sans-serif"><b><u>https://www.zora.uzh.ch/1</u></b></font></a><font size="2" face="sans-serif"><b>" (</b></font><a href="https://eur03.safelinks.protection.outlook.com/?url=https%3A%2F%2Fwww.zora.uzh.ch%2F1%27&data=01%7C01%7Ceprints-tech%40ecs.soton.ac.uk%7Cfff23f61b151468f3c6808d82e03cba4%7C4a5378f929f44d3ebe89669d03ada9d8%7C0&sdata=FtosU%2FnC1gociBnbiCOaGKApmeUBhQVQwkP%2BK0x8j3M%3D&reserved=0" originalSrc="https://www.zora.uzh.ch/1'" shash="p2B4M4828/7FAagC83zhf01yhYrBplnbPZCpzTqgCcVwOIF9Ojy7ZYeTdJKcPYebcQ8pwQl4nElz+xbq1cPVOBWy+R1ah6WVEgQFVy4EbNOZLzrPzq+eRpk6DmoBodGV9d1XFixh0RFT8tGRY8f/9+9PhAa57dBafsw/ybK2Aj4="><font size="2" color="#0000FF" face="sans-serif"><b><u>https://www.zora.uzh.ch/1'</u></b></font></a><font size="2" face="sans-serif"><b>) <br>
HTTP/1.1 303 See Other</b></font><font size="2" face="sans-serif"><br>
Date: Tue, 14 Jul 2020 11:49:08 GMT<br>
Server: Apache/2.4.6 (Red Hat Enterprise Linux) OpenSSL/1.0.2k-fips mod_perl/2.0.11 Perl/v5.16.3<br>
Location: /id/eprint/1</font><font size="3" face="serif"><br>
</font><font size="2" face="sans-serif"><br>
HTTP/1.1 303 See Other<br>
Date: Tue, 14 Jul 2020 11:49:13 GMT<br>
Server: Apache/2.4.6 (Red Hat Enterprise Linux) OpenSSL/1.0.2k-fips mod_perl/2.0.11 Perl/v5.16.3<br>
Allow: GET,HEAD,PUT,OPTIONS<br>
Location: </font><a href="https://eur03.safelinks.protection.outlook.com/?url=https%3A%2F%2Fwww.zora.uzh.ch%2Fid%2Feprint%2F1%2F&data=01%7C01%7Ceprints-tech%40ecs.soton.ac.uk%7Cfff23f61b151468f3c6808d82e03cba4%7C4a5378f929f44d3ebe89669d03ada9d8%7C0&sdata=mWKzNq571Y0B%2Bm5ETOV2UXWNJqaladVR27DYtB65Lxw%3D&reserved=0" originalSrc="https://www.zora.uzh.ch/id/eprint/1/" shash="Yx0r3HS4Pom6pFZ8vazU5bm/wO7tltH1SOoyI8dnKDdTw4YNHpU7yZY38Z2aFOZbLDe2SL4aYCooNJd0T/QhMFeYYmuP+Jn9yx1SpgyodC7dgImQNr1MR0RpPuCuuRckPFJI752czn3OPBiBZAHnvJsLHHWgJDbeDzJjpPTkMSs="><font size="2" color="#0000FF" face="sans-serif"><u>https://www.zora.uzh.ch/id/eprint/1/</u></font></a><font size="2" face="sans-serif"><br>
Strict-Transport-Security: max-age=15780000</font><font size="3" face="serif"><br>
</font><font size="2" face="sans-serif"><b><br>
HTTP/1.1 404 Not Found</b></font><font size="2" face="sans-serif"><br>
Date: Tue, 14 Jul 2020 11:49:18 GMT<br>
Server: Apache/2.4.6 (Red Hat Enterprise Linux) OpenSSL/1.0.2k-fips mod_perl/2.0.11 Perl/v5.16.3<br>
Cache-Control: no-store, no-cache, must-revalidate<br>
Strict-Transport-Security: max-age=15780000<br>
Content-Type: text/html; charset=utf-8</font><font size="3" face="serif"><br>
<br>
<br>
</font><font size="2" face="sans-serif"><br>
[zora]$ </font><font size="2" face="sans-serif"><b>curl -i -X HEAD -L "</b></font><a href="https://eur03.safelinks.protection.outlook.com/?url=https%3A%2F%2Fwww.zora.uzh.ch%2F&data=01%7C01%7Ceprints-tech%40ecs.soton.ac.uk%7Cfff23f61b151468f3c6808d82e03cba4%7C4a5378f929f44d3ebe89669d03ada9d8%7C0&sdata=NAM7nGxnBjCUehzT76Enr1ZT5bRMwAcigePSCEIaY7w%3D&reserved=0" originalSrc="https://www.zora.uzh.ch/" shash="u39nLVw6GTULRX85diFDT/5MDMh6BcOue0GTGVYpo0vs/PWXYCMIzflAvObV29Ttr/g0EsrVlbqkiQ5gZLUVo2XY3KNIk8c5v89YBcnX/Vq7clcMBAdNmoKkRtzPx89cLkzRAfJbAOfvCFK3NkH9EkXAfdi+IWU5Yrrid+0/Ob0="><font size="2" color="#0000FF" face="sans-serif"><b><u>https://www.zora.uzh.ch/</u></b></font></a><font size="2" face="sans-serif"><b>" (</b></font><a href="https://eur03.safelinks.protection.outlook.com/?url=https%3A%2F%2Fwww.zora.uzh.ch%2F%27&data=01%7C01%7Ceprints-tech%40ecs.soton.ac.uk%7Cfff23f61b151468f3c6808d82e03cba4%7C4a5378f929f44d3ebe89669d03ada9d8%7C0&sdata=kRRV4wWHlDmgFap%2FXAAj4RryYH7%2Bx8DXZ2n4oqGI7Q0%3D&reserved=0" originalSrc="https://www.zora.uzh.ch/'" shash="o/ZNt7HwBSSrDNOzl1IHPS0WPlRr9rul3ftq6PpfIlU6U4484+NWAgJUfDj+jWFAKbCt9fsWGZ0yL1Jvu8AWLPDSJVRZmustTeKMBn22rCRYXyPHiaJOD/8K+ERt1jJihAxwHwx3L8l+FVs5TzN0vsmAhsIqHG3tPdARBfKr8lM="><font size="2" color="#0000FF" face="sans-serif"><b><u>https://www.zora.uzh.ch/'</u></b></font></a><font size="2" face="sans-serif"><b>) <br>
HTTP/1.1 200 OK</b></font><font size="2" face="sans-serif"><br>
Date: Tue, 14 Jul 2020 11:49:31 GMT<br>
Server: Apache/2.4.6 (Red Hat Enterprise Linux) OpenSSL/1.0.2k-fips mod_perl/2.0.11 Perl/v5.16.3<br>
Expires: Thu, 13 Aug 2020 11:49:31 GMT<br>
Cache-Control: no-store, no-cache, must-revalidate<br>
Vary: Accept-Encoding<br>
Strict-Transport-Security: max-age=15780000<br>
Content-Type: text/html; charset=utf-8</font><font size="3" face="serif"><br>
<br>
<br>
</font><font size="2" face="sans-serif"><br>
[zora]$ </font><font size="2" face="sans-serif"><b>curl -i -X HEAD -L "</b></font><a href="https://eur03.safelinks.protection.outlook.com/?url=https%3A%2F%2Fwww.zora.uzh.ch%2Fhelp%2F&data=01%7C01%7Ceprints-tech%40ecs.soton.ac.uk%7Cfff23f61b151468f3c6808d82e03cba4%7C4a5378f929f44d3ebe89669d03ada9d8%7C0&sdata=nHj10nQ5K8GkB6xNy65ZHMNCQQ3%2BfX1UiU%2F5zUA2BDQ%3D&reserved=0" originalSrc="https://www.zora.uzh.ch/help/" shash="hrdPHuvk/dNmuTxC1lxlNZsIH6FJwq22e5KJrsI0vNNVWp7NpxiHGGDu3Ux/HGG+TKyKz47w7ckMSLOxSdM0cdShrS7zvpouFKnMPtiMm8lqz/WRALrQld81LIUt/kIA1eEx+m4lnyw10gZ45qn//oo4hSogDug102j0IjZCR3E="><font size="2" color="#0000FF" face="sans-serif"><b><u>https://www.zora.uzh.ch/help/</u></b></font></a><font size="2" face="sans-serif"><b>" (</b></font><a href="https://eur03.safelinks.protection.outlook.com/?url=https%3A%2F%2Fwww.zora.uzh.ch%2Fhelp%2F%27&data=01%7C01%7Ceprints-tech%40ecs.soton.ac.uk%7Cfff23f61b151468f3c6808d82e03cba4%7C4a5378f929f44d3ebe89669d03ada9d8%7C0&sdata=D7mge6t6nL9ri8%2BVW%2FHDlCCIIg6oQICiheKmBhlOLXw%3D&reserved=0" originalSrc="https://www.zora.uzh.ch/help/'" shash="oI51Q8o2NneYGpIb/OXqB4NgharAji9c+6ghPk7IWN7TunXgghAb1Dwq7lLb91A6dU10p5atwsFGr08uRLdzxegvsjwDCVsHGAVpdvzeK7ohtAMhPtUYlJ4nAMF0NRoaBSOmFV6sA+9bziISJs6UyCWTkKo0jvhZo7WpFUjWmSc="><font size="2" color="#0000FF" face="sans-serif"><b><u>https://www.zora.uzh.ch/help/'</u></b></font></a><font size="2" face="sans-serif"><b>) <br>
HTTP/1.1 200 OK</b></font><font size="2" face="sans-serif"><br>
Date: Tue, 14 Jul 2020 11:49:53 GMT<br>
Server: Apache/2.4.6 (Red Hat Enterprise Linux) OpenSSL/1.0.2k-fips mod_perl/2.0.11 Perl/v5.16.3<br>
Expires: Thu, 13 Aug 2020 11:49:53 GMT<br>
Cache-Control: no-store, no-cache, must-revalidate<br>
Vary: Accept-Encoding<br>
Strict-Transport-Security: max-age=15780000<br>
Content-Type: text/html; charset=utf-8</font><font size="3" face="serif"><br>
<br>
</font><font size="2" face="sans-serif"><br>
Does anybody has any suggestion, solution, hint? <br>
<br>
Kind gerads from Zürich<br>
Martin & Jens</font><font size="3" face="serif"><br>
</font><tt><font size="2">*** Options: </font></tt><tt><font size="2"><a href="http://mailman.ecs.soton.ac.uk/mailman/listinfo/eprints-tech">http://mailman.ecs.soton.ac.uk/mailman/listinfo/eprints-tech</a></font></tt><tt><font size="2"><br>
*** Archive: </font></tt><tt><font size="2"><a href="https://eur03.safelinks.protection.outlook.com/?url=http%3A%2F%2Fwww.eprints.org%2Ftech.php%2F&data=01%7C01%7Ceprints-tech%40ecs.soton.ac.uk%7Cfff23f61b151468f3c6808d82e03cba4%7C4a5378f929f44d3ebe89669d03ada9d8%7C0&sdata=QWuaijzSDUEii60qYwGI6Y%2Fpg58VCwv6jNyNxyCVeU0%3D&reserved=0" originalSrc="http://www.eprints.org/tech.php/" shash="Cqtqg6w+GKuJoC4HNiF3e9FBw1/oXNOGGcSeKnLJLhJotc16gA/OcOvKB4zPm1JLKGoSXkPKjQIe6UyU+LJJ7ERqog795S9tRsMVS4IfRqT9oijmnct8R+2a/BSBulfG5FzUoqkNK3UaM+d5+0aklz2/+5XuKZshHskeU9w6uA8=">http://www.eprints.org/tech.php/</a></font></tt><tt><font size="2"><br>
*** EPrints community wiki: </font></tt><tt><font size="2"><a href="https://eur03.safelinks.protection.outlook.com/?url=http%3A%2F%2Fwiki.eprints.org%2F&data=01%7C01%7Ceprints-tech%40ecs.soton.ac.uk%7Cfff23f61b151468f3c6808d82e03cba4%7C4a5378f929f44d3ebe89669d03ada9d8%7C0&sdata=u2BDmuZsVrC%2FF%2BWMzJfWM96lFr88UmEHb0hCwHV%2BeWs%3D&reserved=0" originalSrc="http://wiki.eprints.org/" shash="cUEQDlSxh/zowDDbbIyTrizOqT27AcndIwM8m083ZMo5z1QkAo1a3zT6PdmVMh1Uv+LN+WOq4XXtJfM/cahl1CNnyZq1c0/4HfjEnuFKQBOPjhWe/+HzxHIiLAEXjYBofViQJdMKnjfPe0YuCkdUxFfYcKfCNaXNHSc16088z8E=">http://wiki.eprints.org/</a></font></tt><br>
<br>
</body></html>