Bug 1294547 - The --xml flag should always output xml
Summary: The --xml flag should always output xml
Keywords:
Status: CLOSED DEFERRED
Alias: None
Product: GlusterFS
Classification: Community
Component: cli
Version: mainline
Hardware: Unspecified
OS: Unspecified
unspecified
low
Target Milestone: ---
Assignee: bugs@gluster.org
QA Contact:
URL:
Whiteboard:
: 1295762 (view as bug list)
Depends On: 1295762
Blocks:
TreeView+ depends on / blocked
 
Reported: 2015-12-28 23:32 UTC by Joe Julian
Modified: 2019-05-09 10:03 UTC (History)
5 users (show)

Fixed In Version:
Clone Of:
: 1295762 (view as bug list)
Environment:
Last Closed: 2019-05-09 10:03:20 UTC
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Embargoed:


Attachments (Terms of Use)

Description Joe Julian 2015-12-28 23:32:15 UTC
The output of the cli with the --xml flag is inconsistent. Every cli command should output xml if that flag is set.

At the very minimum, a valid xml message could just be the string output wrapped in xml, ie.:

# gluster --xml --version
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<cliOutput>
  <opRet>0</opRet>
  <opRetStr>glusterfs 3.7.6 built on Dec 11 2015 22:26:22
Repository revision: git://git.gluster.com/glusterfs.git
Copyright (c) 2006-2011 Gluster Inc. <http://www.gluster.com>
GlusterFS comes with ABSOLUTELY NO WARRANTY.
You may redistribute copies of GlusterFS under the terms of the GNU General Public License.</opRetStr>
</cliOutput>

This would allow an application to rely on sane input that can always be dom processed.

Comment 1 Kaushal 2017-03-08 10:48:49 UTC
This bug is getting closed because GlusteFS-3.7 has reached its end-of-life.

Note: This bug is being closed using a script. No verification has been performed to check if it still exists on newer releases of GlusterFS.
If this bug still exists in newer GlusterFS releases, please reopen this bug against the newer release.

Comment 2 Vijay Bellur 2018-11-19 08:57:58 UTC
*** Bug 1295762 has been marked as a duplicate of this bug. ***

Comment 3 Amar Tumballi 2019-05-09 10:03:20 UTC
Not much focus on --xml output at present. Will keep it as DEFERRED, and revisit it based on time/resource.


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