Bug 761126 - API: Deleting filters does not work
Summary: API: Deleting filters does not work
Keywords:
Status: CLOSED DUPLICATE of bug 745142
Alias: None
Product: Pulp
Classification: Retired
Component: z_other
Version: 1.0.0
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
: ---
Assignee: Sayli Karmarkar
QA Contact: Preethi Thomas
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2011-12-07 18:12 UTC by Peter Meier
Modified: 2015-03-23 01:11 UTC (History)
1 user (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2011-12-14 19:56:54 UTC


Attachments (Terms of Use)

Description Peter Meier 2011-12-07 18:12:15 UTC
Description of problem:

Using 0.254 it is not possible to delete a filter, the servers responds with 405 Method not allowd. The only log entry I can find is:

127.0.0.1 - - [07/Dec/2011:19:08:04 +0100] "DELETE /pulp/api/filters/wildcard/ HTTP/1.1" 405 4

The documentation says that deleting a filter should be possible the way I try to do it:

https://fedorahosted.org/pulp/wiki/UGREST-Filters

First I get the filter

$ curl -v -k --user admin:admin -H 'accept: application/json' https://localhost/pulp/api/filters/wildcard/
* About to connect() to localhost port 443 (#0)
*   Trying 127.0.0.1... connected
* Connected to localhost (127.0.0.1) port 443 (#0)
* Initializing NSS with certpath: sql:/etc/pki/nssdb
* warning: ignoring value of ssl.verifyhost
* skipping SSL peer certificate verification
* SSL connection using TLS_DHE_RSA_WITH_AES_256_CBC_SHA
* Server certificate:
* 	subject: E=root,CN=localhost.localdomain,OU=SomeOrganizationalUnit,O=SomeOrganization,L=SomeCity,ST=SomeState,C=--
* 	start date: Oct 01 09:11:12 2010 GMT
* 	expire date: Oct 01 09:11:12 2011 GMT
* 	common name: localhost.localdomain
* 	issuer: E=root,CN=localhost.localdomain,OU=SomeOrganizationalUnit,O=SomeOrganization,L=SomeCity,ST=SomeState,C=--
* Server auth using Basic with user 'admin'
> GET /pulp/api/filters/wildcard/ HTTP/1.1
> Authorization: Basic YWRtaW46YWRtaW4=
> User-Agent: curl/7.21.3 (i386-redhat-linux-gnu) libcurl/7.21.3 NSS/3.12.10.0 zlib/1.2.5 libidn/1.19 libssh2/1.2.7
> Host: localhost
> accept: application/json
> 
* skipping SSL peer certificate verification
* NSS: client certificate not found (nickname not specified)
* skipping SSL peer certificate verification
< HTTP/1.1 200 OK
< Date: Wed, 07 Dec 2011 18:07:58 GMT
< Server: Apache/2.2.21 (Fedora)
< Connection: close
< Transfer-Encoding: chunked
< Content-Type: application/json
< 
* Closing connection #0
{"description": "discard everything", "_ns": "filters", "package_list": "*", "_id": "wildcard", "type": "blacklist", "id": "wildcard"}

This works. Then I try to delete it:

$ curl -X DELETE -v -k --user admin:admin -H 'accept: application/json' https://localhost/pulp/api/filters/wildcard/
* About to connect() to localhost port 443 (#0)
*   Trying 127.0.0.1... connected
* Connected to localhost (127.0.0.1) port 443 (#0)
* Initializing NSS with certpath: sql:/etc/pki/nssdb
* warning: ignoring value of ssl.verifyhost
* skipping SSL peer certificate verification
* SSL connection using TLS_DHE_RSA_WITH_AES_256_CBC_SHA
* Server certificate:
* 	subject: E=root,CN=localhost.localdomain,OU=SomeOrganizationalUnit,O=SomeOrganization,L=SomeCity,ST=SomeState,C=--
* 	start date: Oct 01 09:11:12 2010 GMT
* 	expire date: Oct 01 09:11:12 2011 GMT
* 	common name: localhost.localdomain
* 	issuer: E=root,CN=localhost.localdomain,OU=SomeOrganizationalUnit,O=SomeOrganization,L=SomeCity,ST=SomeState,C=--
* Server auth using Basic with user 'admin'
> DELETE /pulp/api/filters/wildcard/ HTTP/1.1
> Authorization: Basic YWRtaW46YWRtaW4=
> User-Agent: curl/7.21.3 (i386-redhat-linux-gnu) libcurl/7.21.3 NSS/3.12.10.0 zlib/1.2.5 libidn/1.19 libssh2/1.2.7
> Host: localhost
> accept: application/json
> 
* skipping SSL peer certificate verification
* NSS: client certificate not found (nickname not specified)
* skipping SSL peer certificate verification
< HTTP/1.1 405 Method Not Allowed
< Date: Wed, 07 Dec 2011 18:08:04 GMT
< Server: Apache/2.2.21 (Fedora)
< Allow: GET
< Connection: close
< Transfer-Encoding: chunked
< Content-Type: text/html; charset=UTF-8
< 
* Closing connection #0


Version-Release number of selected component (if applicable):

# rpm -qa | grep pulp
python-isodate-0.4.4-3.pulp.fc15.noarch
pulp-common-0.0.254-1.fc15.noarch
pulp-0.0.254-1.fc15.noarch
pulp-selinux-server-0.0.254-1.fc15.noarch
pulp-admin-0.0.254-1.fc15.noarch
mod_wsgi-3.2-6.pulp.fc15.i686
python-oauth2-1.5.170-2.pulp.fc15.noarch
m2crypto-0.21.1.pulp-5.fc15.i686
pulp-client-lib-0.0.254-1.fc15.noarch

Comment 1 Sayli Karmarkar 2011-12-14 19:56:54 UTC

*** This bug has been marked as a duplicate of bug 745142 ***


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