1. Haruyuki Iida
  2. redmine_wiki_extensions
  3. Issues

Issues

Issue #27 resolved

wiki#show for new wiki without edit privileges causes error 500

Björn Peemöller
created an issue

Hi,

I can repeatedly cause an error 550 in the wiki extensions by the following steps:

  • Create a new public project with wiki and wiki extensions enabled.
  • Logout.
  • Navigate to the new wiki <redmine-url>/projects/<new-project>/wiki
  • An error 500 is issued.

My setting:

  • Redmine 2.2.2
  • Wiki extensions 0.6.2

The error information:

ERROR MESSAGE:

NoMethodError: undefined method `text' for nil:NilClass

WHERE:

wiki#show

[PROJECT_ROOT]/plugins/redmine_wiki_extensions/lib/wiki_extensions_wiki_controller_patch.rb:82
[PROJECT_ROOT]/plugins/redmine_wiki_extensions/lib/wiki_extensions_wiki_controller_patch.rb:58
[PROJECT_ROOT]/app/controllers/application_controller.rb:378
[PROJECT_ROOT]/app/controllers/application_controller.rb:366
[PROJECT_ROOT]/app/controllers/wiki_controller.rb:71

The normal wiki Controller renders a 404 page in this situation (non-existent wiki, no edit privileges), but the extensions seem to intercept this, and accesses @content in wiki_extensions_add_fnlist ([PROJECT_ROOT]/plugins/redmine_wiki_extensions/lib/wiki_extensions_wiki_controller_patch.rb:82), which is nil.

Comments (3)

  1. Log in to comment