ARTIFACTORY: 'Unrecognized field "outboundRepoKey"' error is thrown when running pull replication

ARTIFACTORY: 'Unrecognized field "outboundRepoKey"' error is thrown when running pull replication

AuthorFullName__c
Elina Floim
articleNumber
000005920
ft:sourceType
Salesforce
FirstPublishedDate
2023-12-14T20:48:33Z
lastModifiedDate
2023-11-29
VersionNumber
1

Users of particular Artifactory versions may experience an error indicating the pull replication failed due to an unrecognized field "outboundRepoKey", for example:

2023-11-14T09:54:46.299Z [jfrt ] [ERROR] [d3dd5c0abd79c09 ] [r.r.r.ReplicationsResource:285] [http-nio-8081-exec-1] - Error occurred during pull replication establish replication channel
com.fasterxml.jackson.databind.exc.UnrecognizedPropertyException: Unrecognized field "outboundRepoKey" (class org.artifactory.addon.replication.event.ReplicationOwnerModel), not marked as ignorable (6 known properties: "includePathPrefixPattern", "owner", "repoKey", "channelUuid", "excludePathPrefixPattern", "channelType"])
 at [Source: (org.apache.catalina.connector.CoyoteInputStream); line: 1, column: 251] (through reference chain: org.artifactory.addon.replication.event.ReplicationOwnerModel["outboundRepoKey"])

This error may occur if the source and target Artifactory instances are running on different versions; in praticular, when one instance is running on a version older than 7.59 and the other is using a more recent version. This is since the "outboundRepoKey" property has been added in version 7.59.x, therefore, older Artifactory versions will not recognize this field and will therefore throw this error message when attempting to run the replication.

This can be prevented by making sure that the source and target Artifactory instances are running the same version. In general, replication between the same Artifactory versions is strongly advised in order to prevent missing attributes or features that are present in later versions but absent in earlier ones.