You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@cloudstack.apache.org by "Santhosh Kumar Edukulla (JIRA)" <ji...@apache.org> on 2014/06/09 12:11:02 UTC
[jira] [Created] (CLOUDSTACK-6870) getDomainId implementation
returns invalid value at places
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)