diff --git a/src/main/java/com/ctrip/zeus/service/model/handler/impl/DefaultGroupValidator.java b/src/main/java/com/ctrip/zeus/service/model/handler/impl/DefaultGroupValidator.java index bd9255cd..8511688f 100644 --- a/src/main/java/com/ctrip/zeus/service/model/handler/impl/DefaultGroupValidator.java +++ b/src/main/java/com/ctrip/zeus/service/model/handler/impl/DefaultGroupValidator.java @@ -93,18 +93,16 @@ public class DefaultGroupValidator implements GroupValidator { else virtualServerIds.add(vs.getId()); } - if (groupPaths.contains(vs.getId() + vs.getVersion() + groupVirtualServer.getPath())) + if (groupPaths.contains(vs.getId() + groupVirtualServer.getPath())) throw new ValidationException("Duplicate path \"" + groupVirtualServer.getPath() + "\" is found on virtual server " + vs.getId() + " from post entity."); else - groupPaths.add(vs.getId() + vs.getVersion() + groupVirtualServer.getPath()); + groupPaths.add(vs.getId() + groupVirtualServer.getPath()); } for (RelGroupVsDo relGroupVsDo : rGroupVsDao.findAllByVses(virtualServerIds.toArray(new Long[virtualServerIds.size()]), RGroupVsEntity.READSET_FULL)) { if (groupId.equals(relGroupVsDo.getGroupId())) continue; if (groupPaths.contains(relGroupVsDo.getVsId() + relGroupVsDo.getPath())) throw new ValidationException("Duplicate path \"" + relGroupVsDo.getPath() + "\" is found on virtual server " + relGroupVsDo.getVsId() + " from existing entities."); - else - groupPaths.add(relGroupVsDo.getVsId() + relGroupVsDo.getPath()); } }