Bug 966053 - REST-API: sync DELETE (;async=false) is ignored
Summary: REST-API: sync DELETE (;async=false) is ignored
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Red Hat Enterprise Virtualization Manager
Classification: Red Hat
Component: ovirt-engine-restapi
Version: 3.3.0
Hardware: Unspecified
OS: Unspecified
unspecified
medium
Target Milestone: ---
: 3.3.0
Assignee: Ori Liel
QA Contact: Ilia Meerovich
URL:
Whiteboard: infra
Depends On:
Blocks: 1019461
TreeView+ depends on / blocked
 
Reported: 2013-05-22 11:32 UTC by Michael Pasternak
Modified: 2016-02-10 19:09 UTC (History)
6 users (show)

Fixed In Version: is4
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2014-01-21 22:10:59 UTC
oVirt Team: Infra
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)

Description Michael Pasternak 2013-05-22 11:32:14 UTC
Description of problem:

when URI contains ;async=false, DELETE ignored.

Comment 1 Michael Pasternak 2013-05-22 11:37:13 UTC
Ravi,

please check impacts of bug 957452 on this BZ.

Comment 2 Ori Liel 2013-07-01 14:35:48 UTC
patch posted upstream: 

  http://gerrit.ovirt.org/#/c/16295/

Comment 3 Ilia Meerovich 2013-07-04 16:52:02 UTC
build IS4
After running this code:

import java.io.IOException;

import org.apache.http.client.ClientProtocolException;
import org.ovirt.engine.sdk.Api;
import org.ovirt.engine.sdk.entities.DataCenter;
import org.ovirt.engine.sdk.entities.Version;
import org.ovirt.engine.sdk.exceptions.ServerException;
import org.ovirt.engine.sdk.exceptions.UnsecuredConnectionAttemptError;


public class debugRemove {
        private static final String URL = "https://ilia-rhevm.qa.lab.tlv.redhat.com:443/api";

    public static void main(String[] args) throws ClientProtocolException, ServerException,
            UnsecuredConnectionAttemptError, IOException {
        Api api = new Api(URL, "admin@internal", "123456", true);
        DataCenter dc = new DataCenter();
        Version ver = new Version();
        ver.setMajor(3);
        ver.setMinor(2);
        dc.setName("foo");
        dc.setStorageType("nfs");
        dc.setVersion(ver);
        api.getDataCenters().add(dc);
        org.ovirt.engine.sdk.decorators.DataCenter dcDecor = api.getDataCenters().get("foo");
        dcDecor.delete(false, "667");
    }
}

datacenter was created and removed

Comment 5 Itamar Heim 2014-01-21 22:10:59 UTC
Closing - RHEV 3.3 Released


Note You need to log in before you can comment on or make changes to this bug.