Uploaded image for project: 'Magnolia'
  1. Magnolia
  2. MAGNOLIA-3224

NPE using magnolia.utf8.enabled=true - UnicodeNormalizationFilter

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Blocker Blocker
    • 4.3.3, 4.4
    • 4.3.2
    • core

      Using magnolia.utf8.enabled=true a NPE occurs on UnicodeNormalizationFilter.

      With MAGNOLIA-3204 the method resetAggregationState has been modified and now it set these aggregationState properties to:
      this.originalURI=null;
      this.originalURL=null;
      this.originalBrowserURI=null;
      this.originalBrowserURL=null;
      this.currentURI = null;

      cannot be passed a null value to UnicodeNormalizer.normalizeNFC(null), this cause NPE.

      The UnicodeNormaliazioneFilter has to normalize originalURI/URL, to overwrite these properties it needs to reset it, otherwise IllegalStateException could occurs.

      patch Included, if ok I can commit it.

        Acceptance criteria

              lucaboati Luca Boati
              lucaboati Luca Boati
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated:
                Resolved:

                  Bug DoR
                  Task DoD