https://www.redmine.org/https://www.redmine.org/favicon.ico?16793021292010-03-17T21:27:28ZRedmineRedmine - Patch #5035: Migrate from trac - Errors in wiki formatinghttps://www.redmine.org/issues/5035?journal_id=152392010-03-17T21:27:28ZBryce Nordgren
<ul></ul><p>This appears to be more comprehensive in terms of wiki formatting fixes than <a class="issue tracker-3 status-5 priority-4 priority-default closed" title="Patch: Trac importer improvement patch (Closed)" href="https://www.redmine.org/issues/5110">#5110</a>. <a class="issue tracker-3 status-5 priority-4 priority-default closed" title="Patch: Trac importer improvement patch (Closed)" href="https://www.redmine.org/issues/5110">#5110</a> adds ticket number mapping on import and Subversion log message changing.</p> Redmine - Patch #5035: Migrate from trac - Errors in wiki formatinghttps://www.redmine.org/issues/5035?journal_id=152922010-03-19T13:15:08ZMike Stupalov
<ul><li><strong>File</strong> <a href="/attachments/3407">migrate_from_trac.rake</a> <a class="icon-only icon-download" title="Download" href="/attachments/download/3407/migrate_from_trac.rake">migrate_from_trac.rake</a> added</li><li><strong>File</strong> <a href="/attachments/3408">migrate_from_trac_v3.patch</a> <a class="icon-only icon-download" title="Download" href="/attachments/download/3408/migrate_from_trac_v3.patch">migrate_from_trac_v3.patch</a> added</li><li><strong>% Done</strong> changed from <i>60</i> to <i>70</i></li></ul><p>Very good. I combined these patches.</p>
<p>For migrate svn, use:</p>
<p><code>rake redmine:migrate_from_trac_svn RAILS_ENV="production"</code></p>
<p>out:<br /><pre>
WARNING: all commit messages with references to trac pages will be modified
Are you sure you want to continue ? [y/N] y
Subversion repository url []: http://svn.server.dom/project
Subversion repository username []: user
Subversion repository password []: secret
Redmine project identifier []: project-id
</pre></p>
<p>Also made a few corrections and additions to convert textile format (including previous):</p>
<ul>
<li>Convert macro - [TOC]</li>
<li>Convert source links.</li>
<li>In links recognized quotes and double quotes. (Because Trac supports both types of quotes).</li>
</ul>
<p>remaining problems of converting the format:</p>
<ul>
<li>before and after the tables have to add blank lines. (Trac supports a table without the initial and final blank line, and Redmine - no)</li>
<li>text within the code should be left as is. (now converted to all, including the code.)</li>
</ul>
<p>Patch: <a class="attachment" href="https://www.redmine.org/attachments/3408">migrate_from_trac_v3.patch</a><br />File: <a class="attachment" href="https://www.redmine.org/attachments/3631">migrate_from_trac.rake</a></p> Redmine - Patch #5035: Migrate from trac - Errors in wiki formatinghttps://www.redmine.org/issues/5035?journal_id=153242010-03-20T23:17:23ZBryce Nordgren
<ul></ul><p>Hi Mike,</p>
<p>I closed <a class="issue tracker-3 status-5 priority-4 priority-default closed" title="Patch: Trac importer improvement patch (Closed)" href="https://www.redmine.org/issues/5110">#5110</a> as resolved because you incorporated it here. I did some more issue triage over on the forums. There were open issues related to multibyte characters, header imports, "special links", and importing ticket keywords. I also included a "dependency graph" of sorts, indicating which issues tried to address problems raised in which other issues.</p>
<p>I'm new to Ruby, so I constrained myself to highlighting the main issues. I'd be grateful if you took a look. If everything on that page is addressed by your patch, I think a whole slew of issues could be closed when <a class="issue tracker-3 status-1 priority-4 priority-default" title="Patch: Migrate from trac - Errors in wiki formating (New)" href="https://www.redmine.org/issues/5035">#5035</a> is.</p>
<p>Check out: <a class="external" href="http://www.redmine.org/boards/1/topics/12273">http://www.redmine.org/boards/1/topics/12273</a></p>
<p>Thanks for your work!</p> Redmine - Patch #5035: Migrate from trac - Errors in wiki formatinghttps://www.redmine.org/issues/5035?journal_id=153472010-03-22T14:08:03ZMike Stupalov
<ul><li><strong>File</strong> <a href="/attachments/3424">migrate_from_trac.rake</a> <a class="icon-only icon-download" title="Download" href="/attachments/download/3424/migrate_from_trac.rake">migrate_from_trac.rake</a> added</li><li><strong>File</strong> <a href="/attachments/3425">migrate_from_trac_v4.patch</a> <a class="icon-only icon-download" title="Download" href="/attachments/download/3425/migrate_from_trac_v4.patch">migrate_from_trac_v4.patch</a> added</li></ul><p>Updated version.<br />Changes:</p>
<ul>
<li>completely fixed bugs <a class="issue tracker-1 status-1 priority-4 priority-default" title="Defect: Trac to Redmine wiki migration problems (New)" href="https://www.redmine.org/issues/3910">#3910</a></li>
<li>small fixes conversion links.</li>
<li>added conversion attachments links (ex. [attachment:file.txt]). Closes <a class="issue tracker-1 status-1 priority-4 priority-default" title="Defect: Trac Importer: Attachments in Wiki will not converted correctly (New)" href="https://www.redmine.org/issues/2146">#2146</a></li>
<li>importing Trac keywords (include corrected patch from <a class="issue tracker-3 status-1 priority-4 priority-default" title="Patch: Importing Trac "Ticket keywords" (New)" href="https://www.redmine.org/issues/2504">#2504</a>)</li>
</ul>
<p>Patch: <a class="attachment" href="https://www.redmine.org/attachments/3425">migrate_from_trac_v4.patch</a><br />File: <a class="attachment" href="https://www.redmine.org/attachments/3631">migrate_from_trac.rake</a></p> Redmine - Patch #5035: Migrate from trac - Errors in wiki formatinghttps://www.redmine.org/issues/5035?journal_id=153872010-03-23T14:44:36ZMike Stupalov
<ul><li><strong>File</strong> <a href="/attachments/3440">migrate_from_trac_v5.patch</a> <a class="icon-only icon-download" title="Download" href="/attachments/download/3440/migrate_from_trac_v5.patch">migrate_from_trac_v5.patch</a> added</li></ul>I founded and fix some new issues:
<ol>
<li>Not converted an attachments in non-latin filename encoding.
<ul>
<li>Trac encodes the filenames in hexadecimal number using uppercase letters.</li>
<li>For the wiki pages also need to encode the subdirectory.</li>
</ul>
</li>
<li>"Issue categories" not converted "Assigned to" user.</li>
<li>If specify the "Target project identifier" with a capital letter, then the error occurred.</li>
</ol>
<p>Patch: <a class="attachment" href="https://www.redmine.org/attachments/3440">migrate_from_trac_v5.patch</a></p>
<p>While no changes are made to the main repository, I made a fork of the file migrate_from_trac.rake here: <a class="external" href="http://github.com/landy2005/Redmine-migrate-from-Trac">http://github.com/landy2005/Redmine-migrate-from-Trac</a></p>
<p><em>P.S. All the changes I check on 3 big projects that we want to migrate from Trac.</em></p> Redmine - Patch #5035: Migrate from trac - Errors in wiki formatinghttps://www.redmine.org/issues/5035?journal_id=154592010-03-25T13:47:48ZMike Stupalov
<ul></ul><p>I update <strong>migrate_from_trac.rake</strong></p>
Changes:
<ul>
<li>Changed progress meter to a simple progress bar.</li>
<li>Moved requires for task ':migrate_from_trac_svn' to own module.</li>
</ul>
<p>See latest version here: <a class="external" href="http://github.com/landy2005/Redmine-migrate-from-Trac">http://github.com/landy2005/Redmine-migrate-from-Trac</a></p> Redmine - Patch #5035: Migrate from trac - Errors in wiki formatinghttps://www.redmine.org/issues/5035?journal_id=154792010-03-26T18:13:57ZBryce Nordgren
<ul></ul><p>Hi Mike,</p>
<p>Still watching your progress and appreciate all your work. I'm actually delaying the migration of our repositories until your improvements are finalized. :)</p>
<p>Thanks again!</p> Redmine - Patch #5035: Migrate from trac - Errors in wiki formatinghttps://www.redmine.org/issues/5035?journal_id=162422010-04-28T15:56:03ZBryce Nordgren
<ul><li><strong>File</strong> <a href="/attachments/3631">migrate_from_trac.rake</a> <a class="icon-only icon-download" title="Download" href="/attachments/download/3631/migrate_from_trac.rake">migrate_from_trac.rake</a> added</li><li><strong>% Done</strong> changed from <i>70</i> to <i>90</i></li></ul><p>Hi Mike. I'm starting to use this (the version on github) to migrate our collection of Trac instances over to a new server. Great job! :)</p>
<p>I did have to add "PageTemplates" to the list of Trac pages to discard. I also commented out the part that creates a wiki page for every milestone.</p>
<p>I'm bumping this to 90% done just because I think the only thing left to do is have the admins integrate it with the main code base. I can verify that it works with my redmine, which was built from trunk on April 26, 2010.</p> Redmine - Patch #5035: Migrate from trac - Errors in wiki formatinghttps://www.redmine.org/issues/5035?journal_id=162432010-04-28T16:02:43ZBryce Nordgren
<ul></ul><p>I know there are too many files named the same thing. <a href="http://www.redmine.org/attachments/3631/migrate_from_trac.rake" class="external">This migrate_from_trac.rake</a> is the version from github that I used. It has "PageTemplates" added, but it will still create a wiki page for every milestone.</p> Redmine - Patch #5035: Migrate from trac - Errors in wiki formatinghttps://www.redmine.org/issues/5035?journal_id=162522010-04-29T06:27:14ZMike Stupalov
<ul></ul><p>OK, I also add "PageTemplates" to the list of Trac pages to discard. :)<br />But I do not understand what you propose to do with milestone? In your code, no changes associated with it.</p>
<p>In addition, I discovered another problem. The script does not convert the CC list to watchers. I'm working on correcting this.</p> Redmine - Patch #5035: Migrate from trac - Errors in wiki formatinghttps://www.redmine.org/issues/5035?journal_id=162992010-04-30T12:30:51ZBryce Nordgren
<ul></ul><p>Well, in the version I uploaded, I didn't change the milestone part. In the version I used to migrate my trac instances, I commented out the 6 lines that create a wiki page for every milestone. Basically I did this because I have no use for a wiki page with the milestone text on it. The "version" page (with the same text) serves my purposes.</p>
<p>However, I didn't consider that to be an "error", just my personal preference, so I didn't change the code for that part.</p>
<p>Sorry for the confusion.</p> Redmine - Patch #5035: Migrate from trac - Errors in wiki formatinghttps://www.redmine.org/issues/5035?journal_id=163032010-04-30T12:39:14ZBryce Nordgren
<ul></ul><p>One thing I did find is that when I converted trac instances where we never bothered to make a personal page (e.g., first name, last name, email), the script now assigns all tickets to Redmine Admin. As a matter of fact, I'm finding that converting trac instances with properly defined users causes the conversion script to create many unwanted accounts. This is mostly because, at the same time I'm switching from Trac to Redmine, I'm also switching from authenticating off of <code>htpasswd</code> accounts to the corporate Active Directory. I find myself locking the accounts which were created during the conversion process, but which can never be used again due to the conversion.</p> Redmine - Patch #5035: Migrate from trac - Errors in wiki formatinghttps://www.redmine.org/issues/5035?journal_id=192352010-08-11T14:26:24ZMichalis Miatidis
<ul></ul><p>Everything OK except:</p>
<p>1) Requires merge with Patch <a class="issue tracker-3 status-1 priority-5 priority-high2" title="Patch: migrate_from_trac does not support trac 0.12 (New)" href="https://www.redmine.org/issues/5764">#5764</a> to work with TRAC 0.12</p>
<p>2) At my local installation, migrated everything apart from users with Firstname of single world and Lastname as null.</p> Redmine - Patch #5035: Migrate from trac - Errors in wiki formatinghttps://www.redmine.org/issues/5035?journal_id=214042010-10-14T15:04:14Zpatrick Sherman
<ul></ul><p>Hi,</p>
<p>This rake works perfectly with tickets but not with the wiki.<br />It stop conversion at the first accent and links with another page are lost.<br />What should I need to do?</p>
<p>Regards</p> Redmine - Patch #5035: Migrate from trac - Errors in wiki formatinghttps://www.redmine.org/issues/5035?journal_id=214372010-10-15T10:04:13ZAlexander Sapozhnikov
<ul></ul><p>redmine:migrate_from_trac_svn doesn't work. First time I got message:</p>
<pre><code>Could not find issue custom field 'TracID'</code></pre>
<p>I add custom field <code>TracID</code> and got new error:</p>
<pre><code>wrong number of arguments (7 for 4)</code></pre>
<p>When spawned with <code>--trace</code> both on Redmine 0.9.6 and on 1.0.2 too:<pre>path/to/redmine/lib/tasks/migrate_from_trac.rake:910:in `initialize'
path/to/redmine/lib/tasks/migrate_from_trac.rake:910:in `new'
path/to/redmine/lib/tasks/migrate_from_trac.rake:910:in `scm'
path/to/redmine/lib/tasks/migrate_from_trac.rake:873:in `migrate'
path/to/redmine/lib/tasks/migrate_from_trac.rake:935</pre></p> Redmine - Patch #5035: Migrate from trac - Errors in wiki formatinghttps://www.redmine.org/issues/5035?journal_id=214382010-10-15T10:10:41ZAlexander Sapozhnikov
<ul></ul><p>Line 910 is:<pre><code class="ruby syntaxhl"><span class="vi">@scm</span> <span class="o">||=</span> <span class="no">SvnExtendedAdapter</span><span class="p">.</span><span class="nf">new</span> <span class="vc">@@svn_url</span><span class="p">,</span> <span class="vc">@@svn_url</span><span class="p">,</span> <span class="vc">@@svn_username</span><span class="p">,</span> <span class="vc">@@svn_password</span><span class="p">,</span> <span class="mi">0</span><span class="p">,</span> <span class="s2">""</span><span class="p">,</span> <span class="kp">nil</span></code></pre>I <del>remove</del> hide 3 last arguments, but see same error.</p> Redmine - Patch #5035: Migrate from trac - Errors in wiki formatinghttps://www.redmine.org/issues/5035?journal_id=214392010-10-15T10:57:39ZAlexander Sapozhnikov
<ul></ul><p>redmine:migrate_from_trac works, but acts as described in <a class="issue tracker-1 status-1 priority-4 priority-default" title="Defect: Incomplete migration from Trac to Redmine (New)" href="https://www.redmine.org/issues/6632">#6632</a> — it ignore fields <code>lft</code>, <code>rgt</code> and <code>root_id</code> in table <code>issues</code>.</p> Redmine - Patch #5035: Migrate from trac - Errors in wiki formatinghttps://www.redmine.org/issues/5035?journal_id=214672010-10-16T07:14:17ZMike Stupalov
<ul><li><strong>Assignee</strong> changed from <i>Jean-Philippe Lang</i> to <i>Felix Schäfer</i></li><li><strong>% Done</strong> changed from <i>90</i> to <i>60</i></li></ul><p>All many thanks for the found errors.<br />Unfortunately the main developers redmine don't give attention to a script of migration from trac.</p>
<p>I will try to look at the arisen errors. But in connection with study at me hasn't enough time, therefore fast correction I do not promise :)I will try to look at the arisen errors. But in connection with study at me hasn't enough time, therefore fast correction I do not promise :)</p>
<p>Please send more version informations trac, what database is used, a debug output of a script and certainly a command output:<br /><pre>RAILS_ENV="production" script/about</pre></p> Redmine - Patch #5035: Migrate from trac - Errors in wiki formatinghttps://www.redmine.org/issues/5035?journal_id=214792010-10-16T18:29:31ZFelix Schäfer
<ul><li><strong>Assignee</strong> deleted (<del><i>Felix Schäfer</i></del>)</li></ul><p>Please don't assign issues to anyone who hasn't said to do so, thanks.</p> Redmine - Patch #5035: Migrate from trac - Errors in wiki formatinghttps://www.redmine.org/issues/5035?journal_id=223462010-11-13T03:54:28ZMichał Wróbel
<ul></ul><p>I made some <a href="https://github.com/xmxwx/redmine/compare/61c0b8c249...cb185a40db" class="external">patches</a> which improve TracWiki conversion.</p>