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

HUT : <%= media_display https://github.com/presenter %> #1135

Closed
scherztc opened this issue Dec 13, 2023 · 4 comments · May be fixed by #1157
Closed

HUT : <%= media_display https://github.com/presenter %> #1135

scherztc opened this issue Dec 13, 2023 · 4 comments · May be fixed by #1157
Assignees

Comments

@scherztc
Copy link
Contributor

Descriptive summary

When upgrading from hyrax 2.9.8 to 3.6

Failure/Error: <%= media_display https://github.com/presenter %>

Expected behavior

Actual behavior

Steps to reproduce the behavior

  1. Do this
  2. Then do this...

Related work

Link to related issues or prior related work here.

@Janell-Huyck
Copy link
Contributor

Here's the extended error message from a test:

ActionView::Template::Error: Devise could not find the Warden::Proxy instance on your request environment.
Make sure that your application is loading Devise and Warden as expected and that the Warden::Manager middleware is present in your middleware stack.
If you are seeing this on one of your tests, ensure that your tests are either executing the Rails middleware stack or that your tests are using the Devise::Test::ControllerHelpers module to inject the request.env['warden'] object for you.

  1. hyrax/file_sets/show.html.erb shows acrobat download link
    Failure/Error: <%= media_display @presenter %>

    ActionView::Template::Error:
    Devise could not find the Warden::Proxy instance on your request environment.
    Make sure that your application is loading Devise and Warden as expected and that the Warden::Manager middleware is present in your middleware stack.
    If you are seeing this on one of your tests, ensure that your tests are either executing the Rails middleware stack or that your tests are using the Devise::Test::ControllerHelpers module to inject the request.env['warden'] object for you.

    ./app/views/hyrax/file_sets/show.html.erb:5:in `_app_views_hyrax_file_sets_show_html_erb__483690133862941759_410880'

    ./spec/views/hyrax/file_sets/show.html.erb_spec.rb:39:in `block (2 levels) in <top (required)>'

    ------------------

    --- Caused by: ---

    Devise::MissingWarden:

    Devise could not find the Warden::Proxy instance on your request environment.

    Make sure that your application is loading Devise and Warden as expected and that the Warden::Manager middleware is present in your middleware stack.

    If you are seeing this on one of your tests, ensure that your tests are either executing the Rails middleware stack or that your tests are using the Devise::Test::ControllerHelpers module to inject the request.env['warden'] object for you.

    ./app/views/hyrax/file_sets/show.html.erb:5:in `_app_views_hyrax_file_sets_show_html_erb__483690133862941759_410880'

@Janell-Huyck
Copy link
Contributor

You can duplicate the error running this specific test:
./spec/views/hyrax/file_sets/show.html.erb_spec.rb:39

@Janell-Huyck
Copy link
Contributor

See PR# #1149

@scherztc scherztc self-assigned this Apr 16, 2024
@scherztc
Copy link
Contributor Author

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

Successfully merging a pull request may close this issue.

2 participants