Bugzilla will be upgraded to version 5.0. The upgrade date is tentatively scheduled for 2 December 2018, pending final testing and feedback.
Bug 955669 - A collection can get twice-enabled
A collection can get twice-enabled
Status: CLOSED ERRATA
Product: Red Hat Enterprise Linux 6
Classification: Red Hat
Component: scl-utils (Show other bugs)
6.4
Unspecified Unspecified
high Severity unspecified
: rc
: ---
Assigned To: Jan Zeleny
Lukas Zachar
: ZStream
Depends On: 955668 955670
Blocks: 947775 957198 961429
  Show dependency treegraph
 
Reported: 2013-04-23 09:46 EDT by Jan Zeleny
Modified: 2013-11-21 01:05 EST (History)
3 users (show)

See Also:
Fixed In Version: scl-utils-20120927-7.el6
Doc Type: Bug Fix
Doc Text:
* When starting an inspection of what collections are already enabled, a wrong variable was taken as a source of this information. In a specific case, when users ran a shell in an scl_enabled environment, and tried to enable an already-enabled collection, then the collection was enabled twice. This could have caused problems if the enable scriptlets were not prepared for something like this, and might have destroyed some parts of the original environment. This update accepts the correct variable as a source of information about the already-enabled collections, and the collections are no longer enabled multiple times.
Story Points: ---
Clone Of: 955668
Environment:
Last Closed: 2013-11-21 01:05:07 EST
Type: Bug
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---


Attachments (Terms of Use)


External Trackers
Tracker ID Priority Status Summary Last Updated
Red Hat Product Errata RHBA-2013:1554 normal SHIPPED_LIVE scl-utils bug fix update 2013-11-20 16:40:27 EST

  None (edit)
Description Jan Zeleny 2013-04-23 09:46:40 EDT
+++ This bug was initially created as a clone of Bug #955668 +++

When running scl enable <collection> bash, a variable $X_SCLS should be filled with a list of collections that are enabled. When calling scl enable for the second time, content of $x_scls is read instead of $X_SCLS. In case of enabling the same collection again, it would lead to running collection's enable scriptlet twice.

In some specific cases, this can lead to malformed environment, as one of the basic assumptions of scl-utils is that once collection is enabled, it won't be enabled for the second time.
Comment 4 errata-xmlrpc 2013-11-21 01:05:07 EST
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory, and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

http://rhn.redhat.com/errata/RHBA-2013-1554.html

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