Bug 116568 - Can create two instances with same language within a single bundle
Summary: Can create two instances with same language within a single bundle
Keywords:
Status: CLOSED WONTFIX
Alias: None
Product: Red Hat Enterprise CMS
Classification: Retired
Component: other
Version: nightly
Hardware: All
OS: Linux
medium
medium
Target Milestone: ---
Assignee: ccm-bugs-list
QA Contact: Jon Orris
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2004-02-23 10:51 UTC by Daniel Berrangé
Modified: 2007-04-18 17:03 UTC (History)
0 users

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2006-09-02 17:34:26 UTC
Embargoed:


Attachments (Terms of Use)

Description Daniel Berrangé 2004-02-23 10:51:20 UTC
Description of problem:
It is possible to create two instances with same language within a
single bundle, by clicking the buttons 'fast'.

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


How reproducible:
Always

Steps to Reproduce:
1. Create an english item
2. Go to languages tab
3. Click 'change  language'
4. Before request in 3. has completed, click 'add language'
  
Actual results:
There are now two items in bundle with German language

Expected results:
Error display that there is already a german instance

Additional info:
Here is the SQL invariant that is violated

select count(*) as result 
  from (
    select count(*) as count, parent_id, language
      from cms_items i, cms_bundles b
     where i.parent_id = b.bundle_id
       and version in ('live', 'draft')
     group by parent_id, language
  ) sub where count != 1

Comment 1 Daniel Berrangé 2006-09-02 17:34:26 UTC
Closing old tickets



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