Branch: refs/heads/master
Home: https://github.com/xwiki/xwiki-platform
Commit: 5372f83694cc1ae108167843091d00e4edb8f429
https://github.com/xwiki/xwiki-platform/commit/5372f83694cc1ae108167843091d…
Author: Simon Urli <simon.urli(a)xwiki.com>
Date: 2024-03-28 (Thu, 28 Mar 2024)
Changed paths:
M xwiki-platform-core/xwiki-platform-attachment/xwiki-platform-attachment-api/src/test/java/org/xwiki/attachment/MoveStatusPagesTest.java
M xwiki-platform-core/xwiki-platform-attachment/xwiki-platform-attachment-api/src/test/java/org/xwiki/attachment/RefactoringMacrosPageTest.java
M xwiki-platform-core/xwiki-platform-attachment/xwiki-platform-attachment-ui/src/test/java/org/xwiki/attachment/AttachmentSelectorPageTest.java
M xwiki-platform-core/xwiki-platform-help/xwiki-platform-help-ui/src/test/java/org/xwiki/help/XWikiSyntaxMacrosListPageTest.java
M xwiki-platform-core/xwiki-platform-image/xwiki-platform-image-style/xwiki-platform-image-style-ui/src/test/java/org/xwiki/image/style/AdministrationPageTest.java
M xwiki-platform-core/xwiki-platform-panels/xwiki-platform-panels-ui/src/test/java/org/xwiki/panels/CreatePanelTest.java
M xwiki-platform-core/xwiki-platform-ratings/xwiki-platform-ratings-ui/src/test/java/org/xwiki/ratings/RatingsTest.java
M xwiki-platform-core/xwiki-platform-refactoring/xwiki-platform-refactoring-ui/src/test/java/org/xwiki/refactoring/RefactoringConfigurationTest.java
M xwiki-platform-core/xwiki-platform-wiki/xwiki-platform-wiki-ui/xwiki-platform-wiki-ui-mainwiki/src/test/java/org/xwiki/wiki/WikiManagerPageTest.java
Log Message:
-----------
XCOMMONS-2276: Upgrade to HtmlCleaner 2.29 (#3029)
* Remove all usages of ControlCharacterFilter as it's been removed in
xwiki-commons-xml as part of the upgrade
To unsubscribe from these emails, change your notification settings at https://github.com/xwiki/xwiki-platform/settings/notifications
Branch: refs/heads/master
Home: https://github.com/xwiki/xwiki-commons
Commit: 68c14af155a3decbab6a9af71eaf3119d04c5d73
https://github.com/xwiki/xwiki-commons/commit/68c14af155a3decbab6a9af71eaf3…
Author: Simon Urli <simon.urli(a)xwiki.com>
Date: 2024-03-28 (Thu, 28 Mar 2024)
Changed paths:
M xwiki-commons-core/xwiki-commons-xml/pom.xml
M xwiki-commons-core/xwiki-commons-xml/src/main/java/org/xwiki/xml/html/HTMLUtils.java
M xwiki-commons-core/xwiki-commons-xml/src/main/java/org/xwiki/xml/internal/html/DefaultHTMLCleaner.java
M xwiki-commons-core/xwiki-commons-xml/src/main/java/org/xwiki/xml/internal/html/XWikiHTML5TagProvider.java
R xwiki-commons-core/xwiki-commons-xml/src/main/java/org/xwiki/xml/internal/html/filter/ControlCharactersFilter.java
M xwiki-commons-core/xwiki-commons-xml/src/main/resources/META-INF/components.txt
M xwiki-commons-core/xwiki-commons-xml/src/test/java/org/xwiki/xml/html/DefaultHTMLCleanerComponentList.java
M xwiki-commons-core/xwiki-commons-xml/src/test/java/org/xwiki/xml/html/HTMLUtilsTest.java
M xwiki-commons-core/xwiki-commons-xml/src/test/java/org/xwiki/xml/internal/html/DefaultHTMLCleanerTest.java
M xwiki-commons-core/xwiki-commons-xml/src/test/java/org/xwiki/xml/internal/html/HTML5HTMLCleanerTest.java
Log Message:
-----------
XCOMMONS-2276: Upgrade to HtmlCleaner 2.29 (#799)
* XCOMMONS-2276 Upgrade to HtmlCleaner 2.25
* XCOMMONS-2265 HTML Encoded Line Feed character transformed in whitespace
- update to the release done today
- the "setRecognizeUnicodeChars" does no longer needed
to be set to "false", but kept at the default value of "true"
after https://sourceforge.net/p/htmlcleaner/bugs/221/ is fixed
- also update the tests to reflect the current behavior;
most of them are likely improvenents, but also
add a few cases where this is not so clear
- especially the test keeping entitiy encoded curly braces
had to be disabled, as this no longer works that way
- remove the "clean double ampersand escape" workaround
which is no longer necessary with HTMLCleaner 2.25
and even harmful in the use case where users want to
have their amperand encoded, e.g. when displaying
the encoded form in wiki pages
- put back the ecplicit call to "setRecognizeUnicodeChars(true)"
and add a comment why
- add more comments to tests to explain what they
actually test and why
- changed one test to use different test text
to attribute values and text nodes
- also fixed typos in test comments
- removed one test that only documents the behavior
of the html cleaner
* Upgrade to HtmlCleaner 2.29 and update tests
* Clarify the test using @mflorea's comment information
* Change remaining tests
* Remove unnecessary comment
* Remove now unnecessary filter
* Remove now unnecessary workarounds and fix template test
* Revert experiment in test
* Update comments and minor style refactoring
---------
Co-authored-by: Clemens Robbenhaar <c.robbenhaar(a)green-meadows.de>
Co-authored-by: Michael Hamann <michael.hamann(a)xwiki.com>
To unsubscribe from these emails, change your notification settings at https://github.com/xwiki/xwiki-commons/settings/notifications