Bug 672277 - Exporter allows incorrect combination command line options
Summary: Exporter allows incorrect combination command line options
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Satellite 5
Classification: Red Hat
Component: Satellite Synchronization
Version: 540
Hardware: Unspecified
OS: Unspecified
medium
medium
Target Milestone: ---
Assignee: Michael Mráka
QA Contact: Dimitar Yordanov
URL:
Whiteboard:
Depends On:
Blocks: sat54-blockers
TreeView+ depends on / blocked
 
Reported: 2011-01-24 17:01 UTC by Šimon Lukašík
Modified: 2011-11-21 09:44 UTC (History)
4 users (show)

Fixed In Version: spacewalk-backend-1.2.13-56
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2011-11-21 09:44:53 UTC
Target Upstream Version:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHBA-2011:1466 0 normal SHIPPED_LIVE Red Hat Network Satellite server spacewalk-backend bug fix update 2011-11-21 14:43:48 UTC

Description Šimon Lukašík 2011-01-24 17:01:23 UTC
Description of problem:

During a verification of

  Bug 650165 - Incremental dump creation in Satellite 5.4 is flawed

which brings new options (--use-rhn-date, --use-sync-date) to
rhn-satellite-exporter. I have find out that following commands:

  rhn-satellite-exporter <...> --use-rhn-date --use-sync-date
  rhn-satellite-exporter <...> --use-sync-date --use-rhn-date

has different semantics. (In my case, some packages landed in the
dump only for the former one).

Looking at the code, I suppose these options are meant to be mutually
exclusive. Unfortunately they are not. A last one wins.

I would like r-s-e to complain, when both options are used together.

Brief look at documentation says that optparser itself doesn't support
mutexes, but we can still handle it by explicit condition. 


Version-Release number of selected component (if applicable):
spacewalk-backend-tools-1.2.13-25.el5sat

Comment 1 Michael Mráka 2011-01-26 13:58:32 UTC
Fixed in spacewalk.git
commit 5d844a9a6f173089700bdea4e06e9c35e8751b9c
    672277 - made --use-rhn-date and --use-sync-date mutually exclusive

Fixed spacewalk package spacewalk-backend-1.3.50-1.

Comment 2 Michael Mráka 2011-10-26 08:58:44 UTC
Backported to SATELLITE-5.4 as
commit 11c5e3082aeba00884f1e7f32c8ecac39c744f2b
    672277 - made --use-rhn-date and --use-sync-date mutually exclusive

Comment 5 errata-xmlrpc 2011-11-21 09:44:53 UTC
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-2011-1466.html


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