RHEL Engineering is moving the tracking of its product development work on RHEL 6 through RHEL 9 to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "RHEL project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs in the statuses "NEW", "ASSIGNED", and "POST" are being migrated throughout September 2023. Bugs of Red Hat partners with an assigned Engineering Partner Manager (EPM) are migrated in late September as per pre-agreed dates. Bugs against components "kernel", "kernel-rt", and "kpatch" are only migrated if still in "NEW" or "ASSIGNED". If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "RHEL project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/RHEL-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.
Bug 1100106 - augtool builtin command `dump-xml` can not save the XML to a given file
Summary: augtool builtin command `dump-xml` can not save the XML to a given file
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Enterprise Linux 7
Classification: Red Hat
Component: augeas
Version: 7.0
Hardware: Unspecified
OS: Unspecified
low
medium
Target Milestone: rc
: ---
Assignee: Dominic Cleal
QA Contact: Virtualization Bugs
URL:
Whiteboard:
Depends On:
Blocks: 1100182
TreeView+ depends on / blocked
 
Reported: 2014-05-22 03:22 UTC by Lingfei Kong
Modified: 2015-03-05 09:25 UTC (History)
4 users (show)

Fixed In Version: augeas-1.1.0-13.el7
Doc Type: Bug Fix
Doc Text:
Clone Of:
: 1100182 (view as bug list)
Environment:
Last Closed: 2015-03-05 09:25:18 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHBA-2015:0399 0 normal SHIPPED_LIVE augeas bug fix and enhancement update 2015-03-05 14:17:57 UTC

Description Lingfei Kong 2014-05-22 03:22:54 UTC
Description of problem:
augtool builtin command `dump-xml` can not save the XML to a given file

Version-Release number of selected component (if applicable):
augeas-1.1.0-12.el7

How reproducible:
100%

Steps to Reproduce:
1. Enter into augtool interactive model
2. Run the following command:
augtool> dump-xml /files/etc/ /root/save.xml
3. Check file /root/save.xml on host

Actual results:
File /root/save.xml didn't generated on the host

Expected results:
File /root/save.xml was generated on the host with the correct content


Additional info:

Comment 2 Dominic Cleal 2014-06-02 15:15:38 UTC
I've suggested this argument be removed from the documentation upstream:
https://github.com/hercules-team/augeas/pull/130

Comment 3 Dominic Cleal 2014-06-03 10:28:38 UTC
Rather than being fixed/implemented, the option has now been removed from the documentation (help output and the man page).

https://github.com/hercules-team/augeas/commit/e775e5f85183a76c584219b14963368a66171375

Comment 6 Lingfei Kong 2014-09-16 07:15:49 UTC
#augtool 
augtool> dump-xml /files/etc/ /root/save.xml
error: Failed to execute command
Too many arguments. Command dump-xml takes only 1 arguments
augtool> help dump-xml
  COMMAND
    dump-xml - print a subtree as XML

  SYNOPSIS
    dump-xml [<PATH>]

  DESCRIPTION
    Export entries in the tree as XML. If PATH is given, printing starts there,
    otherwise the whole tree is printed.

  OPTIONS
     <PATH>    print this subtree


option dump-xml remove the FILE parameter and when give two parameters to dump-xml it can give a proper error message. So, bug is fixed

Comment 8 errata-xmlrpc 2015-03-05 09:25:18 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.

https://rhn.redhat.com/errata/RHBA-2015-0399.html


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