juanferrub/liferay-portal — pull request #275 by epgarcia (2012-07-11 14:05:13+00:00)
Title: LPS-28492 ADT Remote Staging Duplicated Key

Implemented solution:

Mirror Strategy (including Mirror with overwriting):

- If the template does not exist at all (by uuid nor key) at the destination server, it is created with the same uuid and key as in the original server. In further attempts to import the template at the same destination server, it will be updated
- If the template exists by key, a new one is created with the same uuid as in the original server, but with an autogenerated key. In further attempts to import the template at the same destination server, it will be updated

Copy as New Strategy:

- The template is always created new (new uuid and same key as original), even if it exists. If it already exists by key, then the new template has an autogenerated one.

@juliocamarero