Description

When migrating from version 1.3.5 (And I guess from other previous version, links such as:

[wiki:SomePage/SubPage "Oh, a link!"]

get converted as

[[SomePage:/InterWiki|"Oh, a link!"]]

which is wrong.

From reading the source code, I've noticed that the problem happens because each of the pages is migrated one at a time, and when each of the pages is being migrated, its text is also migrated and when the migration script encounters a link such as those already mentioned, it checks whether that destination page exists. This shouldn't be a problem if it checked them against the old data (on the pre160 directory), but it is checked against the recently created directory where not all the pages have been migrated (it is in the process of).

So, depending on how it walks the file system and in which order it gets the pages (and migrates them), some links will fail and some other will not.

Steps to reproduce

  1. Just create some links as above
  2. Migrate it to 1.6
  3. Check the result.

Example

Component selection

Details

MoinMoin Version

1.6.0

OS and Version

Linux

Python Version

2.5.1

Server Setup

Server Details

Language you are using the wiki in (set in the browser/UserPreferences)

en

Workaround

Discussion

Plan


CategoryMoinMoinBugFixed

MoinMoin: MoinMoinBugs/1.6.0MigrationFailsOnWikiLinks (last edited 2008-01-10 23:25:29 by ThomasWaldmann)