STARIONGROUP/COMET-WebServices-Community-Edition

[BUG] ResolveService.ResolvePartition fails in some cases

lxatstariongroup opened this issue · 0 comments

Prerequisites

  • I have written a descriptive issue title
  • I have verified that I am running the latest version of the COMET Web Services
  • I have searched open and closed issues to ensure it has not already been reported

Description

In the COMET IME adding a SuperCategory to an existing Category seems to fail.
The change is actually committed on the server, but the return value (the changed DTO corresponding to the SuperType) cannot be "calculated", which results in a server error to be thrown.

This is because the ResolveService.ResolvePartition currently adds two partitions if SiteDirectory is resolved:
SiteDirectory itself and a Iteration/EngineeringModel partition. That should not be the case.
If SiteDirectory is resolved, then it should not add that second partition to the possible partition list that ResolvePartition creates.