[Baseline sets comparison] Incomplete remoteComponents list returned by the ChangeHistorySyncReport
Hi everyone!
I'm facing an issue (for the first time) related to the comparison of two snapshots of the same stream.
The list of remoteComponents returned by the compare report object does not contain all the components; thus, I'm not able to detect the actual changes in the snapshot.
IChangeHistorySyncReport report = report = this.workspaceManager.compareBaselineSets(oldSnapshotBaselineSetHandle, newSnapshotBaselineSetHandle, Collections.EMPTY_LIST, MONITOR);
List<IComponentHandle> components = report.remoteComponents();
List<IComponentHandle> localComponents = report.localComponents();
Is there something else to be set before invoking the comparison?
Thank you in advance for the support.
Regards
Marco
One answer
Do the snapshots actually have a different set of components (i.e. was a component added/removed, and then the second snapshot taken?)
Or does the user (contributor) running the operation not have read-access to some of the components by any chance? Check the component owner/visibility for the ones that you think are missing. Using the Eclipse client, log-in as the user running the operations, and see if they can see and open the missing components.