Uploaded image for project: 'Sling'
  1. Sling
  2. SLING-8305

Embed Cocoon XMLSerializer

    XMLWordPrintableJSON

    Details

    • Type: Improvement
    • Status: Open
    • Priority: Major
    • Resolution: Unresolved
    • Affects Version/s: Rewriter 1.2.2
    • Fix Version/s: None
    • Component/s: Extensions
    • Labels:
      None

      Description

      The XMLSerializer (https://github.com/apache/sling-org-apache-sling-rewriter/blob/669f2074ae550781cd7745422f8b3d17b1045892/src/main/java/org/apache/sling/rewriter/impl/components/XMLSerializerFactory.java#L48) extends the Cocoon one from org.apache.cocoon.components.serializers.util.XMLSerializer. The latter is a third party dependency which is marked as optional import via https://github.com/apache/sling-org-apache-sling-rewriter/blob/669f2074ae550781cd7745422f8b3d17b1045892/bnd.bnd#L12.

      Neither in the slingstarter nor in AEM 6.4.1 this 3rd party dependency is shipped by default.
      But since the factory from https://github.com/apache/sling-org-apache-sling-rewriter/blob/master/src/main/java/org/apache/sling/rewriter/impl/components/XMLSerializerFactory.java is always being registered you run in such cases into a CNFE at run time.

      I would suggest to just embed the cocon XML serializer into the rewriter bundle to remove that run time dependency.

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              kwin Konrad Windszus
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated: