jspwiki-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jim Wise <jw...@draga.com>
Subject Re: Migration from JSPWiki 2.9 RCSFileProvider
Date Fri, 04 Jul 2014 22:25:40 GMT
Hi Juan,

Wasn’t able to get back to this for a few weeks due to other issues, but took some time
recently and played with this.

With the following patch, the ProviderConverter utility in this distribution did exactly what
I needed:

diff -r jspwiki-rcsfileprovider_20140604/src/main/java/org/apache/wiki/util/ProviderConverter.java
jw-new/src/main/java/org/apache/wiki/util/ProviderConverter.java
38a39,41
> import org.apache.wiki.auth.AuthenticationManager;
> 
96a100,101
>         props.setProperty( AuthenticationManager.PROP_SECURITY, "off");

(note that the jar files from WEB-INF/lib in the JSPWiki war must be in the class path, but
after the provided jar file for this to work). 

I’m now running in production with VersioningFileProvider, and will be proceeding to an
update to 2.10.1 next.

Thank you for your help with this!



On Jun 5, 2014, at 03:46 , Juan Pablo Santos Rodríguez <juanpablo.santos@gmail.com>
wrote:

> Hi Jim,
> 
> the RCS file provider zip includes a small utility class to perform the
> migration from RCS to VersioningFileProvider. It doesn't touch the original
> repository so maybe you'll want to take a look at it. Never used it myself,
> but at the very least should give you a starting point.
> 
> 
> HTH,
> juan pablo
> 
> 
> On Thu, Jun 5, 2014 at 2:02 AM, Jim Wise <jwise@draga.com> wrote:
> 
>> Thank you, Juan Pablo -- I'll give this a shot in the morning!
>> 
>> As Harry suggested, I'll try to work out a migration path in the longer
>> run -- presumably via a script to check out the successive versions to the
>> new-format document directory and synthesize a properties file from the RCS
>> log -- but this buys me time to do so!
>> 
>> Jim Wise
>> jwise@draga.com
>> 
>> Sent from my iPhone.
>> Digital signature available upon request.
>> 
>>> On Jun 4, 2014, at 6:37, Juan Pablo Santos Rodríguez <
>> juanpablo.santos@gmail.com> wrote:
>>> 
>>> Hi Jim,
>>> 
>>> I've attached the old RCSFileProvider to
>>> https://jspwiki-wiki.apache.org/Wiki.jsp?page=RCS%20File%20provider ,
>>> reachable through
>>> https://jspwiki-wiki.apache.org/Wiki.jsp?page=ContributedProviders
>>> 
>>> It contains a small maven project (sources + binaries) with the provider
>> +
>>> the ProviderConverter util (from RCS to VersioningFileProvider) classes
>>> that were available on 2.9. You'll have to add it to your WEB-INF/lib or
>>> reference it through the jspwiki.plugin.externalJars property, and
>>> obviously configure the RCS file provider on jspwiki(-custom).properties,
>>> as you were doing before.
>>> 
>>> Please keep in mind that this functionality is *not* mantained by the
>>> JSPWiki team. Anyone willing to enhance the (almost non-existent)
>>> documentation, to fix bugs, improve the provider, etc. will be gladly
>>> welcome.
>>> 
>>> 
>>> HTH,
>>> juan pablo
>>> 
>>> 
>>> 
>>>> On Sun, Jun 1, 2014 at 1:46 PM, Harry Metske <harry.metske@gmail.com>
>> wrote:
>>>> 
>>>> Jim,
>>>> 
>>>> I am not aware of any migration path from RCS provider to something
>> else. I
>>>> think that would require some scripting to convert RCS to
>>>> VersioningFileProvider format directory structure and file contents.
>>>> Our recommendation is VersioningFileProvider, that one supports all you
>>>> ask.
>>>> Their are other providers, that are not core providers and thus not
>>>> supported by the JSPWiki team at :
>>>> https://jspwiki-wiki.apache.org/Wiki.jsp?page=ContributedProviders
>>>> 
>>>> regards,
>>>> Harry
>>>> 
>>>> 
>>>> 
>>>>> On 31 May 2014 23:33, Jim Wise <jwise@draga.com> wrote:
>>>>> 
>>>>> Hello all,
>>>>> 
>>>>> I suspect this may be a FAQ, but I couldn’t find anything about this
on
>>>>> the Wiki or mailing list archives.
>>>>> 
>>>>> I have a JSPWiki installation which has been running since August of
>>>> 2009,
>>>>> using the RCSFileProvider.  I have successfully upgraded the JSPWiki
>>>>> installation several times, and have migrated successfully across
>>>>> underlying OS platforms and Java Web environments.  I am currently
>>>> running
>>>>> JSPWiki 2.9.1 on RHEL 6, under Tomcat.
>>>>> 
>>>>> To date, I have been using RCSFileProvider for this installation, and
>>>> have
>>>>> accumulated nearly five years of history in this provider.
>>>>> 
>>>>> Given the removal of RCSFileProvider in 2.10, I am looking for
>>>>> recommendations for migration strategy.  In particular:
>>>>> 
>>>>> * *Is there a migration path from the JSPWiki 2.9 RCSFileProvider to
>> the
>>>>> JSPWiki 2.10 VersioningFileProvider which preserves page history,
>>>> including
>>>>> users and modification timestamps on historical revisions (this is the
>>>>> important question, as this is blocking upgrade to the current
>> version)?*
>>>>> 
>>>>> * Is there another page provider which you would recommend, in place
of
>>>>> VersioningFileProvider, assuming my goal is to support versioning, with
>>>>> preservation of modification timestamps and modifying user over the
>> next
>>>> N
>>>>> years of this JSPWiki installation?
>>>>> 
>>>>> Thanks in advance for any recommendations,
>>>>> --
>>>>> Jim Wise
>>>>> jwise@draga.com
>>>> 
>> 

-- 
				Jim Wise
				jwise@draga.com





Mime
View raw message