プロジェクト

全般

プロフィール

Vote #64309

完了

Missing checks for nils in the WikiController

Admin Redmine さんが3年以上前に追加. 3年以上前に更新.

ステータス:
Closed
優先度:
通常
担当者:
-
カテゴリ:
Wiki_1
対象バージョン:
開始日:
2008/12/19
期日:
進捗率:

0%

予定工数:
category_id:
1
version_id:
2
issue_org_id:
2360
author_id:
5
assigned_to_id:
5
comments:
2
status_id:
5
tracker_id:
1
plus1:
0
affected_version:
closed_on:
affected_version_id:
ステータス-->[Closed]

説明

I had a public page on my wiki which I moved to a private project. Web spiders have cached the url and are trying to hit the pages. Instead of getting 404 errors though, they are throwing NoMethodErrors on a nil object. It looks like several actions in the WikiController are not checking for nil object before calling methods on them

  • undefined method diff' for nil:NilClass [RAILS_ROOT]/app/controllers/wiki_controller.rb:129:indiff'
  • undefined method annotate' for nil:NilClass [RAILS_ROOT]/app/controllers/wiki_controller.rb:135:inannotate'
  • undefined method content' for nil:NilClass [RAILS_ROOT]/app/controllers/wiki_controller.rb:115:inhistory'

journals

Fixed in r2145.
Just saw that you assigned it to you, sorry.
--------------------------------------------------------------------------------
Jean-Philippe Lang wrote:
> Just saw that you assigned it to you, sorry.

It's ok. I assign issues to myself that I'm confidant that I can handle, feel free to steal them from me.
--------------------------------------------------------------------------------

Admin Redmine さんが3年以上前に更新

  • カテゴリWiki_1 にセット
  • 対象バージョン0.8_2 にセット

他の形式にエクスポート: Atom PDF

いいね!0
いいね!0