プロジェクト

全般

プロフィール

Vote #63812

未完了

Importing trac's [wiki:"String WikiString"] translates to [[String [[WikiString]]]]

Admin Redmine さんがほぼ2年前に追加. ほぼ2年前に更新.

ステータス:
Needs feedback
優先度:
通常
担当者:
-
カテゴリ:
Importers_15
対象バージョン:
-
開始日:
2008/09/02
期日:
進捗率:

0%

予定工数:
category_id:
15
version_id:
0
issue_org_id:
1843
author_id:
1968
assigned_to_id:
0
comments:
10
status_id:
10
tracker_id:
1
plus1:
0
affected_version:
closed_on:
affected_version_id:
5
ステータス-->[Needs feedback]

説明

Hi,

When importing trac's [wiki:"String WikiString"] it translates to [[String [[WikiString]]]]

Removing line source:/tags/0.7.3/lib/tasks/migrate_from_trac.rake#L244 solve this for me because I don't use WikiCaps.

I've tried to fix it, but don't have enough regexp magic.

ruby 1.8.5
rails 2.0.2

Thanks

daniel


journals

also:
<pre>
Esta [...] linux [wiki:"gtitqb"] do itqb, [...] externa da [wiki:"fw"].

Na [wiki:"fw"] a rede [...] a [wiki:"DMZ"], onde [...] e a [wiki:"VPN"], utilizada [...]
</pre>

gets imported to:

<pre>
Esta [...] linux [[gtitqb"] do itqb [...] externa da [wiki"fw]].

Na [[fw"] a rede [...] a [wiki"DMZ"] onde [...] e a [wiki"VPN]], utilizada [...]
</pre>

Thanks again.

daniel
--------------------------------------------------------------------------------
Hi,
i have taken a look at it...

It seemed to be laying in the line source:/tags/0.7.3/lib/tasks/migrate_from_trac.rake#L237....
I have create a patch which will exactly handle the previous situation and is placed before the lines, cause i'm not sure if this has different relationships...but it will product correct results during test migrations.

--------------------------------------------------------------------------------
Ok. I have take a second look and found out that many of these RegEx are using
greedy-behaviour (.* instead of .*?). I have appended a patch to use non-greedy-behaviour instead.
You can simply forget the defect-1843.patch).

--------------------------------------------------------------------------------
Hi,

I've tried your non-greedy.patch against version 0.7.3, and it solved the ![[String [[WikiString]]]] issue. (thanks)

The _"text [wiki:"page1"] text [wiki:"page2"] text."_ still gets converted to _"text [[page1"] text [wiki"page2]] text."_
The problem is the " as _"text [wiki:page1] text [wiki:page2] text."_ gets correctly converted.

Thanks again

daniel
--------------------------------------------------------------------------------
Hi,

My mistake, I still had a comment on line 244 that converted WikiCaps, the patch didn't fix it yet (as you stated on #2 comment)
Sorry about that.

daniel
--------------------------------------------------------------------------------
Hi,
I've given another go at the regexp problem, started with your first patch and fixed the two problems, on the first check, not breaking any thing else.
daniel
--------------------------------------------------------------------------------
I've find and solved another bug, [wiki:"test1/test2" "test"] didn't work.
Here is a patch against 0.7.3.
I've converted 2800 wiki edits from trac to reamine and "we":http://www.itqb.unl.pt are now using redmine for our internal management.
Thanks for a great piece of software.

daniel

--------------------------------------------------------------------------------

--------------------------------------------------------------------------------
Again another trac importer bug. Any news on this? Maybe someone can confirm, that this is fixed?
--------------------------------------------------------------------------------

--------------------------------------------------------------------------------

Admin Redmine さんがほぼ2年前に更新

  • カテゴリImporters_15 にセット

他の形式にエクスポート: Atom PDF

いいね!0
いいね!0