Closed niosHD closed 9 years ago
I managed to work around the it by adding
attr_accessible :url, :auth_user, :auth_password, :show_compact, :wait_for_build_id
to the jenkins_setting model (The redmine 3 Gemfile imports the protected_attributes gem.)
This is the right thing to do.
in addition to sanitizing the params dict with StrongParameters (require, permit). However, I am unsure if this is the right fix, especially with backward compatibility in mind.
As you said this won't be backward compatible as StrongParameters don't exist in Redmine 2.x / Rails3. I will add StrongParameters when Redmine 2.x branch will be marked as obsolete.
For now attr_accessible
do the job.
Thank you!
Hi, I just installed your plugin into redmine 3 and discovered an issue when saving a Jenkins connection.
Error:
The problem seems to be related to ProtectedAttributes/StrongParameters. I managed to work around the it by adding
attr_accessible :url, :auth_user, :auth_password, :show_compact, :wait_for_build_id
to the jenkins_setting model in addition to sanitizing the params dict with StrongParameters (require, permit). (The redmine 3 Gemfile imports the protected_attributes gem.) However, I am unsure if this is the right fix, especially with backward compatibility in mind.Regards, niosHD
Environment for completeness: