[MAGNOLIA-3224] NPE using magnolia.utf8.enabled=true - UnicodeNormalizationFilter Created: 04/Jun/10  Updated: 13/Mar/12  Resolved: 08/Jun/10

Status: Closed
Project: Magnolia
Component/s: core
Affects Version/s: 4.3.2
Fix Version/s: 4.3.3, 4.4

Type: Bug Priority: Blocker
Reporter: Luca Boati Assignee: Luca Boati
Resolution: Fixed Votes: 0
Labels: unicode
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Attachments: File UnicodeNormalizationFilter.patch    
Issue Links:
relation
is related to MAGNOLIA-3203 aggregation state: original uri reset... Closed
Template:
Patch included:
Yes
Acceptance criteria:
Empty
Task DoD:
[ ]* Doc/release notes changes? Comment present?
[ ]* Downstream builds green?
[ ]* Solution information and context easily available?
[ ]* Tests
[ ]* FixVersion filled and not yet released
[ ]  Architecture Decision Record (ADR)
Bug DoR:
[ ]* Steps to reproduce, expected, and actual results filled
[ ]* Affected version filled
Date of First Response:

 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.



 Comments   
Comment by Fabrizio Giustina [ 08/Jun/10 ]

raising priority

Comment by Magnolia International [ 08/Jun/10 ]

please port fixes to the 4.3 branch

Comment by Fabrizio Giustina [ 08/Jun/10 ]

done

Comment by Magnolia International [ 09/Jun/10 ]

please merge ...

Comment by Luca Boati [ 10/Jun/10 ]

merge done

Generated at Mon Feb 12 03:44:24 CET 2024 using Jira 9.4.2#940002-sha1:46d1a51de284217efdcb32434eab47a99af2938b.