Uploaded image for project: 'Tools (JBoss Tools)'
  1. Tools (JBoss Tools)
  2. JBIDE-22591

Saving new username/pw during prompt for pw while starting cdk fails

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Major Major
    • 4.4.1.AM1
    • 4.4.0.Final
    • cdk
    • None
    • devex #116 June 2016
    • 3
    • Hide

      1) Create a cdk server
      1a) Create a dummy user for the cdk server that is marked 'always prompt'
      2) right-click the server, select properties, and select "Switch location"
      3) Verify: new project "Servers" appears
      4) Verify: a file representing the server is in the project
      5) Start the CDK
      6) Verify: you are prompted for a pw
      7) Type in a new username (your official rht access user) and pw
      8) Check 'save credentials'
      9) Press ok, note failure in console

      Show
      1) Create a cdk server 1a) Create a dummy user for the cdk server that is marked 'always prompt' 2) right-click the server, select properties, and select "Switch location" 3) Verify: new project "Servers" appears 4) Verify: a file representing the server is in the project 5) Start the CDK 6) Verify: you are prompted for a pw 7) Type in a new username (your official rht access user) and pw 8) Check 'save credentials' 9) Press ok, note failure in console

      When the server is in a project rather than in memory, persisting changes to the server (ie changing its username) will fail because the scheduling rule for starting the server does not include the ability to modify projects. This scenario will need to be identified (is server in memory or project) and a workspace job will need to be scheduled to properly persist the changes.

      java.lang.IllegalArgumentException: Attempted to beginRule: L/Servers/Container Development Environment.server, does not match outer scope rule: Container Development Environment
      at org.eclipse.core.runtime.Assert.isLegal(Assert.java:63)
      at org.eclipse.core.internal.jobs.ThreadJob.illegalPush(ThreadJob.java:134)
      at org.eclipse.core.internal.jobs.ThreadJob.push(ThreadJob.java:333)
      at org.eclipse.core.internal.jobs.ImplicitJobs.begin(ImplicitJobs.java:85)
      at org.eclipse.core.internal.jobs.JobManager.beginRule(JobManager.java:307)
      at org.eclipse.core.internal.resources.WorkManager.checkIn(WorkManager.java:121)
      at org.eclipse.core.internal.resources.Workspace.prepareOperation(Workspace.java:2188)
      at org.eclipse.core.internal.resources.File.setContents(File.java:334)
      at org.eclipse.core.internal.resources.File.setContents(File.java:434)
      at org.eclipse.wst.server.core.internal.Base.saveToFile(Base.java:251)
      at org.eclipse.wst.server.core.internal.Server.saveToFile(Server.java:471)
      at org.eclipse.wst.server.core.internal.Base.doSave(Base.java:264)
      at org.eclipse.wst.server.core.internal.Server.doSave(Server.java:466)
      at org.eclipse.wst.server.core.internal.ServerWorkingCopy.save(ServerWorkingCopy.java:434)
      at org.jboss.tools.openshift.cdk.server.core.internal.adapter.CDKServer.getPassword(CDKServer.java:124)
      at org.jboss.tools.openshift.cdk.server.core.internal.adapter.controllers.CDKLaunchController.launch(CDKLaunchController.java:158)
      at org.jboss.ide.eclipse.as.wtp.core.server.launch.ControllableServerLaunchConfiguration.launch(ControllableServerLaunchConfiguration.java:52)
      at org.eclipse.debug.internal.core.LaunchConfiguration.launch(LaunchConfiguration.java:885)
      at org.eclipse.debug.internal.core.LaunchConfiguration.launch(LaunchConfiguration.java:739)
      at org.eclipse.debug.internal.core.LaunchConfiguration.launch(LaunchConfiguration.java:731)
      at org.eclipse.wst.server.core.internal.Server.startImpl2(Server.java:3556)
      at org.eclipse.wst.server.core.internal.Server.startImpl(Server.java:3492)
      at org.eclipse.wst.server.core.internal.Server$StartJob.run(Server.java:367)
      at org.eclipse.core.internal.jobs.Worker.run(Worker.java:55)

            rob.stryker Rob Stryker (Inactive)
            rob.stryker Rob Stryker (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: