Re: [Archivesspace_Users_Group] Error viewing a digital object from the frontend site

2021-06-15 Thread Schanz, Megan
Thank you for your prompt help; that did indeed resolve our issue!

- Megan

From: archivesspace_users_group-boun...@lyralists.lyrasis.org 
 on behalf of Andrew 
Morrison 
Sent: Tuesday, June 15, 2021 12:22 PM
To: archivesspace_users_group@lyralists.lyrasis.org 

Subject: Re: [Archivesspace_Users_Group] Error viewing a digital object from 
the frontend site


I'm sorry to have caused this problem. I have just submitted a 
fix<https://urldefense.com/v3/__https://github.com/archivesspace/archivesspace/pull/2301__;!!HXCxUKc!kRHYtidbjIGKnPxhgrzZQ51jGKyWjDIxDXDJgPIAO7W1kIZrjm0jPuUT_u9KAB0$>
 but it is up to the ArchivesSpace Program Team to decide whether and how to 
release it.


The fix is in a single template. You could download it from here...


https://raw.githubusercontent.com/bodleian/archivesspace/fix-pui-digital-object-bug/public/app/views/objects/show.html.erb<https://urldefense.com/v3/__https://raw.githubusercontent.com/bodleian/archivesspace/fix-pui-digital-object-bug/public/app/views/objects/show.html.erb__;!!HXCxUKc!kRHYtidbjIGKnPxhgrzZQ51jGKyWjDIxDXDJgPIAO7W1kIZrjm0jPuUTXCpQwiQ$>


...and put it in a local plug-in in your system (in public/views/objects). That 
template hasn't been changed since I introduced the bug in 2.8.0 so, for any 
release since, it will override the core template and fix the bug. Let me know 
if you need any help with that.


Andrew.



On 15/06/2021 16:18, Schanz, Megan wrote:
Oh interesting; both of those conditions exist for that digital object. We are 
running v2.8.1 right now. We do plan on upgrading in the near future if it is 
already fixed in newer versions.

- Megan

From: 
archivesspace_users_group-boun...@lyralists.lyrasis.org<mailto:archivesspace_users_group-boun...@lyralists.lyrasis.org>
 
<mailto:archivesspace_users_group-boun...@lyralists.lyrasis.org>
 on behalf of Andrew Morrison 
<mailto:andrew.morri...@bodleian.ox.ac.uk>
Sent: Tuesday, June 15, 2021 11:00 AM
To: 
archivesspace_users_group@lyralists.lyrasis.org<mailto:archivesspace_users_group@lyralists.lyrasis.org>
 
<mailto:archivesspace_users_group@lyralists.lyrasis.org>
Subject: Re: [Archivesspace_Users_Group] Error viewing a digital object from 
the frontend site


I'm afraid this appears to be a bug in a contribution I 
made<https://urldefense.com/v3/__https://github.com/archivesspace/archivesspace/pull/1831__;!!HXCxUKc!mxiBEVBeb-e1yJQa93-JiZV_eHl8eDdrgy81Jcgc9NR_k1aT7DcvtB8Yw2CCjJA$>.
 It occurs when both of the following conditions are met:


1. AppConfig[:pui_search_collection_from_archival_objects] is set to true in 
config.rb (by default it is false)

2. The digital object has one or more child digital object components


Is the case, and which version of ArchivesSpace are you running?


Andrew.



On 15/06/2021 15:01, Schanz, Megan wrote:
Hi everyone,

We are running across an error loading a digital object on the public front end 
site (but does load and function fine on the backend staff side). Nothing 
immediately looks out of place with that digital object record as compared to 
others. I tried re-saving the record to force a reindex of that object, which 
didn't change the error. Any help or suggestions would helpful!

The error users see is the typical "something went wrong" message. This is the 
error we are seeing in our logs when attempting to load that page:

I, [2021-06-15T13:28:26.735417 #57]  INFO -- : 
[2d67df51-6e7d-4007-b293-a38c457127ed] Started GET 
"/repositories/2/digital_objects/3342" for [IP] at 2021-06-15 13:28:26 +
I, [2021-06-15T13:28:26.737099 #57]  INFO -- : 
[2d67df51-6e7d-4007-b293-a38c457127ed] Processing by ObjectsController#show as 
HTML
I, [2021-06-15T13:28:26.737218 #57]  INFO -- : 
[2d67df51-6e7d-4007-b293-a38c457127ed]   Parameters: {"repo_slug"=>"2", 
"obj_type"=>"digital_objects", "slug_or_id"=>"3342"}
I, [2021-06-15T13:28:26.782973 #57]  INFO -- : 
[2d67df51-6e7d-4007-b293-a38c457127ed]   Rendering objects/show.html.erb within 
layouts/application
I, [2021-06-15T13:28:26.783870 #57]  INFO -- : 
[2d67df51-6e7d-4007-b293-a38c457127ed]   Rendered shared/_idbadge.html.erb 
(0.3ms)
I, [2021-06-15T13:28:26.786098 #57]  INFO -- : 
[2d67df51-6e7d-4007-b293-a38c457127ed]   Rendered 
shared/_cite_page_action.html.erb (1.8ms)
I, [2021-06-15T13:28:26.811105 #57]  INFO -- : 
[2d67df51-6e7d-4007-b293-a38c457127ed]   Rendered 
shared/_request_hiddens.html.erb (24.3ms)
I, [2021-06-15T13:28:26.812185 #57]  INFO -- : 
[2d67df51-6e7d-4007-b293-a38c457127ed]   Rendered 
shared/_request_page_action.html.erb (25.6ms)
I, [2021-06-15T13:28:26.812858 #57]  INFO -- : 
[2d67df51-6e7d-4007-b293-a38c457127ed]   Rendered 
shared/_staff_link_action.html.erb (0.2ms)
I, [2021-06-15T13:28:26.813104 #57]  INFO -- : 
[2d67df51-6e7d-4007-b293-a38c457127ed]   Rendered shared/

Re: [Archivesspace_Users_Group] Error viewing a digital object from the frontend site

2021-06-15 Thread Andrew Morrison
I'm sorry to have caused this problem. I have just submitted a fix 
<https://github.com/archivesspace/archivesspace/pull/2301> but it is up 
to the ArchivesSpace Program Team to decide whether and how to release it.



The fix is in a single template. You could download it from here...


https://raw.githubusercontent.com/bodleian/archivesspace/fix-pui-digital-object-bug/public/app/views/objects/show.html.erb


...and put it in a local plug-in in your system (in 
public/views/objects). That template hasn't been changed since I 
introduced the bug in 2.8.0 so, for any release since, it will override 
the core template and fix the bug. Let me know if you need any help with 
that.



Andrew.



On 15/06/2021 16:18, Schanz, Megan wrote:
Oh interesting; both of those conditions exist for that digital 
object. We are running v2.8.1 right now. We do plan on upgrading in 
the near future if it is already fixed in newer versions.


- Megan

*From:* archivesspace_users_group-boun...@lyralists.lyrasis.org 
 on behalf of 
Andrew Morrison 

*Sent:* Tuesday, June 15, 2021 11:00 AM
*To:* archivesspace_users_group@lyralists.lyrasis.org 

*Subject:* Re: [Archivesspace_Users_Group] Error viewing a digital 
object from the frontend site


I'm afraid this appears to be a bug in a contribution I made 
<https://urldefense.com/v3/__https://github.com/archivesspace/archivesspace/pull/1831__;!!HXCxUKc!mxiBEVBeb-e1yJQa93-JiZV_eHl8eDdrgy81Jcgc9NR_k1aT7DcvtB8Yw2CCjJA$>. 
It occurs when both of the following conditions are met:



1. AppConfig[:pui_search_collection_from_archival_objects] is set to 
true in config.rb (by default it is false)


2. The digital object has one or more child digital object components


Is the case, and which version of ArchivesSpace are you running?


Andrew.



On 15/06/2021 15:01, Schanz, Megan wrote:

Hi everyone,

We are running across an error loading a digital object on the public 
front end site (but does load and function fine on the backend staff 
side). Nothing immediately looks out of place with that digital 
object record as compared to others. I tried re-saving the record to 
force a reindex of that object, which didn't change the error. Any 
help or suggestions would helpful!


The error users see is the typical "something went wrong" message. 
This is the error we are seeing in our logs when attempting to load 
that page:


I, [2021-06-15T13:28:26.735417 #57]  INFO -- : 
[2d67df51-6e7d-4007-b293-a38c457127ed] Started GET 
"/repositories/2/digital_objects/3342" for [IP] at 2021-06-15 
13:28:26 +
I, [2021-06-15T13:28:26.737099 #57]  INFO -- : 
[2d67df51-6e7d-4007-b293-a38c457127ed] Processing by 
ObjectsController#show as HTML
I, [2021-06-15T13:28:26.737218 #57]  INFO -- : 
[2d67df51-6e7d-4007-b293-a38c457127ed]   Parameters: 
{"repo_slug"=>"2", "obj_type"=>"digital_objects", "slug_or_id"=>"3342"}
I, [2021-06-15T13:28:26.782973 #57]  INFO -- : 
[2d67df51-6e7d-4007-b293-a38c457127ed]   Rendering 
objects/show.html.erb within layouts/application
I, [2021-06-15T13:28:26.783870 #57]  INFO -- : 
[2d67df51-6e7d-4007-b293-a38c457127ed]   Rendered 
shared/_idbadge.html.erb (0.3ms)
I, [2021-06-15T13:28:26.786098 #57]  INFO -- : 
[2d67df51-6e7d-4007-b293-a38c457127ed]   Rendered 
shared/_cite_page_action.html.erb (1.8ms)
I, [2021-06-15T13:28:26.811105 #57]  INFO -- : 
[2d67df51-6e7d-4007-b293-a38c457127ed]   Rendered 
shared/_request_hiddens.html.erb (24.3ms)
I, [2021-06-15T13:28:26.812185 #57]  INFO -- : 
[2d67df51-6e7d-4007-b293-a38c457127ed]   Rendered 
shared/_request_page_action.html.erb (25.6ms)
I, [2021-06-15T13:28:26.812858 #57]  INFO -- : 
[2d67df51-6e7d-4007-b293-a38c457127ed]   Rendered 
shared/_staff_link_action.html.erb (0.2ms)
I, [2021-06-15T13:28:26.813104 #57]  INFO -- : 
[2d67df51-6e7d-4007-b293-a38c457127ed]   Rendered 
shared/_page_actions.html.erb (28.9ms)
I, [2021-06-15T13:28:26.813776 #57]  INFO -- : 
[2d67df51-6e7d-4007-b293-a38c457127ed]   Rendered 
shared/_breadcrumbs.html.erb (0.3ms)
I, [2021-06-15T13:28:26.814377 #57]  INFO -- : 
[2d67df51-6e7d-4007-b293-a38c457127ed]   Rendered 
shared/_digital.html.erb (0.3ms)
I, [2021-06-15T13:28:26.815070 #57]  INFO -- : 
[2d67df51-6e7d-4007-b293-a38c457127ed]   Rendered 
shared/_dates.html.erb (0.1ms)
I, [2021-06-15T13:28:26.816935 #57]  INFO -- : 
[2d67df51-6e7d-4007-b293-a38c457127ed]   Rendered 
shared/_multi_notes.html.erb (0.0ms)
I, [2021-06-15T13:28:26.831346 #57]  INFO -- : 
[2d67df51-6e7d-4007-b293-a38c457127ed]   Rendered 
digital_objects/_linked_instances.html.erb (14.0ms)
I, [2021-06-15T13:28:26.832042 #57]  INFO -- : 
[2d67df51-6e7d-4007-b293-a38c457127ed]   Rendered 
shared/_accordion_panel.html.erb (0.1ms)
I, [2021-06-15T13:28:26.832604 #57]  INFO -- : 
[2d67df51-6e7d-4007-b293-a38c457127ed]   Rendered 
shared/_present_list_external_docs.html.erb (0.1

Re: [Archivesspace_Users_Group] Error viewing a digital object from the frontend site

2021-06-15 Thread Schanz, Megan
Oh interesting; both of those conditions exist for that digital object. We are 
running v2.8.1 right now. We do plan on upgrading in the near future if it is 
already fixed in newer versions.

- Megan

From: archivesspace_users_group-boun...@lyralists.lyrasis.org 
 on behalf of Andrew 
Morrison 
Sent: Tuesday, June 15, 2021 11:00 AM
To: archivesspace_users_group@lyralists.lyrasis.org 

Subject: Re: [Archivesspace_Users_Group] Error viewing a digital object from 
the frontend site


I'm afraid this appears to be a bug in a contribution I 
made<https://urldefense.com/v3/__https://github.com/archivesspace/archivesspace/pull/1831__;!!HXCxUKc!mxiBEVBeb-e1yJQa93-JiZV_eHl8eDdrgy81Jcgc9NR_k1aT7DcvtB8Yw2CCjJA$>.
 It occurs when both of the following conditions are met:


1. AppConfig[:pui_search_collection_from_archival_objects] is set to true in 
config.rb (by default it is false)

2. The digital object has one or more child digital object components


Is the case, and which version of ArchivesSpace are you running?


Andrew.



On 15/06/2021 15:01, Schanz, Megan wrote:
Hi everyone,

We are running across an error loading a digital object on the public front end 
site (but does load and function fine on the backend staff side). Nothing 
immediately looks out of place with that digital object record as compared to 
others. I tried re-saving the record to force a reindex of that object, which 
didn't change the error. Any help or suggestions would helpful!

The error users see is the typical "something went wrong" message. This is the 
error we are seeing in our logs when attempting to load that page:

I, [2021-06-15T13:28:26.735417 #57]  INFO -- : 
[2d67df51-6e7d-4007-b293-a38c457127ed] Started GET 
"/repositories/2/digital_objects/3342" for [IP] at 2021-06-15 13:28:26 +
I, [2021-06-15T13:28:26.737099 #57]  INFO -- : 
[2d67df51-6e7d-4007-b293-a38c457127ed] Processing by ObjectsController#show as 
HTML
I, [2021-06-15T13:28:26.737218 #57]  INFO -- : 
[2d67df51-6e7d-4007-b293-a38c457127ed]   Parameters: {"repo_slug"=>"2", 
"obj_type"=>"digital_objects", "slug_or_id"=>"3342"}
I, [2021-06-15T13:28:26.782973 #57]  INFO -- : 
[2d67df51-6e7d-4007-b293-a38c457127ed]   Rendering objects/show.html.erb within 
layouts/application
I, [2021-06-15T13:28:26.783870 #57]  INFO -- : 
[2d67df51-6e7d-4007-b293-a38c457127ed]   Rendered shared/_idbadge.html.erb 
(0.3ms)
I, [2021-06-15T13:28:26.786098 #57]  INFO -- : 
[2d67df51-6e7d-4007-b293-a38c457127ed]   Rendered 
shared/_cite_page_action.html.erb (1.8ms)
I, [2021-06-15T13:28:26.811105 #57]  INFO -- : 
[2d67df51-6e7d-4007-b293-a38c457127ed]   Rendered 
shared/_request_hiddens.html.erb (24.3ms)
I, [2021-06-15T13:28:26.812185 #57]  INFO -- : 
[2d67df51-6e7d-4007-b293-a38c457127ed]   Rendered 
shared/_request_page_action.html.erb (25.6ms)
I, [2021-06-15T13:28:26.812858 #57]  INFO -- : 
[2d67df51-6e7d-4007-b293-a38c457127ed]   Rendered 
shared/_staff_link_action.html.erb (0.2ms)
I, [2021-06-15T13:28:26.813104 #57]  INFO -- : 
[2d67df51-6e7d-4007-b293-a38c457127ed]   Rendered shared/_page_actions.html.erb 
(28.9ms)
I, [2021-06-15T13:28:26.813776 #57]  INFO -- : 
[2d67df51-6e7d-4007-b293-a38c457127ed]   Rendered shared/_breadcrumbs.html.erb 
(0.3ms)
I, [2021-06-15T13:28:26.814377 #57]  INFO -- : 
[2d67df51-6e7d-4007-b293-a38c457127ed]   Rendered shared/_digital.html.erb 
(0.3ms)
I, [2021-06-15T13:28:26.815070 #57]  INFO -- : 
[2d67df51-6e7d-4007-b293-a38c457127ed]   Rendered shared/_dates.html.erb (0.1ms)
I, [2021-06-15T13:28:26.816935 #57]  INFO -- : 
[2d67df51-6e7d-4007-b293-a38c457127ed]   Rendered shared/_multi_notes.html.erb 
(0.0ms)
I, [2021-06-15T13:28:26.831346 #57]  INFO -- : 
[2d67df51-6e7d-4007-b293-a38c457127ed]   Rendered 
digital_objects/_linked_instances.html.erb (14.0ms)
I, [2021-06-15T13:28:26.832042 #57]  INFO -- : 
[2d67df51-6e7d-4007-b293-a38c457127ed]   Rendered 
shared/_accordion_panel.html.erb (0.1ms)
I, [2021-06-15T13:28:26.832604 #57]  INFO -- : 
[2d67df51-6e7d-4007-b293-a38c457127ed]   Rendered 
shared/_present_list_external_docs.html.erb (0.1ms)
I, [2021-06-15T13:28:26.833089 #57]  INFO -- : 
[2d67df51-6e7d-4007-b293-a38c457127ed]   Rendered 
shared/_accordion_panel.html.erb (0.1ms)
I, [2021-06-15T13:28:26.834073 #57]  INFO -- : 
[2d67df51-6e7d-4007-b293-a38c457127ed]   Rendered 
repositories/_full_repo.html.erb (0.4ms)
I, [2021-06-15T13:28:26.834370 #57]  INFO -- : 
[2d67df51-6e7d-4007-b293-a38c457127ed]   Rendered 
repositories/_repository_details.html.erb (0.9ms)
I, [2021-06-15T13:28:26.834845 #57]  INFO -- : 
[2d67df51-6e7d-4007-b293-a38c457127ed]   Rendered 
shared/_accordion_panel.html.erb (0.1ms)
I, [2021-06-15T13:28:26.836665 #57]  INFO -- : 
[2d67df51-6e7d-4007-b293-a38c457127ed]   Rendered 
shared/_record_innards.html.erb (21.9ms)
I, [2021-06-15T13:28:26.850905 #57]  INFO -- : 
[2d67df51-6e7d-4007-b293-a38c457127ed]   Ren

Re: [Archivesspace_Users_Group] Error viewing a digital object from the frontend site

2021-06-15 Thread Andrew Morrison
I'm afraid this appears to be a bug in a contribution I made 
. It occurs 
when both of the following conditions are met:



1. AppConfig[:pui_search_collection_from_archival_objects] is set to 
true in config.rb (by default it is false)


2. The digital object has one or more child digital object components


Is the case, and which version of ArchivesSpace are you running?


Andrew.



On 15/06/2021 15:01, Schanz, Megan wrote:

Hi everyone,

We are running across an error loading a digital object on the public 
front end site (but does load and function fine on the backend staff 
side). Nothing immediately looks out of place with that digital object 
record as compared to others. I tried re-saving the record to force a 
reindex of that object, which didn't change the error. Any help or 
suggestions would helpful!


The error users see is the typical "something went wrong" message. 
This is the error we are seeing in our logs when attempting to load 
that page:


I, [2021-06-15T13:28:26.735417 #57]  INFO -- : 
[2d67df51-6e7d-4007-b293-a38c457127ed] Started GET 
"/repositories/2/digital_objects/3342" for [IP] at 2021-06-15 13:28:26 
+
I, [2021-06-15T13:28:26.737099 #57]  INFO -- : 
[2d67df51-6e7d-4007-b293-a38c457127ed] Processing by 
ObjectsController#show as HTML
I, [2021-06-15T13:28:26.737218 #57]  INFO -- : 
[2d67df51-6e7d-4007-b293-a38c457127ed]   Parameters: 
{"repo_slug"=>"2", "obj_type"=>"digital_objects", "slug_or_id"=>"3342"}
I, [2021-06-15T13:28:26.782973 #57]  INFO -- : 
[2d67df51-6e7d-4007-b293-a38c457127ed]   Rendering 
objects/show.html.erb within layouts/application
I, [2021-06-15T13:28:26.783870 #57]  INFO -- : 
[2d67df51-6e7d-4007-b293-a38c457127ed]   Rendered 
shared/_idbadge.html.erb (0.3ms)
I, [2021-06-15T13:28:26.786098 #57]  INFO -- : 
[2d67df51-6e7d-4007-b293-a38c457127ed]   Rendered 
shared/_cite_page_action.html.erb (1.8ms)
I, [2021-06-15T13:28:26.811105 #57]  INFO -- : 
[2d67df51-6e7d-4007-b293-a38c457127ed]   Rendered 
shared/_request_hiddens.html.erb (24.3ms)
I, [2021-06-15T13:28:26.812185 #57]  INFO -- : 
[2d67df51-6e7d-4007-b293-a38c457127ed]   Rendered 
shared/_request_page_action.html.erb (25.6ms)
I, [2021-06-15T13:28:26.812858 #57]  INFO -- : 
[2d67df51-6e7d-4007-b293-a38c457127ed]   Rendered 
shared/_staff_link_action.html.erb (0.2ms)
I, [2021-06-15T13:28:26.813104 #57]  INFO -- : 
[2d67df51-6e7d-4007-b293-a38c457127ed]   Rendered 
shared/_page_actions.html.erb (28.9ms)
I, [2021-06-15T13:28:26.813776 #57]  INFO -- : 
[2d67df51-6e7d-4007-b293-a38c457127ed]   Rendered 
shared/_breadcrumbs.html.erb (0.3ms)
I, [2021-06-15T13:28:26.814377 #57]  INFO -- : 
[2d67df51-6e7d-4007-b293-a38c457127ed]   Rendered 
shared/_digital.html.erb (0.3ms)
I, [2021-06-15T13:28:26.815070 #57]  INFO -- : 
[2d67df51-6e7d-4007-b293-a38c457127ed]   Rendered 
shared/_dates.html.erb (0.1ms)
I, [2021-06-15T13:28:26.816935 #57]  INFO -- : 
[2d67df51-6e7d-4007-b293-a38c457127ed]   Rendered 
shared/_multi_notes.html.erb (0.0ms)
I, [2021-06-15T13:28:26.831346 #57]  INFO -- : 
[2d67df51-6e7d-4007-b293-a38c457127ed]   Rendered 
digital_objects/_linked_instances.html.erb (14.0ms)
I, [2021-06-15T13:28:26.832042 #57]  INFO -- : 
[2d67df51-6e7d-4007-b293-a38c457127ed]   Rendered 
shared/_accordion_panel.html.erb (0.1ms)
I, [2021-06-15T13:28:26.832604 #57]  INFO -- : 
[2d67df51-6e7d-4007-b293-a38c457127ed]   Rendered 
shared/_present_list_external_docs.html.erb (0.1ms)
I, [2021-06-15T13:28:26.833089 #57]  INFO -- : 
[2d67df51-6e7d-4007-b293-a38c457127ed]   Rendered 
shared/_accordion_panel.html.erb (0.1ms)
I, [2021-06-15T13:28:26.834073 #57]  INFO -- : 
[2d67df51-6e7d-4007-b293-a38c457127ed]   Rendered 
repositories/_full_repo.html.erb (0.4ms)
I, [2021-06-15T13:28:26.834370 #57]  INFO -- : 
[2d67df51-6e7d-4007-b293-a38c457127ed]   Rendered 
repositories/_repository_details.html.erb (0.9ms)
I, [2021-06-15T13:28:26.834845 #57]  INFO -- : 
[2d67df51-6e7d-4007-b293-a38c457127ed]   Rendered 
shared/_accordion_panel.html.erb (0.1ms)
I, [2021-06-15T13:28:26.836665 #57]  INFO -- : 
[2d67df51-6e7d-4007-b293-a38c457127ed]   Rendered 
shared/_record_innards.html.erb (21.9ms)
I, [2021-06-15T13:28:26.850905 #57]  INFO -- : 
[2d67df51-6e7d-4007-b293-a38c457127ed]   Rendered 
objects/show.html.erb within layouts/application (67.7ms)
I, [2021-06-15T13:28:26.852604 #57]  INFO -- : 
[2d67df51-6e7d-4007-b293-a38c457127ed] Completed 500 Internal Server 
Error in 115ms
F, [2021-06-15T13:28:26.854132 #57] FATAL -- : 
[2d67df51-6e7d-4007-b293-a38c457127ed]
F, [2021-06-15T13:28:26.854269 #57] FATAL -- : 
[2d67df51-6e7d-4007-b293-a38c457127ed] ActionView::Template::Error 
(undefined method `resource_uri' for #):
F, [2021-06-15T13:28:26.854696 #57] FATAL -- : 
[2d67df51-6e7d-4007-b293-a38c457127ed]     31:         end

[2d67df51-6e7d-4007-b293-a38c457127ed]     32:       %>
[2d67df51-6e7d-4007-b293-a38c457127ed]     33:       <% if