[kepler-dev] [Bug 3901] - unescaped & in <entity name="a & b"> on line 4

bugzilla-daemon at ecoinformatics.org bugzilla-daemon at ecoinformatics.org
Wed Mar 18 13:51:27 PDT 2009


http://bugzilla.ecoinformatics.org/show_bug.cgi?id=3901


cxh at eecs.berkeley.edu changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|                            |FIXED




------- Comment #1 from cxh at eecs.berkeley.edu  2009-03-18 13:51 -------
I partially fixed this by modifying PtolemyEffigy so that we escape for xml
the username.  Models can now be saved with names like "This & That.xml".

However, the name in the title bar will look like
"file:/tmp/This%20&%20That.xml"
The reason is that Ptolemy uses URLs or URIs to represent model names.
Trying to change the title bar so that it shows "file:/tmp/This & That.xml"
initially seems desirable, but spaces are not legitimate characters in URLs
or URIs.  If I hacked in something that changed %20 to space, then that
would look better, but it would technically be a lie, since the URL or
URI has %20s in it, not spaces.

Interestingly, if I open /tmp/This & That.xml and then do Save As, then
the file browser shows the initial file name as "This & That.xml", which
correct.  It would have been wrong to show "This%20&%20That.xml".


More information about the Kepler-dev mailing list