geobtaa / geoblacklight_admin

MIT License
4 stars 2 forks source link

A record with assets is causing the text search in Dev Admin to break #66

Closed karenmajewicz closed 3 days ago

karenmajewicz commented 2 weeks ago

Edit: This record is causing the search to error: https://geodev.btaa.org/catalog/997a6f44-a44f-4397-af67-c224833546d3 I can view it in the geoportal and via direct entry into Admin. However, using a search parameter that returns it causes Admin to error.

The text search box in Dev Admin frequently returns 500 Internal Server Error If you are the administrator of this website, then please read this web application's log file and/or the web server's log file to find out what went wrong.

Some of the filters in the Advanced Search work (i.e. Resource Class), but others are broken (i.e. Provider).

I think there might be a corrupt record somewhere, but I am not sure how to find it.

karenmajewicz commented 2 weeks ago

I think this has something to do with the Assets. AppSignal shows an error for this of ActiveStorage::FileNotFoundError. I have been playing around with uploading and deleting files using this collection https://geodev.btaa.org/catalog/btaa-074bc4ad-ed3d-4fe7-8339-562bc1109cb3

Even though it is not breaking search, I see that this record may have a problem too. On the main item edit page, it shows 1 additional asset. However, when I go to the Document - Assets page, none are present. Maybe there is something amiss with deleting assets?

ewlarson commented 3 days ago

Here the application was failing to render a thumbnail for the pmtiles asset.

We should add a pmtiles logic/path to the thumbnail generation code.

ewlarson commented 3 days ago

Link displaying fix on GeoDev: https://geodev.btaa.org/admin/documents?q=Big+Ten+Academic+Alliance+