<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;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0in;
        margin-bottom:.0001pt;
        font-size:11.0pt;
        font-family:"Calibri",sans-serif;}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:#0563C1;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {mso-style-priority:99;
        color:#954F72;
        text-decoration:underline;}
p.msonormal0, li.msonormal0, div.msonormal0
        {mso-style-name:msonormal;
        margin:0in;
        margin-bottom:.0001pt;
        font-size:11.0pt;
        font-family:"Calibri",sans-serif;}
p.xmsonormal, li.xmsonormal, div.xmsonormal
        {mso-style-name:x_msonormal;
        margin:0in;
        margin-bottom:.0001pt;
        font-size:12.0pt;
        font-family:"Calibri",sans-serif;}
p.xmsonormal0, li.xmsonormal0, div.xmsonormal0
        {mso-style-name:x_msonormal0;
        mso-margin-top-alt:auto;
        margin-right:0in;
        mso-margin-bottom-alt:auto;
        margin-left:0in;
        font-size:11.0pt;
        font-family:"Calibri",sans-serif;}
p.xmsochpdefault, li.xmsochpdefault, div.xmsochpdefault
        {mso-style-name:x_msochpdefault;
        mso-margin-top-alt:auto;
        margin-right:0in;
        mso-margin-bottom-alt:auto;
        margin-left:0in;
        font-size:10.0pt;
        font-family:"Calibri",sans-serif;}
span.xmsohyperlink
        {mso-style-name:x_msohyperlink;
        color:#0563C1;
        text-decoration:underline;}
span.xmsohyperlinkfollowed
        {mso-style-name:x_msohyperlinkfollowed;
        color:#954F72;
        text-decoration:underline;}
span.xemailstyle18
        {mso-style-name:x_emailstyle18;
        font-family:"Calibri",sans-serif;
        color:windowtext;}
span.xemailstyle19
        {mso-style-name:x_emailstyle19;
        font-family:"Calibri",sans-serif;
        color:windowtext;}
span.EmailStyle26
        {mso-style-type:personal-reply;
        font-family:"Calibri",sans-serif;
        color:windowtext;}
.MsoChpDefault
        {mso-style-type:export-only;
        font-size:10.0pt;}
@page WordSection1
        {size:8.5in 11.0in;
        margin:1.0in 1.0in 1.0in 1.0in;}
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-US" link="#0563C1" vlink="#954F72">
<div class="WordSection1">
<p class="MsoNormal">We’re on 2.5.2 now. We upgraded because of that bug; that’s why I thought the problem could be with the event record instead of the resource.  -k<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<div style="border:none;border-top:solid #B5C4DF 1.0pt;padding:3.0pt 0in 0in 0in">
<p class="MsoNormal"><b><span style="font-size:12.0pt;color:black">From: </span></b><span style="font-size:12.0pt;color:black"><archivesspace_users_group-bounces@lyralists.lyrasis.org> on behalf of Blake Carver <blake.carver@lyrasis.org><br>
<b>Reply-To: </b>Archivesspace Group <archivesspace_users_group@lyralists.lyrasis.org><br>
<b>Date: </b>Thursday, April 25, 2019 at 10:28 AM<br>
<b>To: </b>Archivesspace Group <archivesspace_users_group@lyralists.lyrasis.org><br>
<b>Subject: </b>Re: [Archivesspace_Users_Group] Suppressed record search bug<o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal"><o:p> </o:p></p>
</div>
<div>
<p class="MsoNormal"><span style="font-size:12.0pt;color:black">What version are you on? That looks similar to a bug that should've been fixed in 2.5.2.
<o:p></o:p></span></p>
</div>
<div class="MsoNormal" align="center" style="text-align:center">
<hr size="2" width="98%" align="center">
</div>
<div id="divRplyFwdMsg">
<p class="MsoNormal"><b><span style="color:black">From:</span></b><span style="color:black"> archivesspace_users_group-bounces@lyralists.lyrasis.org <archivesspace_users_group-bounces@lyralists.lyrasis.org> on behalf of Kevin Clair <Kevin.Clair@du.edu><br>
<b>Sent:</b> Thursday, April 25, 2019 12:08 PM<br>
<b>To:</b> Archivesspace Users Group<br>
<b>Subject:</b> Re: [Archivesspace_Users_Group] Suppressed record search bug</span>
<o:p></o:p></p>
<div>
<p class="MsoNormal"> <o:p></o:p></p>
</div>
</div>
<div>
<div>
<p class="xmsonormal"><span style="font-size:11.0pt">I should also say that the search that prompted this also returns a component_transfer event of records that were moved from the suppressed Resource to another Resource. So it may be that it’s an issue with
 suppressed records appearing in the “Found In” column of another record’s result summary, rather than with the suppressed record itself…  -k</span><o:p></o:p></p>
<p class="xmsonormal"><span style="font-size:11.0pt"> </span><o:p></o:p></p>
<div style="border:none;border-top:solid #B5C4DF 1.0pt;padding:3.0pt 0in 0in 0in">
<p class="xmsonormal"><b><span style="color:black">From: </span></b><span style="color:black"><archivesspace_users_group-bounces@lyralists.lyrasis.org> on behalf of Kevin Clair <Kevin.Clair@du.edu><br>
<b>Reply-To: </b>Archivesspace Group <archivesspace_users_group@lyralists.lyrasis.org><br>
<b>Date: </b>Thursday, April 25, 2019 at 10:00 AM<br>
<b>To: </b>Archivesspace Group <archivesspace_users_group@lyralists.lyrasis.org><br>
<b>Subject: </b>[Archivesspace_Users_Group] Suppressed record search bug</span><o:p></o:p></p>
</div>
<div>
<p class="xmsonormal"><span style="font-size:11.0pt"> </span><o:p></o:p></p>
</div>
<p class="xmsonormal"><span style="font-size:11.0pt">Hello,</span><o:p></o:p></p>
<p class="xmsonormal"><span style="font-size:11.0pt"> </span><o:p></o:p></p>
<p class="xmsonormal"><span style="font-size:11.0pt">We recently discovered an issue with searching for records that are suppressed in the staff interface. In our instance, administrative users are able to do known-item searches for suppressed records without
 incident; if a user without administrative permissions performs the same search, they get thrown an error with the following stack trace:</span><o:p></o:p></p>
<p class="xmsonormal"><span style="font-size:11.0pt"> </span><o:p></o:p></p>
<p class="xmsonormal"><span style="font-size:11.0pt">I, [2019-04-25T09:47:26.038804 #18125]  INFO -- : Completed 500 Internal Server Error in 1163ms</span><o:p></o:p></p>
<p class="xmsonormal"><span style="font-size:11.0pt">F, [2019-04-25T09:47:26.041948 #18125] FATAL -- :  
</span><o:p></o:p></p>
<p class="xmsonormal"><span style="font-size:11.0pt">F, [2019-04-25T09:47:26.042069 #18125] FATAL -- : ActionView::Template::Error (undefined method `[]' for nil:NilClass):</span><o:p></o:p></p>
<p class="xmsonormal"><span style="font-size:11.0pt">F, [2019-04-25T09:47:26.042263 #18125] FATAL -- :     1: <% ancestors = context_ancestor(result) %></span><o:p></o:p></p>
<p class="xmsonormal"><span style="font-size:11.0pt">    2: <% if ancestors != nil && ancestors != [''] %></span><o:p></o:p></p>
<p class="xmsonormal"><span style="font-size:11.0pt">    3:   <% ancestors.reverse.each_with_index do |ancestor, i| %></span><o:p></o:p></p>
<p class="xmsonormal"><span style="font-size:11.0pt">    4:     <%= resolve_readonly_link_to((get_ancestor_title(ancestor).html_safe), ancestor) %></span><o:p></o:p></p>
<p class="xmsonormal"><span style="font-size:11.0pt">    5:     <% if i < ancestors.length - 1 %></span><o:p></o:p></p>
<p class="xmsonormal"><span style="font-size:11.0pt">    6:       <%= context_separator(result) %></span><o:p></o:p></p>
<p class="xmsonormal"><span style="font-size:11.0pt">    7:     <% end %></span><o:p></o:p></p>
<p class="xmsonormal"><span style="font-size:11.0pt">F, [2019-04-25T09:47:26.042340 #18125] FATAL -- :  
</span><o:p></o:p></p>
<p class="xmsonormal"><span style="font-size:11.0pt">F, [2019-04-25T09:47:26.042413 #18125] FATAL -- : app/helpers/search_helper.rb:198:in `get_ancestor_title'</span><o:p></o:p></p>
<p class="xmsonormal"><span style="font-size:11.0pt">app/views/search/_context.html.erb:4:in `block in _app_views_search__context_html_erb___234296763_2752'</span><o:p></o:p></p>
<p class="xmsonormal"><span style="font-size:11.0pt">app/views/search/_context.html.erb:3:in `_app_views_search__context_html_erb___234296763_2752'</span><o:p></o:p></p>
<p class="xmsonormal"><span style="font-size:11.0pt">app/helpers/application_helper.rb:289:in `render_aspace_partial'</span><o:p></o:p></p>
<p class="xmsonormal"><span style="font-size:11.0pt">app/views/search/_listing.html.erb:90:in `block in _app_views_search__listing_html_erb___1981573825_2748'</span><o:p></o:p></p>
<p class="xmsonormal"><span style="font-size:11.0pt">app/views/search/_listing.html.erb:52:in `_app_views_search__listing_html_erb___1981573825_2748'</span><o:p></o:p></p>
<p class="xmsonormal"><span style="font-size:11.0pt">app/helpers/application_helper.rb:289:in `render_aspace_partial'</span><o:p></o:p></p>
<p class="xmsonormal"><span style="font-size:11.0pt">app/views/search/_results.html.erb:23:in `_app_views_search__results_html_erb___1135689531_2744'</span><o:p></o:p></p>
<p class="xmsonormal"><span style="font-size:11.0pt">app/helpers/application_helper.rb:289:in `render_aspace_partial'</span><o:p></o:p></p>
<p class="xmsonormal"><span style="font-size:11.0pt">app/views/search/do_search.html.erb:16:in `_app_views_search_do_search_html_erb__585907251_2742'</span><o:p></o:p></p>
<p class="xmsonormal"><span style="font-size:11.0pt"> </span><o:p></o:p></p>
<p class="xmsonormal"><span style="font-size:11.0pt">Checking in to see if anyone else has noticed similar behavior and if there’s a bug report for this in Jira already. I did a quick search just now but couldn’t find anything that looked similar to this. thanks! 
 -k</span><o:p></o:p></p>
</div>
</div>
</div>
</body>
</html>