There is 1 update, 3 comments.
 
 
XWiki Platform / cid:jira-generated-image-avatar-6887731a-1afd-4deb-8474-a1df01d3b3e8 XWIKI-23478 Open

Calling services.wysiwyg.fromAnnotatedXHTML from jobMacro crash with npe

 
View issue   ยท   Add comment
 

1 update

 
cid:jira-generated-image-avatar-b248bd0b-18f6-4ec6-997e-b15a8d6d24ff Changes by Thomas Mortagne on 06/Nov/25 16:30
 
Labels: regression
 
 

3 comments

 
cid:jira-generated-image-avatar-b248bd0b-18f6-4ec6-997e-b15a8d6d24ff Thomas Mortagne on 06/Nov/25 16:24
 
The final error seem related to https://jira.xwiki.org/browse/ XWIKI-23232
 
cid:jira-generated-image-avatar-b248bd0b-18f6-4ec6-997e-b15a8d6d24ff Thomas Mortagne on 06/Nov/25 16:29
 

IMO, the real problem here is the fact that WysiwygEditorScriptService#fromAnnotatedXHTML depends on the session (you don't care about temporary attachment in your use case since there the concept does not make sense in a background thread), and it's probably even a regression cause by XWIKI-18810.

 
cid:jira-generated-image-avatar-b248bd0b-18f6-4ec6-997e-b15a8d6d24ff Thomas Mortagne on 06/Nov/25 16:29
 
IMO, the real problem here is the fact that WysiwygEditorScriptService#fromAnnotatedXHTML depends on the session (you don't care about temporary attachment attachments in your use case since there the concept does not make sense in a background thread), and it's probably even a regression cause caused by XWIKI-18810.