#2417 escaping commas is not working
Closed: Fixed None Opened 12 years ago by rcritten.

There is a test in roles to verify that escaping commas works as expected. It is failing, as demonstrated by:

$ ipa role-add-privilege --privileges="u,r stuff" test
  Role name: test
  Description: test
  Failed members: 
    privilege: u: privilege not found
    privilege: r stuff: privilege not found
----------------------------
Number of privileges added 0
----------------------------

I'm dealing with escapes in https://fedorahosted.org/freeipa/ticket/2227; I'll fix the tests while I'm at it.

Note that the correct command is:

ipa role-add-privilege --privileges='"u,r stuff"' test

The double quotes are for the CSV parser.\
Single quotes are needed so the shell doesn't interpret the double ones.

Metadata Update from @rcritten:
- Issue assigned to pviktori
- Issue set to the milestone: FreeIPA 2.2 Core Effort - 2012/03

7 years ago

Login to comment on this ticket.

Metadata