There is 1 comment.
 
 
XWiki Platform / cid:jira-generated-image-avatar-d530d195-5903-40fa-9628-4c5e280183fd XWIKI-23190 Open

LiveData inline editing fails when classname or page name includes special symbols

 
View issue   ยท   Add comment
 

1 comment

 
cid:jira-generated-image-avatar-0ac42da4-2f00-4969-9331-e166c0e72a70 Michael Hamann on 09/May/25 14:44
 
I tried reproducing and I actually encountered two distinct problems:

* The editor for the object property failed to load when the class named contained ":". I tried to debug the root cause and it seemed to me like the cause for this was that the object property reference parser used at https://github.com/xwiki/xwiki-platform/blob/a42e27984f6a66e219b09057489a8b41eb1aa9dc/xwiki-platform-core/xwiki-platform-web/xwiki-platform-web-templates/src/main/resources/templates/display_macros.vm#L21 transformed "\:" into ":" while parsing but kept the XClass reference still as a string (that now contained an unescaped ":"). Then later, when the XClass reference was parsed to a document reference, it was wrong. I tested manually loading the editor and it worked with
" {noformat} \\: ". {noformat}
* When removing the ":" from the XClass reference, the editor loaded. However, saving an entry of a page with ":" in its name still failed on Jetty because the URL used for saving contains the full serialized document reference as a single component in the path. And at least the Jetty-based demo distribution really doesn't like URLs containing "\". I haven't tested if this is also a problem on Tomcat.

[~npetrenko] What Servlet container did you perform your tests on?