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

[Rails 5.1.0 Compatibility BugFix] Inserting middleware when catch_xml_errors is set to true #234

Merged
merged 1 commit into from
Oct 6, 2017

Conversation

bogdanRada
Copy link
Contributor

Hello,
I was trying today to upgrade one of my projects to rails 5.1.0 , which depends to this gem and was failing with error: "No such middleware to insert after: "ActionDispatch::ShowExceptions",

The issue was that here: https://github.com/rails/rails/blob/master/actionpack/lib/action_dispatch/middleware/stack.rb#L104 , the check is done now on the class itself directly when rails tries to find the index of the middleware "ActionDispatch::ShowExceptions"

So strings are not working anymore when passing middlewares to insert_after in the stack, putting directly the class name instead works perfectly.

I tested this with other rails versions and seems to work fine also. Please let me know what you think.

Thank you very much.

@bogdanRada bogdanRada changed the title Fix issue when inserting middleware after ActionDispatch::ShowExceptions when catch_xml_errors is set to true [Rails 5.1.0 Compatibility BugFix] Inserting middleware when catch_xml_errors is set to true May 2, 2017
@bogdanRada
Copy link
Contributor Author

any updates on this? This is a roadblock for me and i can't update my applications to latest rails version because of this issue.

@jdsampayo
Copy link
Contributor

+1 can we get this included?

@lostapathy
Copy link
Contributor

@inossidabile thanks for merging #238. Can we merge this as well and then push a new build as 0.12.0 to rubygems? Many thanks!

@inossidabile inossidabile merged commit 4f2a783 into inossidabile:master Oct 6, 2017
@bogdanRada
Copy link
Contributor Author

thank you very much also :)

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 this pull request may close these issues.

4 participants