[RESPDAM-46] Exclude xalan dependencies for smiley support Created: 24/Jun/21  Updated: 21/Feb/22  Resolved: 03/Feb/22

Status: Closed
Project: DAM Focal
Component/s: None
Affects Version/s: 2.0.6
Fix Version/s: 2.1

Type: Bug Priority: Neutral
Reporter: Tobias Kerschbaum Assignee: Raphael Falvo
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Problem/Incident
causes RESPDAM-60 Editing of SVG Images broken with DAM... Closed
Relates
Template:
Acceptance criteria:
Empty
Task DoD:
[X]* Doc/release notes changes? Comment present?
[X]* Downstream builds green?
[X]* Solution information and context easily available?
[X]* Tests
[X]* FixVersion filled and not yet released
[X]  Architecture Decision Record (ADR)
Bug DoR:
[ ]* Steps to reproduce, expected, and actual results filled
[ ]* Affected version filled
Date of First Response:
Sprint: Sprint 13

 Description   

Steps to reproduce

  1. Just start a vanilla Magnolia with the magnolia-dam-focal module installed
  2.  Create a basic page
  3. Insert the emoji 🌱  into the abstract field of the page dialog
  4. Open JCR app
  5. Export the page as XML

Expected results

Expected would be the Decimal HTML Entity code of the seeding emoji → & #127793;

Actual results

You get this code: & #55356;& #57137;

If you try to reimport the page or publish the page, an invalid character exception is thrown.

Workaround

With the exclusion of the xalan dependencie the problem seems to be gone. Maybe we have to verify that no other feature of the dam focal module is affected with this exclusion:

<!-- DAM-Focal -->
<dependency>
  <groupId>info.magnolia.dam</groupId>
  <artifactId>magnolia-dam-focal-area</artifactId>
  <exclusions>
    <exclusion>
      <groupId>xalan</groupId>
      <artifactId>xalan</artifactId>
    </exclusion>
  </exclusions>
</dependency>
<dependency>
  <groupId>info.magnolia.dam</groupId>
  <artifactId>magnolia-dam-focal-point</artifactId>
  <exclusions>
    <exclusion>
      <groupId>xalan</groupId>
      <artifactId>xalan</artifactId>
    </exclusion>
  </exclusions>
</dependency>
<dependency>
  <groupId>info.magnolia.dam</groupId>
  <artifactId>magnolia-dam-focal-hotspot</artifactId>
  <exclusions>
    <exclusion>
      <groupId>xalan</groupId>
      <artifactId>xalan</artifactId>
    </exclusion>
  </exclusions>
</dependency>

Development notes



 Comments   
Comment by Richard Gange [ 24/Jun/21 ]

Maybe related to this? https://bugs.openjdk.java.net/browse/JDK-8207760

Generated at Mon Feb 12 00:42:00 CET 2024 using Jira 9.4.2#940002-sha1:46d1a51de284217efdcb32434eab47a99af2938b.