Bug 494929 - Can't have 2 distributions with same label in different orgs
Summary: Can't have 2 distributions with same label in different orgs
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Spacewalk
Classification: Community
Component: WebUI
Version: 0.5
Hardware: All
OS: Linux
low
medium
Target Milestone: ---
Assignee: Justin Sherrill
QA Contact: Mike McCune
URL:
Whiteboard:
Depends On:
Blocks: space06
TreeView+ depends on / blocked
 
Reported: 2009-04-08 18:30 UTC by Mike McCune
Modified: 2009-09-10 12:05 UTC (History)
2 users (show)

Fixed In Version:
Clone Of:
: 494930 (view as bug list)
Environment:
Last Closed: 2009-09-10 12:05:51 UTC
Embargoed:


Attachments (Terms of Use)

Description Mike McCune 2009-04-08 18:30:36 UTC
If you setup a distribution in org 1:

f10-i386

then create another org, and in org 2 create another distro:

f10-i386

you get this when attempting to use either distro during a kickstart:

Caused by: org.hibernate.NonUniqueResultException: query did not return a unique result: 2
	at org.hibernate.impl.AbstractQueryImpl.uniqueElement(AbstractQueryImpl.java:820)
	at org.hibernate.impl.AbstractQueryImpl.uniqueResult(AbstractQueryImpl.java:811)
	at com.redhat.rhn.domain.kickstart.KickstartFactory.lookupKickstartTreeByLabel(KickstartFactory.java:527)
	at com.redhat.rhn.frontend.action.common.DownloadFile.handleKickstartDownload(DownloadFile.java:175)
	at com.redhat.rhn.frontend.action.common.DownloadFile.execute(DownloadFile.java:95)
	at org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:431)


Need to fix lookupKickstartTreeByLabel to require org or restrict creation of distros to be unique to the Satellite.

Comment 1 Justin Sherrill 2009-07-31 16:22:53 UTC
Fixed with regard to this bug: https://bugzilla.redhat.com/show_bug.cgi?id=494930

Comment 2 Miroslav Suchý 2009-09-10 12:05:51 UTC
Spacewalk 0.6 released


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