Rails アプリケーションに例外通知機能を設定しました。今日、index
テンプレートが見つからないという 2 番目の通知を受け取りました。
An ActionView::MissingTemplate occurred in products#index:
Missing template products/index, application/index with {:locale=>[:en, :de], :formats=>["text/html;text/plain"], :variants=>[], :handlers=>[:erb, :builder, :raw, :ruby, :coffee, :slim, :arb, :jbuilder]}. Searched in:
* "/home/releases/20160518143810/app/views"
-------------------------------
Request:
-------------------------------
* URL : http://example.com/shop
* HTTP Method: GET
* IP address : xx.xx.xx.xx
* Parameters : {"controller"=>"products", "action"=>"index"}
* Timestamp : 2016-06-07 08:19:13 +0200
* Server : vintage-shop.ch
* Rails root : /home/releases/20160518143810
* Process: 15714
製品のインデックス テンプレートがサーバー上にあり、VCS にチェックインされており、アプリケーションが 1 か月間実行されていることは事実です。だから私は本当に疑問に思っています、なぜこれが起こることができるのですか:
$ ls /home/releases/20160518143810/app/views/products/index.html.slim
# -> /home/releases/20160518143810/app/views/products/index.html.slim
この例外はどのように可能ですか?
更新: IP アドレスを調べましたが、顧客の出身地と思われる地域のものではありませんでした。したがって、これが何らかの攻撃であるかどうかは疑問ですが、テンプレートが存在する場合でも、例外をトリガーする方法についてはまだ疑問が残ります。