Hi Anton you're right!
with Magnolia 4.3.2 I got a NPE.

I created this jira and I attached a patch
http://jira.magnolia-cms.com/browse/MAGNOLIA-3224

hth
Luca

2010/6/4 Anton Matheis <[email protected]>

>
> Hi,
> thanks for your replies!
>
> > which URL are you using?
> doesn't matter, anyone 'works'
>
> > do you have a custom filter chain or do you set custom bypass?
> no, neither
>
> > java version?
> 1.6.20
>
> > browser?
> FF and IE
>
> Magnolia Core Version is 4.3.2 SNAPSHOT
>
> I just started debugging into it again. I am sorry, my brain is quite
> waisted now on this friday afternoon with first sunshine in weeks
> (\o/), but what happens in my code is that the URI gets reset (set to
> null) by calling MgnlContext.resetAggregationState().
>
> I stepped through it but the ctx and the aggregationState are always
> the same objects (objecthash in debugger).
> That means: the one aggregationState which gets reset is the one which
> is called for the originalURI afterwards.
>
> Maybe i am overseeing something?
>
> Greetings,
> Anton
>
> On Thu, Jun 3, 2010 at 2:26 PM, Jan Haderka
> <[email protected]> wrote:
> >
> > 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]>
> > ----------------------------------------------------------------
> >
>
> ----------------------------------------------------------------
> For list details see
> http://www.magnolia-cms.com/home/community/mailing-lists.html
> To unsubscribe, E-mail to: <[email protected]>
> ----------------------------------------------------------------
>
>

----------------------------------------------------------------
For list details see
http://www.magnolia-cms.com/home/community/mailing-lists.html
To unsubscribe, E-mail to: <[email protected]>
----------------------------------------------------------------

Reply via email to