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

Optimise AntiSamy logging for null input in org.apache.sling.xss.impl.HtmlToHtmlContentContext

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: XSS Protection API 2.0.6
    • Fix Version/s: XSS Protection API 2.0.12
    • Component/s: Extensions
    • Labels:
      None

      Description

      AntiSamy throws exceptions when scanning null input. Although the exceptions are handled correctly, they have the potential to fill up the logs. A null check is better suited in this case, so that the only thrown exceptions are in case there's a real scan / policy issue.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                radu.cotescu Radu Cotescu
                Reporter:
                radu.cotescu Radu Cotescu
              • Votes:
                0 Vote for this issue
                Watchers:
                1 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: