Bug 464700 - API Errata addition violates constraint SPACEWALK.RHN_ERRATAFILE_EID_FILE_UQ
Summary: API Errata addition violates constraint SPACEWALK.RHN_ERRATAFILE_EID_FILE_UQ
Keywords:
Status: CLOSED DUPLICATE of bug 455034
Alias: None
Product: Spacewalk
Classification: Community
Component: API
Version: 0.2
Hardware: All
OS: Linux
medium
medium
Target Milestone: ---
Assignee: Devan Goodwin
QA Contact: Red Hat Satellite QA List
URL:
Whiteboard:
Depends On:
Blocks: space03
TreeView+ depends on / blocked
 
Reported: 2008-09-29 22:20 UTC by Jeremy Mueller
Modified: 2012-03-06 08:43 UTC (History)
1 user (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2008-11-03 22:14:19 UTC
Embargoed:


Attachments (Terms of Use)
Perl script to recreate the constraint error. (941 bytes, text/plain)
2008-09-29 22:20 UTC, Jeremy Mueller
no flags Details
The relevant catalina.out for this. (37.06 KB, text/plain)
2008-09-29 22:23 UTC, Jeremy Mueller
no flags Details

Description Jeremy Mueller 2008-09-29 22:20:53 UTC
Created attachment 318015 [details]
Perl script to recreate the constraint error.

Description of problem:

If you have multiple archs of an RPM in Spacewalk and try to add an errata through the API for them, you receive a SPACEWALK.RHN_ERRATAFILE_EID_FILE_UQ constraint violation error.


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



How reproducible:

Always.


Steps to Reproduce:
1. Upload two variations of the same RPM (for my example I was testing kexec-tools-1.102pre-21.el5_2.2.i386.rpm and kexec-tools-1.102pre-21.el5_2.2.x86_64.rpm).
2. Locate the package IDs for these two packages.
3. Use the XMLAPI to upload an errata for these packages (see the attached test script errata_test_case.pl).
  
Actual results:

"500 Internal Server Error" on command line and "ORA-00001: unique constraint (SPACEWALK.RHN_ERRATAFILE_EID_FILE_UQ) violated" message in catalina.out.

Expected results:

An errata added to the database that refers to both packages.

Additional info:

To verify that the problem is the constraint violation, you can disable the constraint in Oracle (alter table RHNERRATAFILE disable constraint RHN_ERRATAFILE_EID_FILE_UQ;) and re-run the test script.

Comment 1 Jeremy Mueller 2008-09-29 22:23:13 UTC
Created attachment 318017 [details]
The relevant  catalina.out for this.

Comment 2 Justin Sherrill 2008-11-03 22:14:19 UTC

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


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