Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

UDMF Framework setted up on mediawiki with history framework, no errors but still all pages have been created by admin and now.

Peter Csiba
Contributor
December 20, 2011

I successfully run the UWC lifecycle for my Mediawiki with also importing the history. Now I want also to include users and timestamps at which the pages were updated (and this metadata should be also available for all revisions of a page). So I run to the UDMF framework.

As stated in the documentation a I have setted the UDMF framework.

Exporter:

## {user:foobar}
## {timestamp:yyyymmddhhmmss}
udmf=true

Converter:

## framework to check if the username is an existing confluence user
Mediawiki.0004.userdate.class=com.atlassian.uwc.converters.mediawiki.UserDateConverter
Mediawiki.0004.users-must-exist.property=false

And installed the related Confluence User Date Metadata Plugin, restarted Tomcat and in Confluence administration checked that the plugin is there and running.

Then I executed the two steps:

  • Export data from my wiki using the UWC tool.
  • Convert and Import them into Confluence using the UWC tool.

But two not expected things happened:

  • Not all pages (and revisions) have the {user:} and {timestamp:} tags in their first lines after export from wiki. Just about 15% of them have these tags. I checked my database and there all revisions have user and timestamp metadata.
  • All pages after import (and convert) into Confluence have been created "now by admin" (also the revision pages). (With "now" I mean almost now).

I have already restarted all services and executed the lifecycle once more. So my question is:

Have you any ideas why the UWC plugin should not work in such a scenario?

Thanks for your reply in advance.

4 answers

1 accepted

2 votes
Answer accepted
Jozef Kotlár
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
April 17, 2012

I think answers to questions are following (I took over Peter's task to finish it).

For pages not containing UDMF data from export

There is bug in MediawikiExporter in used version of UWC in collecting metadata from SQL - at least in version I have investigated - there are mismatched rev_id and rev_text_id columns in table revision. I suppose that Phillip has a newer version of UWC, without this bug.

For not importing metadata into Confluence

Here I am not sure which solution helps to Phillip

  • there was another bug in Mediawiki UserDateConverter that prevented matching metadata in page on Windows due CRLF mismatch - already corrected on trunk / there should be pattern changed from \n to \r?\n
  • UDMF plugin should be installed as plugin V1 into WEB-INF/lib to work, after installing through UPM it is disabled, allows to enable, but doesn't work - as noted in documentation
Phillip Ponzer [Cprime]
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
April 17, 2012

I had completely forgot about this. I believe I've solved at least my problems though:

https://answers.atlassian.com/questions/23359/attempting-to-convert-historical-revisions-of-mediawiki-pages-to-confluence

0 votes
Ellen Feaheny [AppFusions]
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
October 3, 2012

Updates are posted - have at it!

https://twitter.com/appfusions/status/253905889482903552

Thanks Laura@appfusions.com and recent client for their support on this effort!

0 votes
Ellen Feaheny [AppFusions]
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
August 23, 2012

The UDMF update for up to Confluence 4.2.X is now officially underway ... will be released next week.

Please check here, next week.

0 votes
Phillip Ponzer [Cprime]
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
February 9, 2012

I'm having this same issue using Confluence 4.1.3 except all of my pages have the user/timestamp at the top of each page.

That is, the UDMF plugin isn't stepping in to have the actual user recorded as creating the page at the indicated time and instead the administrator is getting the credit for creating the page at the time it was created (also not using the indicated timestamp).

Any help would be greatly appreciated!

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events