Bug 772882 - uploading task with duplicate requires fails
Summary: uploading task with duplicate requires fails
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Beaker
Classification: Retired
Component: scheduler
Version: 0.8
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified vote
Target Milestone: ---
Assignee: Yang Ren
QA Contact:
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2012-01-10 08:31 UTC by Jan Stancek
Modified: 2019-05-22 13:41 UTC (History)
9 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2012-08-13 23:55:44 UTC


Attachments (Terms of Use)

Description Jan Stancek 2012-01-10 08:31:32 UTC
Description of problem:
When new version of task introduces duplicate "Requires", upload to beaker fails with 500 Internal error in WEBUI is used. If "bkradd" is used it ends with:
Exception: <Fault 1: "<class 'bkr.common.bexceptions.BX'>:u'Cannot import duplicate task tmp-scratch-jstancek2-1.0-6.noarch.rpm'">

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

How reproducible:
100%

Steps to Reproduce:
1. add duplicate "Requires" to task, for example:
+       @echo "Requires:     rusers" >> $(METADATA)
+       @echo "Requires:     rusers" >> $(METADATA)
2. upload modified task to beaker
3. upload fails -> PROBLEM

Actual results:
fails with no clue what happened,
new rpm can be found at /rpms, but task record is not updated

Expected results:
upload works without issues or fails and gives more useful message

Additional info:
It seems to work if you add duplicate requires separately.
1. add one, upload to beaker
2. add another, upload to beaker


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