mirror of https://github.com/apache/cloudstack.git
bug 8343: in api commands extending BaseAsyncCreate set owner account information only after all request parameters were read as account/domainId information can be specified in the request
status 8343: resolved fixed
This commit is contained in:
parent
6db6e8b4e9
commit
026e6905c9
|
|
@ -370,7 +370,6 @@ public class ApiServer implements HttpRequestHandler {
|
|||
Long objectId = null;
|
||||
if (cmdObj instanceof BaseAsyncCreateCmd) {
|
||||
BaseAsyncCreateCmd createCmd = (BaseAsyncCreateCmd)cmdObj;
|
||||
ctx.setAccountId(createCmd.getEntityOwnerId());
|
||||
_dispatcher.dispatchCreateCmd(createCmd, params);
|
||||
objectId = createCmd.getEntityId();
|
||||
params.put("id", objectId.toString());
|
||||
|
|
|
|||
|
|
@ -23,7 +23,6 @@ import java.util.List;
|
|||
import com.cloud.api.commands.QueryAsyncJobResultCmd;
|
||||
import com.cloud.exception.InvalidParameterValueException;
|
||||
import com.cloud.exception.PermissionDeniedException;
|
||||
import com.cloud.user.UserAccount;
|
||||
import com.cloud.utils.component.Manager;
|
||||
|
||||
public interface AsyncJobManager extends Manager {
|
||||
|
|
|
|||
Loading…
Reference in New Issue