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

Removing locking in html cleaner

    XMLWordPrintable

    Details

    • Type: Improvement
    • Status: Open
    • Priority: Major
    • Resolution: Unresolved
    • Affects Version/s: 9.11.4
    • Fix Version/s: None
    • Component/s: XML
    • Labels:
    • Difficulty:
      Unknown
    • Similar issues:

      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

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

              Dates

              Created:
              Updated: