Exporting data security with uniexpsec: links missing

Document ID : KB000109146
Last Modified Date : 02/08/2018
Show Technical Document Details
Issue:
Exporting UVMS security using "uniexpsec -full  command does not work correctly.

We note that when the importation of the file generated by the the uniexpsec, the objects are extracted (user, group role), but the links between user / group and group / role are no longer present.

Export command in error:

./uniexpsec -file /tmp/security_uvms.xml -full

The output file is not correct as no links are present in the tag:

      <GroupEntity id="3">
        <id>1</id>
        <name>Administrators</name>
        <label>Univiewer Admin</label>
        <authType>INTERN</authType>
        <defaultGroup>false</defaultGroup>
        <operationVersion>1342</operationVersion>
        <deleted>false</deleted>
        <groupUserProxies class="linked-hash-set" id="4"/>
      </GroupEntity>
Environment:
All OS 
Univiewer Management Server on version 6.6.xx
Cause:
Defect present in versions 6.6.x and inferior of UVMS.
Resolution:
1 / Please upgrade Univiewer Management Server to version 6.7.01 or superior and export again the UVMS Security.

2 / Other workaround consists on exporting the groups one by one and then importing them into the new UVMS. 

Example of command for admin group :

Export:
uniexpsec -file "C:\temp\security_uvms.xml" -group Administrators

Import:
uniimpsec -file "C:\temp\security_uvms.xml" -group Administrators