jspwiki-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Thomas Hinterndorfer (JIRA)" <j...@apache.org>
Subject [jira] Commented: (JSPWIKI-30) Rename may cause dataloss
Date Wed, 04 Jun 2008 12:21:45 GMT

    [ https://issues.apache.org/jira/browse/JSPWIKI-30?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12602259#action_12602259
] 

Thomas Hinterndorfer commented on JSPWIKI-30:
---------------------------------------------

I experienced similar problems with renaming.
After restarting Tomcat the first renaming of a page causes the main page to be overwritten
with an empty page.
I don't know why but there is a call to putPageText(main, ""), which writes the main page
with an empty string.
More renaming doesn't affect the main page, only the first time after restarting tomcat.
This problem occurs with JSPWiki 2.6.2 and the FileSystemProvider, the VersioningFileProvider
doesn't overwrite
the main page.

> Rename may cause dataloss
> -------------------------
>
>                 Key: JSPWIKI-30
>                 URL: https://issues.apache.org/jira/browse/JSPWIKI-30
>             Project: JSPWiki
>          Issue Type: Bug
>          Components: Core & storage
>    Affects Versions: 2.5.139-beta
>            Reporter: Janne Jalkanen
>            Priority: Critical
>             Fix For: 2.8
>
>         Attachments: realerrorpage.txt, Rename.jsp.html
>
>
> If rename fails due to an exception in PageRenamer, the end result may be wiping out
of some of the pages that refer to the linking page.  The preconditions seem to include a
complicated link sentence.  I managed to get this to happen on jspwiki.org by renaming page
"MyCodingStandard" to "JSPWikiCodingStandard", which resulted in some of the renaming to fail.
 I think some of the links were of the form "my coding standard".
> Suggested correction: let's get rid of the link "guesser", and just modify the actual
link reference - and if it's missing, we'll add one.
> Note that this is not real dataloss; you can still get the old page from the page history.
 It just causes a new, empty page to be put into the repository.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


Mime
View raw message