Bug 494929 - Can't have 2 distributions with same label in different orgs
Can't have 2 distributions with same label in different orgs
Product: Spacewalk
Classification: Community
Component: WebUI (Show other bugs)
All Linux
low Severity medium
: ---
: ---
Assigned To: Justin Sherrill
Mike McCune
Depends On:
Blocks: space06
  Show dependency treegraph
Reported: 2009-04-08 14:30 EDT by Mike McCune
Modified: 2009-09-10 08:05 EDT (History)
2 users (show)

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
: 494930 (view as bug list)
Last Closed: 2009-09-10 08:05:51 EDT
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---

Attachments (Terms of Use)

  None (edit)
Description Mike McCune 2009-04-08 14:30:36 EDT
If you setup a distribution in org 1:


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


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 12:22:53 EDT
Fixed with regard to this bug: https://bugzilla.redhat.com/show_bug.cgi?id=494930
Comment 2 Miroslav Suchý 2009-09-10 08:05:51 EDT
Spacewalk 0.6 released

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