On Jun 3, 2010, at 10:38 AM, Luca Boati wrote: > Hi Anton, > NPE occurs because aggregationState.getOriginalUri() = null, not because > MgnlContext.resetAggregationState() is called. > MgnlContext.resetAggregationState() set to null the aggregationState > referenced in the WebContext, instead the UnicodeNormalizationFilter: > 1) get locally the aggregationState (line 66) > 2) reset WebContext aggregationState (line 71)
Why do you need to reset AS in unicode filter? It was already reset by the ContentTypeFilter. > 3) normalize the local aggregationState.getOriginalUri() -> > UnicodeNormalizer.normalizeNFC(aggregationState.getOriginalURI()) (line 82) Hmm, I guess that answers my question, because you want to change the Original URI and can't do so without the reset. Still it seems wrong what if some other filter set something in the aggeregation state in between? > > somehow the originalURI is already null before pass through the > UnicodeNormalizationFilter. Orignal URI is set first time by the ContentTypeFilter. Bypass on this filter would cause Original URI to be null. > > which URL are you using? > do you have a custom filter chain or do you set custom bypass? > java version? > browser? > > ciao > Luca > > 2010/6/2 Anton Matheis <[email protected]> > > Good morning Magnolia Users, > > does anyone else get this NPE when using UTF-8? > > Exception Stack: > http://pastebin.ch/5781 > > Code causing it in info.magnolia.cms.filters.UnicodeNormalizationFilter: > http://pastebin.ch/5780 > > Regards, > Anton > > ---------------------------------------------------------------- > For list details see > http://www.magnolia-cms.com/home/community/mailing-lists.html > To unsubscribe, E-mail to: <[email protected]> > ---------------------------------------------------------------- > > - Best regards, Jan Haderka, PhD. Magnolia International Ltd. http://www.magnolia-cms.com You should join us at Magnolia Conference 2010: http://www.magnolia-cms.com/conference http://twitter.com/magnolia_cms http://facebook.com/Magnolia -------------------------------------- Magnolia® - Simple Open-Source Content Management ---------------------------------------------------------------- For list details see http://www.magnolia-cms.com/home/community/mailing-lists.html To unsubscribe, E-mail to: <[email protected]> ----------------------------------------------------------------
