admin@glassfish.java.net

Re: Properties with multibyte characters

From: Jason Lee <jason.d.lee_at_oracle.com>
Date: Thu, 09 Dec 2010 00:07:47 -0600

On 12/8/10 6:38 PM, Ludovic Champenois wrote:
> On 12/8/10 2:19 PM, Jason Lee wrote:
>> I'm looking at this issue ATM:
>> http://java.net/jira/browse/GLASSFISH-13641
>>
>> In short, if the user enters a multibyte value for a property name,
>> value, or description, it gets mangled when saved. I've verified
>> that the multibyte character String is passed correctly
>> browser->console->rest. In our REST code, we have this line of code:
>>
>> ConfigSupport.createAndSet((ConfigBean) parent, Property.class,
>> property);
>>
>> At this point, property is a Map with the correct
>> name/value/description values. However, somewhere inside (or beyond)
>> createAndSet(), the MB char String is mangled.
> Not sure.
> But worse: this is not going to be replicated.... Should we worry, and
> if yes, we are missing some create-*** CLI commands there,
Hrm. No, that's not good. It sounds like then we have two issues to
solve: (A) how to save properties in a way that guarantees the changes
will be propagated, and (B) how to save multibyte characters in domain.xml.

Sounds like an issue apiece for Byron/Tom/admin team and Jerome/Ludo/HK2
team?

If that sounds right, I'll file issues in the morning.

-- 
Jason Lee
Senior Member of Technical Staff
GlassFish REST API / Administration Console
Oracle Corporation
Phone +1 405-216-3193
Blog http://blogs.steeplesoft.com