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.

Environment

None

Activity

Show:

Gaston Dombiak August 11, 2005 at 7:15 AM

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.

Fixed

Details

Assignee

Reporter

Components

Fix versions

Affects versions

Priority

Created August 11, 2005 at 3:31 AM
Updated August 11, 2005 at 7:20 AM
Resolved August 11, 2005 at 7:15 AM