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 59710 - I18N - cannot run successfully using AS if project name has multibyte
Summary: I18N - cannot run successfully using AS if project name has multibyte
Status: CLOSED FIXED
Alias: None
Product: javaee
Classification: Unclassified
Component: Web Project (show other bugs)
Version: 4.x
Hardware: Sun All
: P2 blocker (vote)
Assignee: Pavel Buzek
URL:
Keywords: I18N
Depends on:
Blocks:
 
Reported: 2005-06-07 17:06 UTC by Ken Frank
Modified: 2006-03-24 13:17 UTC (History)
2 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
attachment2 (92.60 KB, image/gif)
2005-06-07 17:08 UTC, Ken Frank
Details
attachment1a (178.81 KB, image/gif)
2005-06-07 17:09 UTC, Ken Frank
Details
attachement 2 (36.49 KB, image/gif)
2005-06-07 17:26 UTC, Ken Frank
Details
attachment3 (12.08 KB, image/gif)
2005-06-07 17:27 UTC, Ken Frank
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Ken Frank 2005-06-07 17:06:12 UTC
In issue 56280, if project name had multibyte (perhaps also extended ascii),
the context root value for web app was seeded with this project name,
but the app would not run; would not get deployed ok to AS. see that issue
for details.

The fix of that issue was to encode the context root name using the 
% notation for urls ie %E5%A4.....

The issue with AS is that it itself does not allow context root with multibyte.

That fix does not work but the symptoms are different than original bug
so thats why this is being filed.

This time, browser shows error page that it can't find the context root
file (that is expressed as %E5%A4....

and its not clear if it actually deploys to server or not

see gifs

Workaround is to change context root to not use multibyte.

If the solution to other issue can be fixed, it will still be better
than not allowing user to use mbyte in project name at all, 
but can understand if we need to live with AS restriction.

Also, maybe just stripping off the mbyte or assigning some unique 
ascii value to context root ? I don't know if our docs state
that project name becomes context root name and thus user would expect
it; I don't know if there is some standard for context root naming
as per specs.
Comment 1 Ken Frank 2005-06-07 17:08:35 UTC
Created attachment 22533 [details]
attachment2 [details]
Comment 2 Ken Frank 2005-06-07 17:09:17 UTC
Created attachment 22534 [details]
attachment1 [details]a
Comment 3 Ken Frank 2005-06-07 17:26:09 UTC
attached is another gif of admin console of AS showing it seems
that it feels this app is deployed, as can see by the actual mbyte.
(I am assuming that what am seeing in gif is notation of what is deployed)

other new gif shows view of nb of deployed web apps, and you can
see the multibyte does not look all ok; I don't know if that
is because of trying to display the % notation or some other
reason like reading encoding of info sent back from AS.

When I type this actual mbyte into browser, browser needs to change
it itself to the %E5 ...
notation and again get the error message page from AS

so its not clear if this is just the limitation of AS and that
even doing the fix using % notation helps.
Comment 4 Ken Frank 2005-06-07 17:26:46 UTC
Created attachment 22535 [details]
attachement 2
Comment 5 Ken Frank 2005-06-07 17:27:12 UTC
Created attachment 22536 [details]
attachment3 [details]
Comment 6 Pavel Buzek 2005-09-13 15:46:37 UTC
First, to scope the problem: If the user explicitly enters multibyte characters
into context path we do not need to restrict that, we just want to prevent the
situation when we generate a *default* context path that contains multibyte chars.

Second, I think that we should let the user use multibyte chars in project name
if it does not create other problems.

Third, the project name is used as the default context path only for lack of a
better unique identifier. The user can always modify the context path. We
already replace space in project name with "_" when we create the default
context path. The solution for multibyte characters is to replace them with some
acceptable chars. In fact we do not need any fancy algorithm, any characters
will do as this is just a default.
Comment 8 Jaroslav Pospisil 2005-12-20 12:42:10 UTC
VERIFIED