Uploaded image for project: 'JSPWiki'
  1. JSPWiki
  2. JSPWIKI-30

Rename may cause dataloss

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Critical
    • Resolution: Fixed
    • 2.5.139-beta
    • 2.8
    • Core & storage
    • None

    Description

      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.

      Attachments

        1. realerrorpage.txt
          78 kB
          florian1978
        2. Rename.jsp.html
          0.2 kB
          florian1978

        Activity

          People

            Unassigned Unassigned
            jalkanen Janne Jalkanen
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: