You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I saw this in your tests as well and found it odd. This seems like a place where we could contribute a better response upstream to hyrax since it looks like it is happening in Hyrax::Controller#deny_access_for_anonymous_user.
When accessing a default Rails response type (JSON/HTML) for a non-visible work, the following error is received:
And the default HTML response is to redirect the user to the login screen and return a CanCan error.
However, with non-default formats, like RIS (in the PR) or JSONLD, an
ActionController::UnknownFormat
error is returned.I would have assumed that this is not the case because the format is registered outside of the request.
The text was updated successfully, but these errors were encountered: