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

Fixes for rails 7.1 (Koi 2.6 branch) #553

Merged
merged 5 commits into from
Dec 12, 2023
Merged

Conversation

sobakasu
Copy link
Contributor

Add missing protect_from_forgery in Koi::ApplicationController

we have a skip_before_action :verify_authenticity_token in Koi::UploadsController. This throws an error in rails 7.1 if not using protect_from_forgery.

Alternative approach would be to remove the skip_before_action :verify_authenticity_token from Koi::UploadsController. Seems like we should be using protect_from_forgery though.

@sobakasu sobakasu force-pushed the feature/2.6-rails-7.1 branch from 6cd9931 to 587d8b4 Compare November 13, 2023 05:47
@sobakasu sobakasu requested a review from sfnelson November 13, 2023 05:48
Copy link
Contributor

@sfnelson sfnelson left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks reasonable, please get someone else to have a look too

@sobakasu sobakasu requested a review from mattr November 13, 2023 06:56
@sobakasu sobakasu changed the title Fixes for rails 7.1 Fixes for rails 7.1 (Koi 2.6 branch) Nov 13, 2023
@sobakasu
Copy link
Contributor Author

I've tested these changes with PFW main branch (rails 7.0) and it's compatible with rails 7.0 also.

@sobakasu sobakasu force-pushed the feature/2.6-rails-7.1 branch from 587d8b4 to 85d9c10 Compare December 12, 2023 05:56
@sobakasu sobakasu merged commit 85d9c10 into release/2.6 Dec 12, 2023
2 checks passed
@sobakasu sobakasu deleted the feature/2.6-rails-7.1 branch December 12, 2023 05:56
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.

3 participants