There is 1 update, 1 comment.
 
 
XWiki Platform / cid:jira-generated-image-avatar-21c00162-50ce-4b89-95a4-cf88b7782764 XWIKI-24582 Open

Old PDF export fail with custom CSS rules

 
View issue   ·   Add comment
 

1 update

 
cid:jira-generated-image-avatar-1a1be4b2-f88c-4ee7-853c-3432d6e6b1bb Changes by Michael Hamann on 11/Aug/26 13:02
 
Labels: regression
 
 

1 comment

 
cid:jira-generated-image-avatar-1a1be4b2-f88c-4ee7-853c-3432d6e6b1bb Michael Hamann on 11/Aug/26 13:01
 

This is a regression caused by XWIKI-23376 which changed the color output to use CSS Color Level 4 hex-with-alpha notation. However, FOP 2.3 only knows #RGB/#RRGGBB. In PropertyTokenizer.nextColor, 4 hex digits give len % 3 != 0, so it falls back to scanRestOfName(), whose while (++exprIndex < exprLength) pushes the index one past the end — expr.substring(0, 6) on a 5-char string. Hence Range [0, 6) out of bounds for length 5, a RuntimeException that aborts the whole export instead of being a recoverable PropertyException.