This page (revision-7) was last changed on 23-Apr-2022 17:06 by HarryMetske

This page was created on 23-Apr-2022 17:05 by HarryMetske

Only authorized users are allowed to rename pages.

Only authorized users are allowed to delete pages.

Page revision history

Version Date Modified Size Author Changes ... Change note
7 23-Apr-2022 17:06 2 KB HarryMetske to previous
6 23-Apr-2022 17:05 2 KB HarryMetske to previous | to last
5 23-Apr-2022 17:05 2 KB HarryMetske to previous | to last
4 23-Apr-2022 17:05 2 KB HarryMetske to previous | to last
3 23-Apr-2022 17:05 2 KB HarryMetske to previous | to last
2 23-Apr-2022 17:05 1 KB HarryMetske to previous | to last
1 23-Apr-2022 17:05 1 KB HarryMetske to last

Page References

Incoming links Outgoing links

Version management

Difference between version and

At line 5 changed 2 lines
* The passwords were first in plain text, later on they were (SHA) hashed.
* The format of the date fields have changed.
* The passwords were first in plain text, later on they were (SHA) hashed. (quite long ago)
* The format of the date fields have changed. (since 2.4.59)
At line 8 added one line
At line 10 changed 3 lines
\\You give it your userdatabase.xml file, and it will create a new one for you in the new format, with both hashed passwords and correct dateformats.
If your passwords were already hashed, they will not be changed.
The conversion utility will try to parse the dates with three different patterns:
!! Usage
# You give it your userdatabase.xml file, and it will create a new one for you in the new format, with both hashed passwords and correct dateformats.
# The input userdatabase file will first be validated against an XML Schema, it will stop when the validation fails %%small (the xsd file is contained in the attached jar file) %%.
# If you have plaintext passwords, they will be changed.
# The conversion utility will try to parse the dates with three different patterns:
At line 18 removed one line
At line 21 removed 2 lines
Attached you find the necessary code to run it, it also contains the source so that you can verify first what it will do :-) .
At line 31 added 14 lines
\\Here is an example output of this utility:
{{{
metskem@bismarck:/tmp$ java -cp udbconversion.jar:jdom.jar com.ecyrd.jspwiki.converter.UserDBConverter userdatabase.xml new.xml
validating xml document userdatabase.xml
Schema validation completed in 0 seconds
fatal errors occured:false
errors occured:false
warnings occured:false
starting conversion: /tmp/userdatabase.xml ==> /tmp/new.xml
parsing failed for dateString : 2006.09.19 at 16:15:21 CET
date conversion failed for user baduserid1 (Catweazle) , skipping this user
XML Document built, writing to file new.xml
51 users processed in 0 seconds
}}}
At line 30 removed one line
At line 48 added 2 lines
Attached you find the necessary code to run it, it also contains the source, so you can verify what it will do :-) .