policy: single quote(') should be escaped by '

Bug #1965338 reported by Takashi Kajinami
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
puppet-openstacklib
Fix Released
High
Takashi Kajinami

Bug Description

Currently we surrounds policy rule key/value by single quotes(').

When a value includes single quotes, these should be escaped by ' like the following example

'foo': 'this is a ''good'' example'

However this escape is not automatically enforced now, and if a user is not aware of the requirement, he/she might be an invalid record like;

'foo': 'this is a 'bad' example'

description: updated
no longer affects: puppet-oslo
Revision history for this message
Takashi Kajinami (kajinamit) wrote :
Changed in puppet-openstacklib:
importance: Undecided → High
status: New → In Progress
assignee: nobody → Takashi Kajinami (kajinamit)
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix included in openstack/puppet-openstacklib 20.3.0

This issue was fixed in the openstack/puppet-openstacklib 20.3.0 release.

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix included in openstack/puppet-openstacklib 17.4.1

This issue was fixed in the openstack/puppet-openstacklib 17.4.1 release.

Revision history for this message
Takashi Kajinami (kajinamit) wrote :

The fix was merged in master and was backported back to stable/victoria.

Changed in puppet-openstacklib:
status: In Progress → Fix Released
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix included in openstack/puppet-openstacklib 18.5.1

This issue was fixed in the openstack/puppet-openstacklib 18.5.1 release.

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix included in openstack/puppet-openstacklib 19.5.0

This issue was fixed in the openstack/puppet-openstacklib 19.5.0 release.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.