GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

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

New issue
Copy link
New issue
Copy link
Open
Open
[TC Pivotal] Server name is empty when user configured with custom server name#10
Copy link

Description

@lak-proddev
lak-proddev
opened on Feb 22, 2019
Issue body actions

STEPS:

  1. Server > New > Pivotal tc server 4.0
  2. Provide a custom server name > "TCPivotal4" > Next.
  3. Select Create new instance radio > Next.
  4. Select base Template and provide a name > Next
  5. 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

  1. lak-proddev commented on Feb 22, 2019

    @lak-proddev
    lak-proddev
    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

  2. BoykoAlex commented on Feb 22, 2019

    @BoykoAlex
    BoykoAlex
    on Feb 22, 2019
    Contributor
    More actions

    Hmm... think I've tried the steps above and I believe the server name was the one I typed in:
    screen shot 2019-02-22 at 11 46 22

    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?

  3. BoykoAlex commented on Feb 22, 2019

    @BoykoAlex
    BoykoAlex
    on Feb 22, 2019
    Contributor
    More actions

    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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions

      You are visitor 01402775 — GeezerVison does not store the pages you look up.
      Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.