Defect #34634

Can't add deleted wiki Tab (404)

Added by Ivan Cenov 3 months ago. Updated 3 months ago.

Status:ConfirmedStart date:
Priority:NormalDue date:
Assignee:Ivan Cenov% Done:

0%

Category:Wiki
Target version:-
Resolution: Affected version:

Description

This issue is inspired by a thread in the forum (Can't add deleted wiki Tab. (404))

An user delete all wiki pages including the root page. Then he could not see the root page and could not create wiki pages any more.

The solution was to disable Wiki module and then enable it again. Then the root wiki page appeared again (may be it has been recreated on enabling wiki module).

So I think that it should be harder to delete the root wiki page or make it not erasable.
However, if it remains erasable, Wiki module should be made inactive when this page is deleted.


Related issues

Related to Redmine - Patch #34643: Cleanups and fixes after Wiki tab removal from project se... New

History

#1 Updated by Ivan Cenov 3 months ago

Environment

Redmine version 3.4.4.devel
Ruby version 2.4.1-p111 (2017-03-22) [x86_64-linux]
Rails version 5.1.4
Environment production
Database adapter Mysql2

#2 Updated by Mischa The Evil 3 months ago

  • Status changed from New to Confirmed
  • Assignee set to Mischa The Evil

Thanks for opening this issue. I've been reading along and it already got me curious, so I already had a look at the source. I can confirm the reported behavior (at least partially, as far as I've tested). Along the way I found several other issues too.
I'm working on providing a patch.

#3 Updated by Mischa The Evil 3 months ago

  • Related to Patch #34643: Cleanups and fixes after Wiki tab removal from project settings (#26579) added

#4 Updated by Mischa The Evil 3 months ago

  • Category set to Wiki
  • Assignee changed from Mischa The Evil to Ivan Cenov

Ivan Cenov wrote:

An user delete all wiki pages including the root page. Then he could not see the root page and could not create wiki pages any more.

Mischa The Evil wrote:

I can confirm the reported behavior (at least partially, as far as I've tested).

I confirm this is a problem when a whole project wiki is deleted. I don't see this being a problem when deleting single wiki pages.
@Ivan: can you too confirm this (also with the OP of Can't add deleted wiki Tab. (404))?

I have posted a patch that fixes this case as part of #34643 (file: 4. Disable the wiki module after deletion of a project wiki.). It should be applicable on its own.

#5 Updated by Mischa The Evil 3 months ago

  • Description updated (diff)

Also available in: Atom PDF