Bug 527432 - Exception on creating CFT server with non-ASCII organization or space
Summary: Exception on creating CFT server with non-ASCII organization or space
Status: NEW
Alias: None
Product: CFT
Classification: ECD
Component: General (show other bugs)
Version: 1.0.3   Edit
Hardware: All All
: P3 major
Target Milestone: 1.1.2   Edit
Assignee: Jonathan West CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2017-11-17 16:37 EST by Jonathan West CLA
Modified: 2017-11-17 16:37 EST (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Jonathan West CLA 2017-11-17 16:37:23 EST
If you attempt to create a Cloud Foundry server using an organization or space that contains non-ASCII values, the following exception will occur:

java.lang.IllegalArgumentException: Node path "jgwest@ibmcom_jgwest@ibmcom_日本語@https:\2f\2fapi.au-syd.bluemix.net" is not valid.
at org.eclipse.equinox.internal.security.storage.SecurePreferences.validatePath(SecurePreferences.java:363)
at org.eclipse.equinox.internal.security.storage.SecurePreferences.node(SecurePreferences.java:96)
at org.eclipse.equinox.internal.security.storage.SecurePreferencesWrapper.node(SecurePreferencesWrapper.java:83)
at org.eclipse.cft.server.core.internal.ServerCredentialsStore.getSecurePreferences(ServerCredentialsStore.java:142)
at org.eclipse.cft.server.core.internal.ServerCredentialsStore.readProperty(ServerCredentialsStore.java:161)
at org.eclipse.cft.server.core.internal.ServerCredentialsStore.initialize(ServerCredentialsStore.java:155)
at org.eclipse.cft.server.core.internal.ServerCredentialsStore.setToken(ServerCredentialsStore.java:124)
at org.eclipse.cft.server.core.internal.CloudFoundryServer.setAndSaveToken(CloudFoundryServer.java:1356)
at org.eclipse.cft.server.core.internal.client.ClientRequestFactory$15.doRun(ClientRequestFactory.java:383)
at org.eclipse.cft.server.core.internal.client.ClientRequestFactory$15.doRun(ClientRequestFactory.java:1)
at org.eclipse.cft.server.core.internal.client.BaseClientRequest.runAndWait(BaseClientRequest.java:141)
at org.eclipse.cft.server.core.internal.client.ClientRequest.runAndWait(ClientRequest.java:71)
at org.eclipse.cft.server.core.internal.client.LocalServerRequest.runAndWait(LocalServerRequest.java:106)
at org.eclipse.cft.server.core.internal.client.BaseClientRequest.run(BaseClientRequest.java:84)
at org.eclipse.cft.server.core.internal.client.CloudFoundryServerBehaviour.connect(CloudFoundryServerBehaviour.java:225)
at org.eclipse.cft.server.ui.internal.wizards.CloudFoundryServerWizardFragment$ConnectJob.run(CloudFoundryServerWizardFragment.java:246)
at org.eclipse.core.internal.jobs.Worker.run(Worker.java:56)

This appears to be due to bug 231206, which indicates that non-ASCII ISecurePreferences node names are not supported.