New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Dom4j 2.1.1 has regression and is stripping entities #51
Comments
To summarize what's at my post in the css4j forum: With dom4j 2.1.1:
dom4j 2.1.0 (I assume prior versions have similar behaviour):
I added two tests and 2.1.1 is failing one of them. The easiest way to run them is to do a Maven build from git, there are instructions to do that at https://carte.sourceforge.io/css4j/. |
So it seems dom4j has changed the default behavior, see #28 Basically they did this:
So I think we now either need to override the features in XWiki or it should be done in CSS4J. I'll test this more over the coming days. @FilipJirsak is that correct? |
@vmassol Default behavior changed only for |
ok thanks @FilipJirsak for the info. I'll let you debug it then :) Let me know if you need my help for anything and thanks very much for looking into this. |
Hi. Any progress on this? Looks like quite a big problem... |
I was trying to look at this issue more closely and came up to commit 53f923a, where at lines 111 and 112 of the
Those lines have little effect, as the names of the features aren't those: they are So the patch for #28 is unlikely to be the cause of the problem, as it does nothing. |
The problem is due to #44, specifically line 115 in
IMHO that line should not be there, as |
Thanks a lot @carlosame for digging into this. Let's hope that the Dom4J devs can fix this so that we can upgrade the Dom4J version used in XWiki ;) (we'll try the workaround suggested by @carlosame in the meantime but we'd rather get rid of it ASAP). Thanks :) |
@FilipJirsak Hi. Any idea how to progress on this? Thx |
Hi there,
On the XWiki project we upgraded from dom4J 2.1.0 to 2.1.1 and found some regressions: dom4j is now stripping our entities from the XML.
FTR here's the jira issue on the XWiki side: https://jira.xwiki.org/browse/XWIKI-15694
Initially we thought the problem was coming from our upgrade of CSS4J and after debugging with CSS4J's author, we found that the issue is actually with dom4J 2.1.1, see https://groups.google.com/forum/#!topic/css4j/HlnlB2c8G4I
To reproduce, see the tests at https://groups.google.com/d/msg/css4j/HlnlB2c8G4I/FFGDUyVDAwAJ
Thanks
The text was updated successfully, but these errors were encountered: