<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<meta name="Generator" content="Microsoft Word 15 (filtered medium)">
<!--[if !mso]><style>v\:* {behavior:url(#default#VML);}
o\:* {behavior:url(#default#VML);}
w\:* {behavior:url(#default#VML);}
.shape {behavior:url(#default#VML);}
</style><![endif]--><style><!--
/* Font Definitions */
@font-face
        {font-family:"Cambria Math";
        panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
        {font-family:Consolas;
        panose-1:2 11 6 9 2 2 4 3 2 4;}
@font-face
        {font-family:Verdana;
        panose-1:2 11 6 4 3 5 4 4 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0cm;
        margin-bottom:.0001pt;
        font-size:12.0pt;
        font-family:"Times New Roman",serif;}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {mso-style-priority:99;
        color:purple;
        text-decoration:underline;}
p
        {mso-style-priority:99;
        mso-margin-top-alt:auto;
        margin-right:0cm;
        mso-margin-bottom-alt:auto;
        margin-left:0cm;
        font-size:12.0pt;
        font-family:"Times New Roman",serif;}
pre
        {mso-style-priority:99;
        mso-style-link:"HTML Preformatted Char";
        margin:0cm;
        margin-bottom:.0001pt;
        font-size:10.0pt;
        font-family:"Courier New";}
span.HTMLPreformattedChar
        {mso-style-name:"HTML Preformatted Char";
        mso-style-priority:99;
        mso-style-link:"HTML Preformatted";
        font-family:Consolas;
        mso-fareast-language:EN-GB;}
span.EmailStyle20
        {mso-style-type:personal-reply;
        font-family:"Calibri",sans-serif;
        color:#1F497D;}
.MsoChpDefault
        {mso-style-type:export-only;
        mso-fareast-language:EN-US;}
@page WordSection1
        {size:612.0pt 792.0pt;
        margin:72.0pt 72.0pt 72.0pt 72.0pt;}
div.WordSection1
        {page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]-->
</head>
<body lang="EN-GB" link="blue" vlink="purple">
<div class="WordSection1">
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,sans-serif;color:#1F497D;mso-fareast-language:EN-US">Hi Fran,<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,sans-serif;color:#1F497D;mso-fareast-language:EN-US">Taking a quick look at the code, I think the issue is that in the CRUD module, there are a couple of instances where the 'sword_error'
 is called as a raw function , rather than an object method e.g.:<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,sans-serif;color:#1F497D;mso-fareast-language:EN-US">Normal working:<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,sans-serif;color:#1F497D;mso-fareast-language:EN-US"><a href="https://emea01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Feprints%2Feprints%2Fblob%2F3.3%2Fperl_lib%2FEPrints%2FApache%2FCRUD.pm%23L432-L436&amp;data=01%7C01%7Ceprints-tech%40ecs.soton.ac.uk%7C36d547bcf4b147ffebe108d674b636bc%7C4a5378f929f44d3ebe89669d03ada9d8%7C1&amp;sdata=ZIxyUo8RxHBwwd2CR44aCtakHCPqHEfwu7%2BpetWEftI%3D&amp;reserved=0" originalSrc="https://github.com/eprints/eprints/blob/3.3/perl_lib/EPrints/Apache/CRUD.pm#L432-L436" shash="zAX/wAqKzeE0jTAODmxBCDcU1tlfWsHxCBk3lY6G87ZgnGo4z4PTlqLhOgZ1hOpZTuug4bXgzKPEVNRQmMu80HDtTd8tPf75GFJDGfPyMfp/iEqlkpD+JjU5BTmVXnF/JMipR+V2U62MpCehHvLmPBAT6api43+OmAkM5/5wu5E=">https://github.com/eprints/eprints/blob/3.3/perl_lib/EPrints/Apache/CRUD.pm#L432-L436</a><o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,sans-serif;color:#1F497D;mso-fareast-language:EN-US"><o:p>&nbsp;</o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,sans-serif;color:#1F497D;mso-fareast-language:EN-US">Function call in servicedocument function:<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,sans-serif;color:#1F497D;mso-fareast-language:EN-US">https://github.com/eprints/eprints/blob/3.3/perl_lib/EPrints/Apache/CRUD.pm#L1742-L1745
<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,sans-serif;color:#1F497D;mso-fareast-language:EN-US">and 'on_behalf_of' function:<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,sans-serif;color:#1F497D;mso-fareast-language:EN-US"><a href="https://emea01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Feprints%2Feprints%2Fblob%2F3.3%2Fperl_lib%2FEPrints%2FApache%2FCRUD.pm%23L1838-L1862&amp;data=01%7C01%7Ceprints-tech%40ecs.soton.ac.uk%7C36d547bcf4b147ffebe108d674b636bc%7C4a5378f929f44d3ebe89669d03ada9d8%7C1&amp;sdata=xZ9ff3eSPhFwHFHWzax5OawV4i1yVoeIYrs2800Bqng%3D&amp;reserved=0" originalSrc="https://github.com/eprints/eprints/blob/3.3/perl_lib/EPrints/Apache/CRUD.pm#L1838-L1862" shash="DUF0TXEdYkReObfhA+JT1bzAkFT9laMmbcM/koRlFMhh+hFnRkrUbEml3Y834Q0EM//OAz6MP8BdmzXNNUxmmc6Fsu+R3h7apyM2B7pMmXsJHLFC3lZ7lp7GzER+w1WqTepp2QZKWuO/rL+o0P2gz5ScqxG8x4EiDDmmHhHjw5Y=">https://github.com/eprints/eprints/blob/3.3/perl_lib/EPrints/Apache/CRUD.pm#L1838-L1862</a><o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,sans-serif;color:#1F497D;mso-fareast-language:EN-US"><o:p>&nbsp;</o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,sans-serif;color:#1F497D;mso-fareast-language:EN-US">This issue will only become apparent when you're doing a SWORD deposit using the 'on-behalf-of' header.<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,sans-serif;color:#1F497D;mso-fareast-language:EN-US">I think it may have been present for ~7 years, when the first line of the sword_error function was changed from
<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,sans-serif;color:#1F497D;mso-fareast-language:EN-US">my( $repo, $r, %opts ) = @_;
<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,sans-serif;color:#1F497D;mso-fareast-language:EN-US">to<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,sans-serif;color:#1F497D;mso-fareast-language:EN-US">my( $self, %opts ) = @_;
<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,sans-serif;color:#1F497D;mso-fareast-language:EN-US"><o:p>&nbsp;</o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,sans-serif;color:#1F497D;mso-fareast-language:EN-US">I think it's more than a 5-minute job to fix properly - I need to get into the code a bit more to understand what was changed - and
 how to resolve it.<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,sans-serif;color:#1F497D;mso-fareast-language:EN-US"><o:p>&nbsp;</o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,sans-serif;color:#1F497D;mso-fareast-language:EN-US">I'll log it in GitHub and let you know try and come up with a solution - unless anyone else fancies having a&nbsp; go..?<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,sans-serif;color:#1F497D;mso-fareast-language:EN-US"><o:p>&nbsp;</o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,sans-serif;color:#1F497D;mso-fareast-language:EN-US">Cheers,<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,sans-serif;color:#1F497D;mso-fareast-language:EN-US">John<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,sans-serif;color:#1F497D;mso-fareast-language:EN-US"><o:p>&nbsp;</o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,sans-serif;color:#1F497D;mso-fareast-language:EN-US"><o:p>&nbsp;</o:p></span></p>
<p class="MsoNormal"><b><span lang="EN-US" style="font-size:11.0pt;font-family:&quot;Calibri&quot;,sans-serif">From:</span></b><span lang="EN-US" style="font-size:11.0pt;font-family:&quot;Calibri&quot;,sans-serif"> eprints-tech-bounces@ecs.soton.ac.uk [mailto:eprints-tech-bounces@ecs.soton.ac.uk]
<b>On Behalf Of </b>Fran Callaghan via Eprints-tech<br>
<b>Sent:</b> 07 January 2019 14:50<br>
<b>To:</b> eprints-tech@ecs.soton.ac.uk<br>
<b>Subject:</b> [EP-tech] Error whilst depositing via SWORD<o:p></o:p></span></p>
<p class="MsoNormal"><o:p>&nbsp;</o:p></p>
<div>
<div>
<p class="MsoNormal">Hi All,<o:p></o:p></p>
<div>
<p class="MsoNormal"><o:p>&nbsp;</o:p></p>
</div>
<div>
<p class="MsoNormal">We have a third party depositing via SWORD. They're getting a generic 500 message back but when I lookup the error_log corresponding to the time of the test I can see this message...<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal"><o:p>&nbsp;</o:p></p>
</div>
<div>
<div>
<p class="MsoNormal">[Mon Jan 07 13:46:18.179171 2019] [perl:error] [pid 10713] [client X.X.X.X] Can't locate object method &quot;repository&quot; via package &quot;EPrints::Repository&quot; at /opt/eprints3/perl_lib/EPrints/Apache/CRUD.pm line 1977.\n<o:p></o:p></p>
</div>
</div>
<div>
<p class="MsoNormal"><o:p>&nbsp;</o:p></p>
</div>
<div>
<p class="MsoNormal">Any ideas what's wrong with CRUD.pm? Or is it a problem with the syntax of the deposit? I had expected SWORD to be pretty much plug and play (actually not even 'plug' since the documentation says it is configured by default).<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal"><o:p>&nbsp;</o:p></p>
</div>
<div>
<p class="MsoNormal">**NOTE: I have X'd out the client IP address, it's a genuine IP in the original message<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal"><o:p>&nbsp;</o:p></p>
</div>
<div>
<p class="MsoNormal">Thanks all,<o:p></o:p></p>
</div>
<div>
<div>
<div>
<div>
<div>
<div>
<div>
<p class="MsoNormal">Fran Callaghan<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal"><o:p>&nbsp;</o:p></p>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
<p class="MsoNormal"><o:p>&nbsp;</o:p></p>
<p style="background:white"><b><i><span style="font-size:7.5pt;font-family:&quot;Verdana&quot;,sans-serif;color:#929292">Séanadh Ríomhphoist/Email Disclaimer</span></i></b><i><span style="font-size:10.0pt;font-family:&quot;Courier New&quot;"><o:p></o:p></span></i></p>
<p style="background:white"><b><i><span style="font-size:7.5pt;font-family:&quot;Verdana&quot;,sans-serif;color:#929292">Tá an ríomhphost seo agus aon chomhad a sheoltar leis faoi rún agus is lena úsáid ag an seolaí agus sin amháin é.
<a href="https://emea01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fwww4.dcu.ie%2Fiss%2Fseanadh-riomhphoist.shtml&amp;data=01%7C01%7Ceprints-tech%40ecs.soton.ac.uk%7C36d547bcf4b147ffebe108d674b636bc%7C4a5378f929f44d3ebe89669d03ada9d8%7C1&amp;sdata=KUVHgyM5pc0Hg7jkV2Lhvp9iaEQsXgk3XWNF4kbTy18%3D&amp;reserved=0" originalSrc="https://www4.dcu.ie/iss/seanadh-riomhphoist.shtml" shash="Ge9/7JbBwkCw/UspVNz76hTJrFIDVFEyGFXLkUDW+Yvc+/M6uL5UPXwW+PZck2+o/UFqnaM44PET+uPIjpBC8MLUi1fHI4nGVGDFHtE85HX0cTEtQeYyaWgTlIW525leHd4nob1C0VYP/sLGIFJKSqmEVWsGPRZp86XHNtzMq8U=" target="_blank">
Is féidir tuilleadh a léamh anseo.&nbsp;</a></span></i></b><i><span style="font-size:10.0pt;font-family:&quot;Courier New&quot;"><o:p></o:p></span></i></p>
<p style="background:white"><b><i><span style="font-size:7.5pt;font-family:&quot;Verdana&quot;,sans-serif;color:#929292">This e-mail and any files transmitted with it are confidential and are intended solely for use by the addressee.
<a href="https://emea01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fwww4.dcu.ie%2Fiss%2Femail-disclaimer.shtml&amp;data=01%7C01%7Ceprints-tech%40ecs.soton.ac.uk%7C36d547bcf4b147ffebe108d674b636bc%7C4a5378f929f44d3ebe89669d03ada9d8%7C1&amp;sdata=nKmmbgnHjVM3fqejN%2FRdH0j7aR5HfcA8nWDCHtzPqVY%3D&amp;reserved=0" originalSrc="https://www4.dcu.ie/iss/email-disclaimer.shtml" shash="sGO+O98q8pqyFskq8JWtOmHGVblSBGfn5CgIeOqQsqMlg9kbxdWNKU4nmnLh80iDEnZ2teIxqG5UpjBii52YctzcZwzTXzwHxU/Fqu9Koc4Ow+1/cAIQfuiQtM6c5SZm2u7z7IVOleIBUxSqZu/3CSv1KUUWf40qxcig/43RGhw=" target="_blank">
Read more here.</a></span></i></b><i><span style="font-size:10.0pt;font-family:&quot;Courier New&quot;"><o:p></o:p></span></i></p>
<div>
<pre style="background:white"><i><span style="font-size:7.5pt;font-family:&quot;Verdana&quot;,sans-serif;color:#929292"><o:p>&nbsp;</o:p></span></i></pre>
</div>
<div>
<pre style="background:white"><i><span style="font-size:7.5pt;font-family:&quot;Verdana&quot;,sans-serif;color:#929292"><o:p>&nbsp;</o:p></span></i></pre>
</div>
<p class="MsoNormal"><br>
<span style="border:solid windowtext 1.0pt;padding:0cm"><img border="0" width="100" height="100" id="_x0000_i1025" src="cid:~WRD239.jpg" alt="Image removed by sender."></span><o:p></o:p></p>
<div>
<p class="MsoNormal"><a href="https://emea01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fwww.facebook.com%2FDCU%2F&amp;data=01%7C01%7Ceprints-tech%40ecs.soton.ac.uk%7C36d547bcf4b147ffebe108d674b636bc%7C4a5378f929f44d3ebe89669d03ada9d8%7C1&amp;sdata=YJ4%2BmrPKhB3%2BHp4esDaR%2B8dx0W72Hl9U%2Bm2hGTejnrY%3D&amp;reserved=0" originalSrc="https://www.facebook.com/DCU/" shash="zbm8NCxevYafj29yYkIi2Yhei4hrF/q+rpgrB54u20QIrPTDtbz7Bmiux2NmDHA+njvE1ZsJtl5rkkrofMUSTkLdA6OuL1osy5AI2N9jR0li/m+FewlXTG1G8GSOw76qs9+PilRiOr6i+S5YCV7HdWTcCgLVjHTLl0OGM3Pxb80=" target="_blank"><span style="border:solid windowtext 1.0pt;padding:0cm;text-decoration:none"><img border="0" width="100" height="100" id="_x0000_i1026" src="cid:~WRD239.jpg" alt="Image removed by sender."></span></a><a href="https://emea01.safelinks.protection.outlook.com/?url=https%3A%2F%2Ftwitter.com%2FDublinCityUni&amp;data=01%7C01%7Ceprints-tech%40ecs.soton.ac.uk%7C36d547bcf4b147ffebe108d674b636bc%7C4a5378f929f44d3ebe89669d03ada9d8%7C1&amp;sdata=vgkMdGaUuRRpm6dEb4lReLD40K0bQ6h%2FvTWnoE8Ja4o%3D&amp;reserved=0" originalSrc="https://twitter.com/DublinCityUni" shash="QgrNsVoQUuu+mJYSOc1/qwfwqeMPEDdUtuVUWVjpJCGPdg6EAIoh/DPkjGghkPbrOLY/mC23gNkwZIXRsql0F8EOabh0LX5JOUoqNw2Rv5rzAH0jUe3VGPxD0/BSKCrdHXsKyddLzRXE5lDPmKf55WUmBDp0RwvGVsoT/FJAuE8=" target="_blank"><span style="border:solid windowtext 1.0pt;padding:0cm;text-decoration:none"><img border="0" width="100" height="100" id="_x0000_i1027" src="cid:~WRD239.jpg" alt="Image removed by sender."></span></a><a href="https://emea01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fwww.linkedin.com%2Fcompany%2Fdublin-city-university&amp;data=01%7C01%7Ceprints-tech%40ecs.soton.ac.uk%7C36d547bcf4b147ffebe108d674b636bc%7C4a5378f929f44d3ebe89669d03ada9d8%7C1&amp;sdata=HIV75K7upYhz4gD5Wv23B6GV4ZrYmEwX%2B05bM%2Bd243c%3D&amp;reserved=0" originalSrc="https://www.linkedin.com/company/dublin-city-university" shash="FgCLGUl0Yimpnf3X0yxSWQBkfQb7lv167IgX+W2093Fup3Lj8VXrYCHbeK6V0ndvjv4JD2yh2mbZ/S150x1ZkqjYJtGv7OxOIOH7SQFzaGroMWSo4pSuNHzBuUjagJMMlNqTMJlupQG7k1+05kjo5OybDvlcdOZQxsxfthy0lkk=" target="_blank"><span style="border:solid windowtext 1.0pt;padding:0cm;text-decoration:none"><img border="0" width="100" height="100" id="_x0000_i1028" src="cid:~WRD239.jpg" alt="Image removed by sender."></span></a><a href="https://emea01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fwww.instagram.com%2Fdublincityuniversity%2F%3Fhl%3Den&amp;data=01%7C01%7Ceprints-tech%40ecs.soton.ac.uk%7C36d547bcf4b147ffebe108d674b636bc%7C4a5378f929f44d3ebe89669d03ada9d8%7C1&amp;sdata=HRcuI42k1yPQSeXD6FYkCCaMqCPGKbj0%2BnNRhhwX1i4%3D&amp;reserved=0" originalSrc="https://www.instagram.com/dublincityuniversity/?hl=en" shash="zvIU0XrSpJqINI/n7qIMnFHPZx44ew/F+63NvU3hQNp1fZ+Qy2ZosHM3IiTzsw9qNwWFa3XbBHUhT8H/uXZluRcj0BD56PKV0WdB+y0PaD5TRDrN6tKOCEkNjTKpJP8BeBh5aowOGx7U8W/283xSuKpU0QnJ6YsOayPqVQlBmmE=" target="_blank"><span style="border:solid windowtext 1.0pt;padding:0cm;text-decoration:none"><img border="0" width="100" height="100" id="_x0000_i1029" src="cid:~WRD239.jpg" alt="Image removed by sender."></span></a><a href="https://emea01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fwww.youtube.com%2Fuser%2FDublinCityUniversity&amp;data=01%7C01%7Ceprints-tech%40ecs.soton.ac.uk%7C36d547bcf4b147ffebe108d674b636bc%7C4a5378f929f44d3ebe89669d03ada9d8%7C1&amp;sdata=aNeTnxUOlhk1tYPE2ZplDeWpevzXtL%2BNEoBIIk58kKA%3D&amp;reserved=0" originalSrc="https://www.youtube.com/user/DublinCityUniversity" shash="J0t/yAjiw+UZxzddaEC12hPZY2hlS6FHGhvwbTtmwQ+gsD9dR6+G1EDMWEJgGv3hn7E4ImYySm2+8HUIhA8yCmOQvvBu8zY7yZyxbjhrdczLv6eAGvsU6qkEBvZ35hSgxrHJeyXtBuFz34c3dEXOxM/PhnhWCFqeC0zhsYgZp70=" target="_blank"><span style="border:solid windowtext 1.0pt;padding:0cm;text-decoration:none"><img border="0" width="100" height="100" id="_x0000_i1030" src="cid:~WRD239.jpg" alt="Image removed by sender."></span></a><o:p></o:p></p>
</div>
</div>
</body>
</html>