Bug 772200 - Date check of importing manifest shouldn't be applied across orgs
Summary: Date check of importing manifest shouldn't be applied across orgs
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Subscription Asset Manager
Classification: Retired
Component: katello
Version: 1.0.0
Hardware: Unspecified
OS: Unspecified
high
high
Target Milestone: ---
: 1.0
Assignee: Bryan Kearney
QA Contact: SAM QE List
URL:
Whiteboard:
Depends On: 769644
Blocks: 703617
TreeView+ depends on / blocked
 
Reported: 2012-01-06 12:16 UTC by yu zheng
Modified: 2012-04-27 00:21 UTC (History)
2 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2012-04-27 00:21:38 UTC
Embargoed:


Attachments (Terms of Use)

Description yu zheng 2012-01-06 12:16:21 UTC
Description of problem:
During importing a manifest to an org, date check against other manifest which has been imported to another org was done. But they should not affect each other.

Version-Release number of selected component (if applicable):
katello-headpin-all-0.1.122-2.el6.noarch
thumbslug-0.0.21-1.el6.noarch

How reproducible:
always

Steps to Reproduce:
1.Prepare two manifests which are exported separately from two different distributors. manifest2 is exported earlier than manifest1. 

2.Create two orgs in SAM: org1, org2.

3.Import manifest1 to org1.
[root@sam-120106095640 ~]# headpin -u admin -p admin provider import_manifest --file=/root/manifest1.zip --name="Red Hat" --org=org1
Manifest imported

4.Try to import manifest2 to org2.
[root@sam-120106095640 ~]# headpin -u admin -p admin provider import_manifest --file=/root/manifest2.zip --name="Red Hat" --org=org2
Importing manifest, please wait... Manifest import for provider [ Red Hat ] failed, Candlepin::Owner: 409 Conflict {"displayMessage":"Import is older than existing data"} (POST /candlepin/owners/org2/imports)
  
Actual results:
Importing manifest is failed.

Expected results:
Existing data in org1 shouldn't affect and manifest2 should be imported to org2 successfully.

Comment 3 Eric Sammons 2012-01-10 13:25:02 UTC
This issue appears to be related to / duplicate of 769644 and 769372.

Comment 4 Tom McKay 2012-01-25 13:25:15 UTC
Fixed in candlepin 0.5.10

Comment 5 Eric Sammons 2012-02-07 15:39:53 UTC
http://hudson.rhq.lab.eng.bos.redhat.com:8080/hudson/job/headpin-webui%20automation/147/HTML_Report/

katello-headpin-all-0.1.130-2.el6.noarch

VERIFIED


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