Description of problem: Use of the horizontal ellispis character in html to shorten long values breaks the render of some widgets in Cumin in the Messaging tabs. Specifically, the fmt_shorten() routine is being used in several places in the messaging tabs to deal with long values. One of these places is in the render of the form for an "Add binding" task. If a queue is selected that has a name longer than 40 characters, the shortening code will insert the horizontal ellipsis and break the xml parsing in the browser. This likely occurs other places, too (search for fmt_shorten). Version-Release number of selected component (if applicable): How reproducible: 100% Steps to Reproduce: 1. Set up a Cumin instance with Messaging enabled (modify the peronsa: and datas: values in cumin.conf for Messaging. This is the default in current releases. 2. Go to the Messsaging->Queues tab and select a queue with a name longer than 40 characters. Since the machine name is part of the queue name, you can make one exist by creating a really long host name and running the broker from that host. 3. From the queue drilldown page, click the "Add binding" task Actual results: Queue names longer than 40 characters will cause an xml parse error. Queue names shorter than 40 characters will not. Expected results: Queue name length should not cause an error. Additional info: Here the output of the parse error from an "Add binding" task on a queue. The name of the machine has been changed for pasting in the BZ, but the length is the same. Notice the use of #8230 in the last line of the URL. <sourcetext xmlns="http://www.mozilla.org/newlayout/xml/parsererror.xml"><input class="disabled" id="modes.QueueBindingAdd_529487120.queue" name="modes.QueueBindingAdd_529487120.queue" value="<span title="qmfc-v2-hb-this-machine-isnt-real-my_fake_inc.com.13376.1">qmfc-v2-hb- this-machine-isnt-real-my&#8230;76.1</span>" tabindex="100" size="30" /> -----------------------------------------------------------------------------------------------------------------------^</sourcetext>
For some reason, the value of the form field was being set to a <span> tag, which is not valid XHTML. My solution was to avoid adding the unnecessary <span> tag when rendering the shortened text in the form field.
Fixed in revision 5435 on trunk.
Reproduced on cumin-0.1.5444-3 Long queue generates: --- This page contains the following errors: error on line 35 at column 28: Unescaped '<' not allowed in attributes values Below is a rendering of the page up to the first error. --- Tested on cumin-0.1.5675-1 queue - qmfagent-047b2251-db2d-45f5-90e2-826cccafb293 shows in 'Add binding' widget - qmfagent-047b2251-db2d-45f5-90e2-826…b293 The queue name should be properly displayed in the input box. Submitting binding says: Add binding: Failed ('ascii' codec can't decode byte 0xe2 in position 36: ordinal not in range(128)) Shouldn't queue name field in 'Add binding' widet be non-editable? --> ASSIGNED
MRG-Grid is in maintenance and only customer escalations will be considered. This issue can be reopened if a customer escalation associated with it occurs.