Return-Path: X-Original-To: apmail-cloudstack-issues-archive@www.apache.org Delivered-To: apmail-cloudstack-issues-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 177C110688 for ; Tue, 10 Dec 2013 19:00:08 +0000 (UTC) Received: (qmail 93086 invoked by uid 500); 10 Dec 2013 19:00:07 -0000 Delivered-To: apmail-cloudstack-issues-archive@cloudstack.apache.org Received: (qmail 93068 invoked by uid 500); 10 Dec 2013 19:00:07 -0000 Mailing-List: contact issues-help@cloudstack.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@cloudstack.apache.org Delivered-To: mailing list issues@cloudstack.apache.org Received: (qmail 93061 invoked by uid 500); 10 Dec 2013 19:00:07 -0000 Delivered-To: apmail-incubator-cloudstack-issues@incubator.apache.org Received: (qmail 93058 invoked by uid 99); 10 Dec 2013 19:00:07 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 10 Dec 2013 19:00:07 +0000 Date: Tue, 10 Dec 2013 19:00:07 +0000 (UTC) From: "Alena Prokharchyk (JIRA)" To: cloudstack-issues@incubator.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Resolved] (CLOUDSTACK-5313) list router api not giving correct results with domainid paramenters not considering routers belonging to projects within the domain MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/CLOUDSTACK-5313?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Alena Prokharchyk resolved CLOUDSTACK-5313. ------------------------------------------- Resolution: Not A Problem Shweta, this is by design. Please check the spec http://wiki-ccp.citrix.com/display/gen/3.0+API+list*+commands+changes When no projectId is passed to the call, only non-project based resources are being returned. If you want to list project based resources, you always have to pass projectId=-1 Examples: 1) http://localhost:8096/?command=listRouters&projectId=-1&domainId=1 Returns all project based routers for domain id=1 2) http://localhost:8096/?command=listRouters&domainId=1 Returns all non-project based routers for domainId=1 3) http://localhost:8096/?command=listRouters&projectId=-1 Returns all project based routers for ALL domains. > list router api not giving correct results with domainid paramenters not considering routers belonging to projects within the domain > ------------------------------------------------------------------------------------------------------------------------------------ > > Key: CLOUDSTACK-5313 > URL: https://issues.apache.org/jira/browse/CLOUDSTACK-5313 > Project: CloudStack > Issue Type: Bug > Security Level: Public(Anyone can view this level - this is the default.) > Components: API, Upgrade, Virtual Router > Affects Versions: 4.3.0 > Reporter: shweta agarwal > Assignee: Alena Prokharchyk > Priority: Critical > Fix For: 4.3.0 > > > Repro steps: > Create some routers within a domain , > create some projects in this domain and create some routers within the project > Call list router api with domain id parameter > Bug: > It will not list routers belonging to the projects within the domain -- This message was sent by Atlassian JIRA (v6.1.4#6159)