cloudstack-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Santhosh Kumar Edukulla (JIRA)" <j...@apache.org>
Subject [jira] [Created] (CLOUDSTACK-6870) getDomainId implementation returns invalid value at places
Date Mon, 09 Jun 2014 10:11:02 GMT
Santhosh Kumar Edukulla created CLOUDSTACK-6870:
---------------------------------------------------

             Summary: getDomainId implementation returns invalid value at places
                 Key: CLOUDSTACK-6870
                 URL: https://issues.apache.org/jira/browse/CLOUDSTACK-6870
             Project: CloudStack
          Issue Type: Bug
      Security Level: Public (Anyone can view this level - this is the default.)
          Components: Management Server
    Affects Versions: 4.4.0
            Reporter: Santhosh Kumar Edukulla
            Assignee: Santhosh Kumar Edukulla
             Fix For: 4.5.0


Few classes implementing getDomainId derived from the below interface, seems to have invalid
value returned for domainid. EX: VMTemplateVO, implementing this method returns -1. This behavior
is creating issues at some places in code. 
The respective tables EX: vm_template dont have  column say domainid and so it returns -1.

Though the domainid information is available with account and domain tables, it is not able
to retrieve this information because of some api semantics. This bug is logged to track and
provide fix for this issue. We can discuss as either adding a column is apt way or a better
way to refactor few apis to get this information done with out adding extra columns.
 */
public interface PartOf {
    /**
     * @return domain id that the object belongs to.
     */
    long getDomainId();
}




--
This message was sent by Atlassian JIRA
(v6.2#6252)

Mime
View raw message