wicket-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Michael Mosmann <mich...@mosmann.de>
Subject Re: Illegal utf characters in ajax xml response
Date Tue, 18 Dec 2012 23:26:11 GMT
Am 15.12.2012 06:22, schrieb Martin Makundi:

We could use AjaxSelfUpdatingTimerBehavior to iterate over most 
characters and see where it fails (which could be easily detected)..

As today i only know of 0x1a as a bad one.

Michael Mosmann

> OK, is possibly trivial:
>
>        getRequestCycleSettings().addResponseFilter(new IResponseFilter() {
>          @Override
>          public AppendingStringBuffer filter(AppendingStringBuffer
> responseBuffer) {
>            return responseBuffer; TODO if starts with xml strip illegal xml
> characters?
>          }
>        });
>
>
> ?
>
> 2012/12/15 Martin Makundi <martin.makundi@koodaripalvelut.com>
>
>> Can you point me to an example for this?
>>
>>
>> 2012/12/15 Martin Grigorov <mgrigorov@apache.org>
>>
>>> org.apache.wicket.response.filter.IResponseFilter is applied to both Ajax
>>> and normal responses.
>>>
>>>
>>> On Sat, Dec 15, 2012 at 7:02 AM, Martin Makundi <
>>> martin.makundi@koodaripalvelut.com> wrote:
>>>
>>>> Hi!
>>>>
>>>> Is there a setting/interceptor/filter that can be applied to filter out
>>>> illegal utf characters from AjaxRequestTarget response?
>>>>
>>>>
>>>>
>>> http://blog.mark-mclaren.info/2007/02/invalid-xml-characters-when-valid-utf8_5873.html
>>>> Specifically wicket 1.4.x
>>>>
>>>> **
>>>> Martin
>>>>
>>>
>>>
>>> --
>>> Martin Grigorov
>>> jWeekend
>>> Training, Consulting, Development
>>> http://jWeekend.com <http://jweekend.com/>
>>>
>>


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
For additional commands, e-mail: users-help@wicket.apache.org


Mime
View raw message