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 149211 - I18N - Can't Create Secure Toke Service (STS) unsuccessfully if multibyte is in name of the service
Summary: I18N - Can't Create Secure Toke Service (STS) unsuccessfully if multibyte is ...
Status: RESOLVED FIXED
Alias: None
Product: webservices
Classification: Unclassified
Component: WSIT (show other bugs)
Version: 6.x
Hardware: All All
: P3 blocker (vote)
Assignee: Martin Grebac
URL:
Keywords: I18N
Depends on:
Blocks:
 
Reported: 2008-10-06 11:42 UTC by Will Zhang
Modified: 2009-10-21 15:56 UTC (History)
2 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
zip of project (13.81 KB, application/octet-stream)
2008-10-07 17:26 UTC, Ken Frank
Details
log file (75.55 KB, text/plain)
2008-10-07 17:33 UTC, Ken Frank
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Will Zhang 2008-10-06 11:42:40 UTC
Product Version: NetBeans IDE Dev (Build 200810041417)
System: Windows XP version 5.1 
Locale: zh_CN

Create Secure Toke Service (STS) from Web Service category in zh_CN locale, click Finish, STS is not created and no 
exception was thrown.
This issue doesn't exist in en locale.
After change the message below back to english, this issue disappears.

enterprise/websvc-wsitconf/websvc-wsitconf/org/netbeans/modules/websvc/wsitconf/wizard/Bundle.properties 
LBL_ServiceEnding=Service

BTW, Even if STS could be created successfully with translated "Service", the translation will be added after the toke 
name, e.g. "NewSTSWizard服务[INewSTSWizard服务_Port1]", however, it's better to keep all characters in english.
So please remove this message from the properties file.
Comment 1 Ken Frank 2008-10-06 18:44:27 UTC
if it can't be removed from bundle, please add
#NOI18N comment 
to the line before this key/value.

BUT - if the underlying problem is that when name of service or path to it
has non ascii or multibyte in it, then that problem should be solved anyway,
since it is legal to have such characters, at least in java kind of nb projects
and user might have such a situation.

also, I think same applies to other aspects of web services, that non ascii can be used
in names of files or paths, unless there is some limitation of a supported technology.


in that case, the solution is different than just adding the #NOI18N comment, but that
comment should be done anyway, but this issue should not be closed until
underlying problem is solved.

ken.frank@sun.cm
Comment 2 Martin Grebac 2008-10-07 17:02:37 UTC
Would you please attach the exception that is thrown altogether with the zipped project file (after STS created) and
your log file? Thanks in advance.
Comment 3 Ken Frank 2008-10-07 17:26:26 UTC
Created attachment 71306 [details]
zip of project
Comment 4 Ken Frank 2008-10-07 17:32:25 UTC
on solaris, in ja locale, I don't see exception nor anything in the log file,
but will attach it. attached already is the simple web project where it was attempted
to create secure token service; there is not multibyte in path or project name

ken.frank@sun.com
Comment 5 Ken Frank 2008-10-07 17:33:06 UTC
Created attachment 71308 [details]
log file
Comment 6 Ken Frank 2008-10-07 17:46:32 UTC
can at least the #NOI18N comment be added now ?

I changed it to all english and then the service was created.

but agree that if its not meant to be translated, then it could be removed completely
from the prop file unless its needed there for other reasons.

(then the other part could be fixed separately if user would use non ascii in name of path or 
token name)

ken.frank@sun.com
Comment 7 Martin Grebac 2008-10-09 10:35:08 UTC
The I18N comment has been added.
Comment 8 Quality Engineering 2008-10-09 18:05:21 UTC
Integrated into 'main-golden', will be available in build *200810091401* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)
Changeset: http://hg.netbeans.org/main/rev/28c117b35163
User: mgrebac@netbeans.org
Log: Preliminary fix for #149211 - Do not internationalize this string.
Comment 9 Martin Grebac 2009-10-21 15:56:46 UTC
Seems like this one has been fixed.