There is 1 comment.
 
 
XWiki Platform / cid:jira-generated-image-avatar-02b8fb98-c954-4a46-a824-a33b385f4a52 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-d910c208-c5cf-44e2-9954-e03033440fbd Michael Hamann on 09/May/25 14:05
 

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 "
    :".
  • 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.

Nikita Petrenko What Servlet container did you perform your tests on?