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 902943 - [RFE] Drop support for CSV
Summary: [RFE] Drop support for CSV
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Red Hat Enterprise Linux 7
Classification: Red Hat
Component: ipa
Version: 7.0
Hardware: Unspecified
OS: Unspecified
medium
unspecified
Target Milestone: rc
: ---
Assignee: Rob Crittenden
QA Contact: IDM QE LIST
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2013-01-22 19:03 UTC by Ann Marie Rubin
Modified: 2014-06-18 00:04 UTC (History)
4 users (show)

Fixed In Version: ipa-3.2.1-1.el7
Doc Type: Enhancement
Doc Text:
Feature: Removal of CSV support in IPA options. Reason: The use of the comma separated lists as argument for different CLI commands was not consistent and sometimes incorrect. Additionally, it was very cumbersome to specify values with embedded spaces and commas. Result (if any): Options of IPA commands no longer accept lists of values separated by commas. To pass several values, multiple copies of the same command line argument are required. The brace expansion mechanism in Bash can be used as a shorthand. Example: instead of: ipa permission-add --permissions=read,write ... now use: ipa permission-add --permissions=read --permissions=write ... or (in Bash): ipa permission-add --permissions={read,write} ... No effect on the Web UI.
Clone Of:
Environment:
Last Closed: 2014-06-13 13:23:07 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)

Description Ann Marie Rubin 2013-01-22 19:03:22 UTC
This bug is created as a clone of upstream ticket:
https://fedorahosted.org/freeipa/ticket/3352

We support CSV in some arguments so one can do things like this:

{{{
ipa permission-add --permissions=read,write --attrs=sn,gn ...
}}}

This introduces great difficulty when trying to include a value with an embedded space in it. Trying to escape the space in a way that we can parse and make bash happy can be very difficult.

The level of effort in working around the CSV problems has come to the point where the benefits of it are outweighed by the problems.

There are several ways to workaround lack of CSV:

1. Provide an agugment multiple times on the command-line:

{{{
ipa permission-add --permissions=read --permissions=write ...
}}}

2. Let bash do the expansion for you:

{{{
ipa permission-add --permissions={read,write} ...
}}}

Comment 1 Martin Kosek 2013-02-22 16:33:15 UTC
CSV was removed from CLI, examples in ipa command help were amended to not use CSV in the options.

master:
f2f1ed63f5bebaea76039733c1a1aed7d8ff6588 Update plugin docstrings (topic help) to reflect dropped CSV support
5752b35d163760a564bb3fbef361116c5c1e6557 Update argument docs to reflect dropped CSV support
3a96cbc5184688830edf79e4831f729a1bf7aa44 Drop support for CSV in the CLI client
b4915bd2fde861279ba18acf940d7a5880a58ba6 Remove csv_separator and csv_skipspace Param arguments

Comment 4 Namita Soman 2013-12-12 20:21:00 UTC
Verified using ipa-server-3.3.3-5.el7.x86_64


# ipa permission-add ManageHostgroup1 --permissions="add,delete,write" --type=hostgroup --attr=businessCategory,owner 
ipa: ERROR: invalid 'permissions': "add,delete,write" is not a valid permission


# ipa permission-add ManageHostgroup1 --permissions=add --permissions=delete --permissions=write --type=hostgroup --attr=businessCategory --attr=owner 
-----------------------------------
Added permission "ManageHostgroup1"
-----------------------------------
  Permission name: ManageHostgroup1
  Permissions: add, delete, write
  Attributes: businesscategory, owner
  Type: hostgroup
:: [ 16:05:00 ] ::  Added new permission ManageHostgroup1 successfully

Comment 5 Ludek Smid 2014-06-13 13:23:07 UTC
This request was resolved in Red Hat Enterprise Linux 7.0.

Contact your manager or support representative in case you have further questions about the request.


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