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:
alena 2011-02-02 22:13:29 -08:00
parent 6db6e8b4e9
commit 026e6905c9
2 changed files with 0 additions and 2 deletions

View File

@ -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());

View File

@ -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 {