samvera / hyrax

Hyrax is a Ruby on Rails Engine built by the Samvera community. Hyrax provides a foundation for creating many different digital repository applications.
http://hyrax.samvera.org/
Apache License 2.0
183 stars 124 forks source link

Default Admin Set cannot display from admin dashboard #2446

Closed bess closed 6 years ago

bess commented 6 years ago

Descriptive summary

In Hyrax 2.x, from the admin dashboard, clicking the "Administrative Sets" button on the left gives you a list of all Admin Sets. Clicking one of them should give you the contents of that Admin Set. This does not work for the default admin set, however, because fedora is returning a 400 error.

Here is the relevant bit from the logs:

I, [2017-12-28T13:56:33.122200 #32131]  INFO -- : [130fc46a-7aab-4c86-816d-88bfbf2725f6] Started GET "/admin/admin_sets/admin_set%252Fdefault" for 173.95.180.167 at 2017-12-28 13:56:33 -0500
I, [2017-12-28T13:56:33.126719 #32131]  INFO -- : [130fc46a-7aab-4c86-816d-88bfbf2725f6] Processing by Hyrax::Admin::AdminSetsController#show as HTML
I, [2017-12-28T13:56:33.126784 #32131]  INFO -- : [130fc46a-7aab-4c86-816d-88bfbf2725f6]   Parameters: {"id"=>"admin_set%2Fdefault"}
I, [2017-12-28T13:56:33.145770 #32131]  INFO -- : [130fc46a-7aab-4c86-816d-88bfbf2725f6] Completed 500 Internal Server Error in 19ms (ActiveRecord: 0.7ms)
F, [2017-12-28T13:56:33.147432 #32131] FATAL -- : [130fc46a-7aab-4c86-816d-88bfbf2725f6]
F, [2017-12-28T13:56:33.147483 #32131] FATAL -- : [130fc46a-7aab-4c86-816d-88bfbf2725f6] Ldp::BadRequest ():
F, [2017-12-28T13:56:33.147539 #32131] FATAL -- : [130fc46a-7aab-4c86-816d-88bfbf2725f6]
F, [2017-12-28T13:56:33.147605 #32131] FATAL -- : [130fc46a-7aab-4c86-816d-88bfbf2725f6] ldp (0.7.0) lib/ldp/client/methods.rb:119:in `block in check_for_errors'

Somehow the id for the default admin set is getting mangled.

Expected behavior

I should see the contents of the default admin set.

Actual behavior

An exception is thrown.

Steps to reproduce the behavior

  1. Log in as an admin
  2. Click on the "Administrative Sets" link on the left of the dashboard
  3. Click on the Default Admin Set
julesies commented 6 years ago

@bess we saw an error like this when we set up Nurax. Not sure if it's related but https://github.com/curationexperts/nurax/issues/32

bess commented 6 years ago

@julesies Thank you! That fixed my issue! I am going to document this so others who run into this can fix it.

bess commented 6 years ago

Documented at https://github.com/samvera/samvera.github.io/pull/177

julesies commented 6 years ago

whoops wrong issue comment sorry.