GeezerVison is showing github.com — [TC Pivotal] Server name is empty when user configured with custom server name · Issue #10 · spring-projects/eclipse-integration-tcserver
[TC Pivotal] Server name is empty when user configured with custom server name #10
Description
STEPS:
- Server > New > Pivotal tc server 4.0
- Provide a custom server name > "TCPivotal4" > Next.
- Select Create new instance radio > Next.
- Select base Template and provide a name > Next
- Finish
Configure a new Pivotal TC server with version 4.0.1 and provide a custom name in Server Name field. It results in server configuration created with blank server name. Reproducible with Pivotal TC server version 3.2.13.
For new instance, we are not setting any new name if not default name. which was already empty.
See these code points
com.vmware.vfabric.ide.eclipse.tcserver.internal.ui.TcServer21InstanceCreationFragment.exit()
com.vmware.vfabric.ide.eclipse.tcserver.internal.ui.TcServer21InstanceCreationFragment.initialize()
Activity
lak-proddev commented on Feb 22, 2019
ContributorAuthor
More actions
@BoykoAlex Do we really need to set the server name here ?
if (wc != null) {
wc.setName(nameText.getText());
}
// /code-open TcServer21InstanceCreationFragment.java 480-483
BoykoAlex commented on Feb 22, 2019
Hmm... think I've tried the steps above and I believe the server name was the one I typed in:

Regarding the code snippet... Not sure... but why not? I feel that it might be the problem with isDefaultServerName flag set above on line 461:
Maybe that line 461 should go after the code snippet you pasted because exit() lines 453-455 looks at the isDefaultServerName` and sets default name and may overwrite the name set previously.
Would like to create a PR that makes things work for you?
BoykoAlex commented on Feb 22, 2019
NVM... looks like creating new instance is the important step from the instructions... Feels like it creates a new working copy. I reproduced the issue when created a new instance rather than used the existing one.
Maybe you're right and that if block has nothing to do there... there is a modify listener there already that sets the name based on changes... Perhaps it's the tests that require it...
Reacted by Lakshminarayana Nekkanti
Metadata
Metadata
Development
No branches or pull requestsIssue actions