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/11/17 10:17:33 UTC

[jira] [Updated] (CLOUDSTACK-6870) getDomainId implementation returns invalid value at places

     [ https://issues.apache.org/jira/browse/CLOUDSTACK-6870?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Santhosh Kumar Edukulla updated CLOUDSTACK-6870:
------------------------------------------------
    Fix Version/s:     (was: 4.5.0)
                   Future

> 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: Future
>
>
> 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.3.4#6332)