<div dir="ltr"><div>Laney, et al.</div><div><br></div><div>Has there been anything done with this situation? A user here was attempting to transfer resource from repo 2 to repo 8, but we're getting an assertion failed error in the log.<br></div><div><br></div><div><pre><code class="gmail-hljs gmail-ada">{
<span class="gmail-hljs-string">"error"</span>: <span class="gmail-hljs-string">"ASSERTION FAILED: </span><span class="gmail-hljs-string">{SNIP} has a repo_id of 8 but the active repository is 2"</span>
}</code></pre></div><div>This transfer is working on some resources, but not others, it does not seem to be related to the size of the resources. We are getting the same error in the log if this is done either through the frontend or via the api. Could this be the same problem that Trevor reported in this thread in 2017. We are on v2.7.0.<br></div><div><br></div><div>Thanks, <br></div><div><br></div><div>Don<br></div><div><br></div><div><div><div dir="ltr" class="gmail_signature" data-smartmail="gmail_signature"><div dir="ltr"><font face="verdana, sans-serif">Donald R. Mennerich, </font><span style="font-family:verdana,sans-serif">digital archivist</span><div><font face="verdana, sans-serif">New York University Libraries</font></div><div><font face="verdana, sans-serif"><a href="mailto:don.mennerich@nyu.edu" target="_blank">don.mennerich@nyu.edu</a> (212) 992-6264<br></font><div><font face="verdana, sans-serif"><br></font></div></div></div></div></div><br></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Mon, Jun 26, 2017 at 9:23 AM Laney McGlohon <<a href="mailto:laney.mcglohon@lyrasis.org">laney.mcglohon@lyrasis.org</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
<div bgcolor="white" lang="EN-US">
<div class="gmail-m_-8251541465336082082WordSection1">
<p class="MsoNormal"><span style="font-size:11pt;font-family:Calibri">Hey Trevor,<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11pt;font-family:Calibri"><u></u> <u></u></span></p>
<p class="MsoNormal"><span style="font-size:11pt;font-family:Calibri">We need to change and use sessions instead of cookies for transferring large resources.<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11pt;font-family:Calibri">I have added comment from StackOverflow (my favorite source) to the JIRA ticket,<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11pt;font-family:Calibri"><u></u> <u></u></span></p>
<p class="MsoNormal"><span style="font-size:11pt;font-family:Calibri">Here it is again:<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11pt;font-family:Calibri"><u></u> <u></u></span></p>
<p class="MsoNormal"><span style="font-size:11pt;font-family:Calibri">Rails cookies are limited to 4KB. Note that the sessions is also stored in the cookie in the default configuration. See: <a href="http://guides.rubyonrails.org/security.html#session-storage" target="_blank">http://guides.rubyonrails.org/security.html#session-storage</a><u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11pt;font-family:Calibri">The only thing you can do about that: Do not store big objects in the cookie. Store them in the database and then only store the object's id in the cookie.<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11pt;font-family:Calibri">This answer might also be interesting to you: <a href="https://stackoverflow.com/a/4604212/2483313" target="_blank">https://stackoverflow.com/a/4604212/2483313</a><u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11pt;font-family:Calibri"> <u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11pt;font-family:Calibri">Laney<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11pt;font-family:Calibri"><u></u> <u></u></span></p>
<p class="MsoNormal"><span style="font-size:11pt;font-family:Calibri"><u></u> <u></u></span></p>
<div>
<p class="MsoNormal"><b><span style="font-size:11pt;font-family:Calibri;color:black">Laney McGlohon</span></b><span style="font-size:11pt;font-family:Calibri;color:black"><u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11pt;font-family:Calibri;color:black">ArchivesSpace Tech Lead<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11pt;font-family:Calibri;color:black"><a href="mailto:laney.mcglohon@lyrasis.org" target="_blank"><span style="color:rgb(5,99,193)">laney.mcglohon@lyrasis.org</span></a><u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11pt;font-family:Calibri;color:black">800.999.8558 x2927<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11pt;font-family:Calibri;color:black">laneymcglohon Skype<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11pt;font-family:Calibri;color:black"><u></u> <u></u></span></p>
</div>
<p class="MsoNormal"><span style="font-size:11pt;font-family:Calibri"><u></u> <u></u></span></p>
<p class="MsoNormal"><span style="font-size:11pt;font-family:Calibri"><u></u> <u></u></span></p>
<div style="border-color:rgb(181,196,223) currentcolor currentcolor;border-style:solid none none;border-width:1pt medium medium;padding:3pt 0in 0in">
<p class="MsoNormal"><b><span style="font-family:Calibri;color:black">From: </span>
</b><span style="font-family:Calibri;color:black"><<a href="mailto:archivesspace_users_group-bounces@lyralists.lyrasis.org" target="_blank">archivesspace_users_group-bounces@lyralists.lyrasis.org</a>> on behalf of Trevor Thornton <<a href="mailto:trthorn2@ncsu.edu" target="_blank">trthorn2@ncsu.edu</a>><br>
<b>Reply-To: </b>Archivesspace Users Group <<a href="mailto:archivesspace_users_group@lyralists.lyrasis.org" target="_blank">archivesspace_users_group@lyralists.lyrasis.org</a>><br>
<b>Date: </b>Friday, June 23, 2017 at 10:21 AM<br>
<b>To: </b>Archivesspace Users Group <<a href="mailto:archivesspace_users_group@lyralists.lyrasis.org" target="_blank">archivesspace_users_group@lyralists.lyrasis.org</a>><br>
<b>Subject: </b>[Archivesspace_Users_Group] Trouble transferring resource<u></u><u></u></span></p>
</div>
<div>
<p class="MsoNormal"><u></u> <u></u></p>
</div>
<div>
<p class="MsoNormal">Hi- <u></u><u></u></p>
<div>
<p class="MsoNormal"><u></u> <u></u></p>
</div>
<div>
<p class="MsoNormal">We're trying to transfer a relatively large resource to a different repository and the transfer keeps failing with a CookieOverflow exception (the most delicious exception of all).<u></u><u></u></p>
</div>
<div>
<p class="MsoNormal"><u></u> <u></u></p>
</div>
<div>
<p class="MsoNormal">The exception response HTML is attached. We're on v. 1.5.1.<u></u><u></u></p>
</div>
<div>
<p class="MsoNormal"><u></u> <u></u></p>
</div>
<div>
<p class="MsoNormal">Anybody every experience this? Is there a cure?<u></u><u></u></p>
</div>
<div>
<p class="MsoNormal"><u></u> <u></u></p>
</div>
<div>
<p class="MsoNormal">Thanks,<u></u><u></u></p>
</div>
<div>
<p class="MsoNormal">Trevor Thornton<br clear="all">
<u></u><u></u></p>
<div>
<p class="MsoNormal"><u></u> <u></u></p>
</div>
<p class="MsoNormal">-- <u></u><u></u></p>
<div>
<div>
<div>
<div>
<div>
<div>
<p class="MsoNormal"><span style="font-size:10pt;color:rgb(102,102,102);background:white none repeat scroll 0% 0%">Trevor Thornton</span>
<u></u><u></u></p>
<div>
<p class="MsoNormal"><span style="font-size:10pt;color:rgb(102,102,102);background:white none repeat scroll 0% 0%">Applications Developer, Digital Library Initiatives</span><u></u><u></u></p>
</div>
<div>
<p class="MsoNormal"><span style="font-size:10pt;color:rgb(102,102,102);background:white none repeat scroll 0% 0%">North Carolina State University Libraries</span><u></u><u></u></p>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
_______________________________________________<br>
Archivesspace_Users_Group mailing list<br>
<a href="mailto:Archivesspace_Users_Group@lyralists.lyrasis.org" target="_blank">Archivesspace_Users_Group@lyralists.lyrasis.org</a><br>
<a href="http://lyralists.lyrasis.org/mailman/listinfo/archivesspace_users_group" rel="noreferrer" target="_blank">http://lyralists.lyrasis.org/mailman/listinfo/archivesspace_users_group</a><br>
</blockquote></div>