Bugzilla will be upgraded to version 5.0. The upgrade date is tentatively scheduled for 2 December 2018, pending final testing and feedback.
Bug 1219574 - [gui] resource optional arguments: quoted strings missing
[gui] resource optional arguments: quoted strings missing
Status: CLOSED ERRATA
Product: Red Hat Enterprise Linux 7
Classification: Red Hat
Component: pcs (Show other bugs)
7.2
Unspecified Unspecified
high Severity unspecified
: rc
: ---
Assigned To: Ondrej Mular
cluster-qe@redhat.com
:
Depends On: 1189857
Blocks:
  Show dependency treegraph
 
Reported: 2015-05-07 12:47 EDT by Patrik Hagara
Modified: 2015-11-19 04:37 EST (History)
4 users (show)

See Also:
Fixed In Version: pcs-0.9.143-1.el7
Doc Type: Bug Fix
Doc Text:
Cause: Value of resource optional argument contains character '"'. Consequence: Web UI didn't show full value of attribute with character '"' Fix: Escaping spacial HTML characters. Result: Web UI shows arguments values properly.
Story Points: ---
Clone Of:
Environment:
Last Closed: 2015-11-19 04:37:29 EST
Type: Bug
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---


Attachments (Terms of Use)


External Trackers
Tracker ID Priority Status Summary Last Updated
Red Hat Product Errata RHSA-2015:2290 normal SHIPPED_LIVE Moderate: pcs security, bug fix, and enhancement update 2015-11-19 04:43:53 EST

  None (edit)
Description Patrik Hagara 2015-05-07 12:47:22 EDT
Description of problem:
Double quotes along with everything in-between are not visible in resource optional argument text fields. Eg. when additional_parameters option of mysql resource is set to:
  <nvpair id="my-instance_attributes-additional_parameters" name="additional_parameters" value="--bind-address=&quot;0.0.0.0&quot;"/>

then the text field in pcs-gui contains just:
  --bind-address=

Version-Release number of selected component (if applicable):
pcs-0.9.137-13.el7.x86_64

How reproducible:
always

Steps to Reproduce:
create resource with quotes in optional parameter

Actual results:
pcs-gui hides quotes and everything between them

Expected results:
show the same values as set in cib

Additional info:
Comment 2 Patrik Hagara 2015-05-07 12:59:53 EDT
pcs cli shows the correct values:

# pcs resource show my
 Resource: my (class=ocf provider=heartbeat type=mysql)
  Attributes: additional_parameters=--bind-address="0.0.0.0" config=/etc/oh-my.cnf 
  Operations: start interval=0s timeout=120 (my-start-timeout-120)
              stop interval=0s timeout=120 (my-stop-timeout-120)
              monitor interval=20 timeout=30 (my-monitor-interval-20)
              monitor interval=10 role=Master timeout=30 (my-monitor-interval-10-role-Master)
              monitor interval=30 role=Slave timeout=30 (my-monitor-interval-30-role-Slave)
              promote interval=0s timeout=120 (my-promote-timeout-120)
              demote interval=0s timeout=120 (my-demote-timeout-120)
Comment 4 Tomas Jelinek 2015-08-10 09:20:18 EDT
Fixed in a complex rewrite of the resources page in the web UI, patches in bz1189857


Before Fix:
[root@rh71-node1 ~]# rpm -q pcs
pcs-0.9.142-2.el7.x86_64
[root@rh71-node1:~]# pcs resource create dummy0 Dummy fake=quoted\ \"test\"
Web UI shows an empty value of the fake attribute.



After Fix:
[root@rh71-node1:~]# rpm -q pcs
pcs-0.9.143-1.el7.x86_64
[root@rh71-node1:~]# pcs resource create dummy0 Dummy fake=quoted\ \"test\"
Web UI shows 'quoted "test"' as a value of the fake attribute.
Comment 8 errata-xmlrpc 2015-11-19 04:37:29 EST
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/RHSA-2015-2290.html

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