Existing role was updated/replaced by the role imported from lar

Issue

  • Steps:
    1. Export a regular role from instance A and import it to instance B.
    2. Modify the name of the regular role on instance B.
    3. Exported the regular role from instance B and imported it to instance A.
  • Expected result: There are two regular roles in instance A, one is the original in instance A, and the other one is the one exported from instance B.
  • Actual result: There is only one regular role with the new name in step 2. Meaning, the regular role in instance A is replaced by the regular role in instance B. 

Environment

  • Liferay DXP 7.1

Resolution

  • This is expected behavior.
  • When importing roles into a new environment, Liferay will use uuid to determine if the imported role is a new role. Although the name of the regular role on instance B was updated/modified, the uuid is the same as the regular role on instance A. So Liferay will update the existing role instead of creating a new one.

 

 

 

 

¿Fue útil este artículo?
Usuarios a los que les pareció útil: 0 de 0