Plugin that imports and exports users should use complete roster item JID instead of just the JID's node
Description
ImportExportPlugin#exportUsers is exporting the username of the roster contacts instead of the complete JID. Since a JID may be of any form (eg. domain, user@domain, domain/resource or user@domain/resource) then we need to just export the full JID.
The same issue applies when importing an XML file.
We are going to create a new Jira issue for providing the option to perform a replacement in the JIDs domain while doing an import. This new feature will handle the case raised by Ryan.
Ryan Ryan August 11, 2005 at 4:19 AM
I can see a scenario where importing/exporting the entire JID may cause an issue.
userA@oldserver has contact in their roster of 'userB@oldserver'
both users are moved to a new server they become 'userA@newserver' and 'userB@newserver'
If the entire JID is carried over userA is going to have a contact in their roster of 'userB@oldserver' which would no longer exist.
ImportExportPlugin#exportUsers is exporting the username of the roster contacts instead of the complete JID. Since a JID may be of any form (eg. domain, user@domain, domain/resource or user@domain/resource) then we need to just export the full JID.
The same issue applies when importing an XML file.