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

NPE using magnolia.utf8.enabled=true - UnicodeNormalizationFilter

    XMLWordPrintable

Details

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

    Description

      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.

      Checklists

        Acceptance criteria

        Attachments

          Issue Links

            Activity

              People

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

                Dates

                  Created:
                  Updated:
                  Resolved:

                  Checklists

                    Bug DoR
                    Task DoD