I’ve migrating OpenFire 3.6.0a from one Linux server to another, and attempted to use the user import/export plugin to migrate user data.
The export action worked ok on the old server, but the import action failed on the new server (running the very same OpenFire and plugin versions), with the following message:
“The import file does not match the user schema.”
Both servers are using the (same) LDAP directory to authenticate users.
It appears that the export feature is in trouble: it generates an invalid XML file in this environment (LDAP server), where the entry is generated twice for each user entry:
once with the username (as documented in the user import/export plugin in case of an LDAP environment)
once with an empty content ()
The latter is probably breaking the XML schema, and make the import fail.
A quick workaround is to edit the XML file, search and replace “” with an empty string, and restart the importation.
Thanks for catching this. To the best of my knowledge nothing has really changed with this plugin in quite some time so it’s a bit surprising this issue has appeared. I’ll do some digging and see what is necessary to provide a fix.
I just DL’d and installed last night / today. All went well until I tried to import a bunch of users with the plugin and got the same “The import file does not match the user schema” error.
I’ve tried a bunch of permutations to get this to work right… I exported my Test User and tried to use that “template” to create a file to import. here’s an example of what I have…
jdoe
password
jdoe@company.com
Jon Doe
1224687479323
1224687479323
I had tried with and without it… not sure what i was doing wrong, but I redid it this morning and it worked. Sure has me miffed but oh well, worked today!