This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 56280 - I18N - mb characters in the project name
Summary: I18N - mb characters in the project name
Status: CLOSED FIXED
Alias: None
Product: serverplugins
Classification: Unclassified
Component: Sun Appserver 8 (show other bugs)
Version: 4.x
Hardware: All All
: P2 blocker (vote)
Assignee: _ ludo
URL:
Keywords: I18N
Depends on:
Blocks:
 
Reported: 2005-03-11 14:40 UTC by Marek Grummich
Modified: 2006-03-24 13:02 UTC (History)
2 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
Deployment Progress Monitor (37.18 KB, image/gif)
2005-03-11 14:41 UTC, Marek Grummich
Details
Screenshot (239.79 KB, image/gif)
2005-03-11 14:42 UTC, Marek Grummich
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Marek Grummich 2005-03-11 14:40:23 UTC
Build 200503101100, jdk1.5.0_02
If project (web application, ejb module) is named with mb chars, then there is a
problem during deployment process. If re/deploy action is invoked, the
deployment process isn't finished correctly, the reason of problem is notified
both Deployment Progress Monitor (attached snapshots) and Output window (bellow).
There is a question/issue, if user can name a project with mb chars.
Note:
User can change a Contex Path property (based on project name) for web
application to be able deploy a project to app server.

<part_of Output window>
Deploying application in domain  failed; Error loading deployment descriptors
for EJB集まるModule Line 8 Column 22 -- cvc-complex-type.2.4.b: The content of
element 'enterprise-beans' is not complete. One of
'{"http://java.sun.com/xml/ns/j2ee":session,
"http://java.sun.com/xml/ns/j2ee":entity,
"http://java.sun.com/xml/ns/j2ee":message-driven}' is expected.
; requested operation cannot be completed
C:\work\projects\EJB集まるModule\nbproject\build-impl.xml:283: Deployment failed.
BUILD FAILED (total time: 28 seconds)
</part_of Output window>
Comment 1 Marek Grummich 2005-03-11 14:41:23 UTC
Created attachment 20788 [details]
Deployment Progress Monitor
Comment 2 Marek Grummich 2005-03-11 14:42:00 UTC
Created attachment 20789 [details]
Screenshot
Comment 3 Ken Frank 2005-03-11 17:43:35 UTC
AS does not allow multibyte (or even extended ascii) in the context name
(nor in app server instance name or jndi lookup id, maybe other places)

but the issue here is - should some other way of specifying
context name be used so that project name can have multibyte
(where the other way would check for non ascii use) --
or should project name itself be restricted to have ascii only
(and warn user and not allow non ascii input)

In general in ide, project name with multibyte is allowed.

another question is -- are there other places in ejb/websvc functionality
where use of multibyte somewhere is ok but that value is also used
to name some other item which cannot be named with multibyte ?

ken.frank@sun.com
Comment 4 _ ludo 2005-03-11 17:49:18 UTC
We need to map the mb name to a std ascii name...

Anyone has a good algo there?
Comment 5 _ ludo 2005-03-15 23:29:07 UTC
using ava.net.URLEncoder.encode to encode this to a correct url...
Comment 6 _ ludo 2005-03-15 23:33:18 UTC
fixed now.
Comment 7 Marek Grummich 2005-04-01 09:42:39 UTC
Verified - pseudolocalized build 200503242007
Comment 8 Ken Frank 2005-06-07 16:35:30 UTC
There has been some regerssion and this fix, having the url in browser
be of form %E5%A4.....
does not work, but one gets an error on web page.

Since the symptoms of this are different than symptoms of this issue,
a separate issue will be filed.

ken.frank@sun.com
07/07/2005