admin@glassfish.java.net

Properties with multibyte characters

From: Jason Lee <jason.d.lee_at_oracle.com>
Date: Wed, 08 Dec 2010 16:19:09 -0600

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. It's possible, I guess, that it could be an XML
issue, and therein lies my question: What do we need to do to allow the
user to save a MB character String? Is our REST code interacting with
the HK2 DOM correctly? I grepped what I felt might be likely places
elsewhere in the GF tree, but I can't find any similar scenarios.

Any pointers would be much appreciated.

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