Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Default Admin Set cannot display from admin dashboard #2446

Closed
bess opened this issue Dec 28, 2017 · 4 comments
Closed

Default Admin Set cannot display from admin dashboard #2446

bess opened this issue Dec 28, 2017 · 4 comments
Assignees

Comments

@bess
Copy link
Member

bess commented Dec 28, 2017

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
Copy link

@bess we saw an error like this when we set up Nurax. Not sure if it's related but samvera-labs/nurax-pre2023#32

@bess
Copy link
Member Author

bess commented Jan 3, 2018

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

@bess bess self-assigned this Jan 3, 2018
@bess bess added documentation and removed bug labels Jan 3, 2018
bess added a commit to samvera/samvera.github.io that referenced this issue Jan 3, 2018
…to display

This is a commonly encountered issue when setting up Hyrax.
See samvera/hyrax#2446
for more context.
@bess
Copy link
Member Author

bess commented Jan 3, 2018

Documented at samvera/samvera.github.io#177

@julesies
Copy link

julesies commented Feb 20, 2018

whoops wrong issue comment sorry.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants