<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=Windows-1252">
<style type="text/css" style="display:none;"> P {margin-top:0;margin-bottom:0;} </style>
</head>
<body dir="ltr">
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
What version are you on? That looks similar to a bug that should've been fixed in 2.5.2.
</div>
<div id="Signature">
<div id="divtagdefaultwrapper" dir="ltr" style="color:rgb(0,0,0); background-color:rgb(255,255,255)">
</div>
</div>
<div id="appendonsend"></div>
<hr style="display:inline-block;width:98%" tabindex="-1">
<div id="divRplyFwdMsg" dir="ltr"><font face="Calibri, sans-serif" style="font-size:11pt" color="#000000"><b>From:</b> 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</font>
<div> </div>
</div>
<style>
<!--
@font-face
{font-family:"Cambria Math"}
@font-face
{font-family:Calibri}
p.x_MsoNormal, li.x_MsoNormal, div.x_MsoNormal
{margin:0in;
margin-bottom:.0001pt;
font-size:12.0pt;
font-family:"Calibri",sans-serif}
a:link, span.x_MsoHyperlink
{color:#0563C1;
text-decoration:underline}
a:visited, span.x_MsoHyperlinkFollowed
{color:#954F72;
text-decoration:underline}
p.x_msonormal0, li.x_msonormal0, div.x_msonormal0
{margin-right:0in;
margin-left:0in;
font-size:11.0pt;
font-family:"Calibri",sans-serif}
span.x_EmailStyle18
{font-family:"Calibri",sans-serif;
color:windowtext}
span.x_EmailStyle19
{font-family:"Calibri",sans-serif;
color:windowtext}
.x_MsoChpDefault
{font-size:10.0pt}
@page WordSection1
{margin:1.0in 1.0in 1.0in 1.0in}
div.x_WordSection1
{}
-->
</style>
<div lang="EN-US" link="#0563C1" vlink="#954F72">
<div class="x_WordSection1">
<p class="x_MsoNormal"><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></p>
<p class="x_MsoNormal"><span style="font-size:11.0pt"> </span></p>
<div style="border:none; border-top:solid #B5C4DF 1.0pt; padding:3.0pt 0in 0in 0in">
<p class="x_MsoNormal"><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></p>
</div>
<div>
<p class="x_MsoNormal"><span style="font-size:11.0pt"> </span></p>
</div>
<p class="x_MsoNormal"><span style="font-size:11.0pt">Hello,</span></p>
<p class="x_MsoNormal"><span style="font-size:11.0pt"> </span></p>
<p class="x_MsoNormal"><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></p>
<p class="x_MsoNormal"><span style="font-size:11.0pt"> </span></p>
<p class="x_MsoNormal"><span style="font-size:11.0pt">I, [2019-04-25T09:47:26.038804 #18125] INFO -- : Completed 500 Internal Server Error in 1163ms</span></p>
<p class="x_MsoNormal"><span style="font-size:11.0pt">F, [2019-04-25T09:47:26.041948 #18125] FATAL -- :
</span></p>
<p class="x_MsoNormal"><span style="font-size:11.0pt">F, [2019-04-25T09:47:26.042069 #18125] FATAL -- : ActionView::Template::Error (undefined method `[]' for nil:NilClass):</span></p>
<p class="x_MsoNormal"><span style="font-size:11.0pt">F, [2019-04-25T09:47:26.042263 #18125] FATAL -- : 1: <% ancestors = context_ancestor(result) %></span></p>
<p class="x_MsoNormal"><span style="font-size:11.0pt"> 2: <% if ancestors != nil && ancestors != [''] %></span></p>
<p class="x_MsoNormal"><span style="font-size:11.0pt"> 3: <% ancestors.reverse.each_with_index do |ancestor, i| %></span></p>
<p class="x_MsoNormal"><span style="font-size:11.0pt"> 4: <%= resolve_readonly_link_to((get_ancestor_title(ancestor).html_safe), ancestor) %></span></p>
<p class="x_MsoNormal"><span style="font-size:11.0pt"> 5: <% if i < ancestors.length - 1 %></span></p>
<p class="x_MsoNormal"><span style="font-size:11.0pt"> 6: <%= context_separator(result) %></span></p>
<p class="x_MsoNormal"><span style="font-size:11.0pt"> 7: <% end %></span></p>
<p class="x_MsoNormal"><span style="font-size:11.0pt">F, [2019-04-25T09:47:26.042340 #18125] FATAL -- :
</span></p>
<p class="x_MsoNormal"><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></p>
<p class="x_MsoNormal"><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></p>
<p class="x_MsoNormal"><span style="font-size:11.0pt">app/views/search/_context.html.erb:3:in `_app_views_search__context_html_erb___234296763_2752'</span></p>
<p class="x_MsoNormal"><span style="font-size:11.0pt">app/helpers/application_helper.rb:289:in `render_aspace_partial'</span></p>
<p class="x_MsoNormal"><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></p>
<p class="x_MsoNormal"><span style="font-size:11.0pt">app/views/search/_listing.html.erb:52:in `_app_views_search__listing_html_erb___1981573825_2748'</span></p>
<p class="x_MsoNormal"><span style="font-size:11.0pt">app/helpers/application_helper.rb:289:in `render_aspace_partial'</span></p>
<p class="x_MsoNormal"><span style="font-size:11.0pt">app/views/search/_results.html.erb:23:in `_app_views_search__results_html_erb___1135689531_2744'</span></p>
<p class="x_MsoNormal"><span style="font-size:11.0pt">app/helpers/application_helper.rb:289:in `render_aspace_partial'</span></p>
<p class="x_MsoNormal"><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></p>
<p class="x_MsoNormal"><span style="font-size:11.0pt"> </span></p>
<p class="x_MsoNormal"><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></p>
</div>
</div>
</body>
</html>