Could you please create an issue in jira.magnolia-cms.com?

Thanks
Jan

On Nov 29, 2010, at 3:33 PM, frank rittinger wrote:

> Hi list,
>  
> thinking a bit about the problem with the categories, I realized that the 
> same problem should occur for all forms that have parameters with multiple 
> values, e.g. multi-select listboxes etc. and UTF8 support enabled.
>  
> Did anyone have similar problems (and a solution)?
>  
> Regards,
>  
> Frank
>  
> Von: [email protected] 
> [mailto:[email protected]] Im Auftrag von frank rittinger
> Gesendet: Freitag, 26. November 2010 23:20
> An: [email protected]
> Betreff: [magnolia-user] Problem with UTF8 support and 
> CategorizationSaveHandler
>  
> Hi Magnolians,
>  
> I have a problem saving multiple categories while UTF8 support is enabled: 
> Only the last category is persisted to the JCR. Even if multiple categories 
> are selected. Without UTF8 all works as expected.
>  
> I debugged into magnolia and think that the problem is inside the 
> UnicodeNormalizerRequestWrapper. When UTF8 support is activated, the request 
> is additionaly wrapped by the UnicodeNormalizerRequestWrapper.
>  
> The save action of the CategorizationSaveHandler uses 
> MgnlContext.getParameterValues(name) to retrieve the values that should be 
> persisted. Finally, this calls this.request.getParameterValues(name).
>  
> Without UTF8 support this will end up in 
> MultipartRequestWrapper.getParameterValues(name) which calls 
> form.getParameterValues(name) which returns a list of all values for this 
> name. So far, so good.
>  
> But, with UTF8 enabled the call to this.request.getParameterValues ends up in 
> UnicodeNormalizerRequestWrapper.getParameterValues which gets the result from 
> original.getParameterMap where original is the 
> MultipartequestWrapper.getParameterMap which calls form.getParameter which 
> only stores the last value of all categories that were send in the original 
> request instead of a list of all values.
>  
> I think UnicodeNormalizerRequestWrapper.getParameterValues should also call 
> original.getParameterValues!
>  
> Since I don’t know the details of the UTF8 handling in magnolia, I’m not sure 
> which side effects such a change might provoke.
>  
> Is this a misconfiguration at our end or should I file a bug in JIRA?
>  
> Regards,
>  
> Frank
>  
> 
> _____________________________________________________________________
> 
> Vorstand: Ralf Heller, Udo Mobes 
> Vorsitzende des Aufsichtsrates: Kirsten Heller 
> Sitz der Gesellschaft: Gruenwaelderstrasse 10-14, D-79098 Freiburg 
> Amtsgericht Freiburg HRB 6218
> 
> Versand am 26.11.2010 23:20 von rittinger frank
> Validation-Code: 3631376107660
> 
> 
> 
> ----------------------------------------------------------------
> 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