Vote #75030
完了Random crash when using custom fields
0%
説明
We ("Planio":https://plan.io) have seen several random crashes when using custom fields and have narrowed the problem to the usage of @super@ to access attribute setters and getters in ActiveRecord models. According the the "@ActiveRecord@ docs":http://api.rubyonrails.org/classes/ActiveRecord/Base.html#class-ActiveRecord::Base-label-Overwriting+default+accessors, the preferred way to set and get a value from within a custom setter and getter is to use @read_attribute@ and @write_attribute@.
journals
The attached patch changes the @super@ calls in @CustomField#possible_values@ and @CustomField#possible_values=@ to @read_attribute@ and @write_attribute@.
--------------------------------------------------------------------------------
--------------------------------------------------------------------------------
I experience some random crashed too. Isn't your problem the same as my problem which I worked around using the attached patch?
--------------------------------------------------------------------------------
Patch applied in r12968, thanks.
--------------------------------------------------------------------------------
Merged.
--------------------------------------------------------------------------------
Admin Redmine さんが約4年前に更新
- カテゴリ を Code cleanup/refactoring_30 にセット
- 対象バージョン を 2.5.1_82 にセット