Uploaded image for project: 'XWiki Commons'
  1. XWiki Commons
  2. XCOMMONS-1408

Removing locking in html cleaner

    XMLWordPrintable

Details

    • Improvement
    • Resolution: Unresolved
    • Major
    • None
    • 9.11.4
    • XML
    • Unknown

    Description

      org.xwiki.xml.internal.html.DefaultHTMLCleaner is using DocumentBuilderFactory.newInstance() which which is a bit expensive when called very often and also lock the Classloader when loading the class of the factory.

      Would be better to find a thread safe factory implementation or parse the XML using another tool.

      Attachments

        Activity

          People

            Unassigned Unassigned
            tmortagne Thomas Mortagne
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated: