Closed yassan closed 6 years ago
ユーザーに紐付いた添付ファイルは検索対象外にしました。
I also confirmed this defect. Some plugins use Redmine’s attachment feature. Above case, people plugin uses the attachment feature to store user’s profile image as user’s attributes. After save the uploaded attachment, FullText’s after_save callback is fired. But the record object does not have the attribute, such as project_id, so Nomethod error happens.
init.rb:
[Project, News, Issue, Document, Changeset, Message, Journal, WikiPage, WikiContent, CustomValue, Attachment].each do |klass|
klass.include(FullTextSearch::Model)
end
Same error might happen if above models include FullTextSearch::Model are saved without project id. (プロジェクトごとのスコープではなく、グローバルなスコープで、Attachementを使うようなプラグインはエラーになる可能性があるかなと思います)
Hope this comment would be any help.
Thanks!
Same error might happen if above models include FullTextSearch::Model are saved without project id.
Tthat's right. The current search result page assumes that search target belongs to a project. If any useful use case is reported, we may support searching attachments that don't belong to a project. We just ignore attachments that don't belong to a project for now.
Thanks again. なんどもお手数おかけしてしまい恐れ入ります。とても便利なプラグインなので、本当にありがとうございます!
いえいえ!いろいろ調査してもらってこちらも助かっています!
以下のプラグインを使っている場合、コンフリクトします。 People - Plugins - Redmine
アバターアイコンを変更出来るのですが、変更を確定した際に以下の500エラーが出て、以下のログが出てました。
とあったので確認したのですが、 redmine_full_text_search/model.rb at L175 の辺りに、
を入れてみたところ、登録できるようになりました。
実行環境
Redmine 3.4.3 redmine_full_text_search v0.7.3 PGroonga 2.1.1 ruby 2.3.7p456 Rails 4.2.8 PostgreSQL 10.5 CentOS Linux release 7.5.1804 (Core)
PostgreSQLは公式のyumリポジトリを追加してインストール。 PGroongaもyumでインストール。
Redmineの状態