Bug 623246 - Runtime error displays while removing subscription from server
Runtime error displays while removing subscription from server
Status: CLOSED CURRENTRELEASE
Product: Candlepin
Classification: Community
Component: candlepin (Show other bugs)
0.5
All Solaris
low Severity medium
: ---
: ---
Assigned To: William Poteat
wes hayutin
: Reopened
Depends On:
Blocks:
  Show dependency treegraph
 
Reported: 2010-08-11 13:17 EDT by spandey
Modified: 2015-05-14 11:22 EDT (History)
3 users (show)

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Environment:
Last Closed: 2012-07-17 09:04:50 EDT
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---


Attachments (Terms of Use)
snip of catlina.out (23.00 KB, application/octet-stream)
2010-08-11 14:54 EDT, spandey
no flags Details

  None (edit)
Description spandey 2010-08-11 13:17:11 EDT
Description of problem:


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


How reproducible:
100%

Prerequisites
candlepin : on-premises

Steps to repro :
Login to on-premises host 
execute following command to delete “MKT-prads-awesome-s390x-os”
/usr/bin/curl -u admin:admin -k --header 'Content-type: application/json' --header 'Accept: application/json' --request DELETE https://localhost:8443/candlepin/subscriptions/9


Expected Result : 
Above command should remove MKT-prads-awesome-s390x-os” subscription pool from server 

Actual Result : 
[root@localhost ~]# /usr/bin/curl -u admin:admin -k --header 'Content-type: application/json' --header 'Accept: application/json' --request DELETE https://localhost:8443/candlepin/subscriptions/9

{"displayMessage":"Runtime Error org.hibernate.exception.ConstraintViolationException: Could not execute JDBC batch update at org.postgresql.jdbc2.AbstractJdbc2Statement$BatchResultHandler.handleError:2,569"}[root@localhost ~]#
Comment 1 wes hayutin 2010-08-11 13:58:32 EDT
Sachin, always include a snip from the tomcat log please
Comment 2 wes hayutin 2010-08-11 14:45:36 EDT
This is the correct api to hit s/subscriptions/entitlements


[root@localhost proxy]# /usr/bin/curl -u admin:admin -k --header 'Content-type: application/json' --header 'Accept: application/json' --request DELETE https://localhost:8443/candlepin/entitlements/6
[root@localhost proxy]#
Comment 3 spandey 2010-08-11 14:54:14 EDT
Created attachment 438263 [details]
snip of catlina.out
Comment 4 wes hayutin 2010-08-11 15:15:40 EDT
my fault, My understanding was that Sachin was testing a different scenario here.
reopening
Comment 5 William Poteat 2011-08-17 14:29:05 EDT
No issues with delete of subscription.

Closing bug.
Comment 6 spandey 2011-08-18 04:06:34 EDT
Verified using 

following commands 

list subscription 
curl -k -u admin:admin https://localhost:8443/candlepin/subscriptions

curl -k -u admin:admin -X delete https://10.65.193.123:8443/candlepin/subscriptions/ff80808131db7d6f0131db7e1cca0071

subscription successfully deleted .
Comment 7 Bryan Kearney 2012-07-17 09:04:50 EDT
Marking all community bugs modified or beyong as closed.

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