[jbosstools-issues] [JBoss JIRA] (JBIDE-26848) CRC server adapter: existing connection is not updated

André Dietisheim (Jira) issues at jboss.org
Thu Oct 17 04:36:00 EDT 2019


    [ https://issues.jboss.org/browse/JBIDE-26848?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13800816#comment-13800816 ] 

André Dietisheim commented on JBIDE-26848:
------------------------------------------

The following code in jbosstools-openshift makes no sense, it tries to update a connection by itself: https://github.com/jbosstools/jbosstools-openshift/blob/master/plugins/org.jboss.tools.openshift.cdk.server/src/org/jboss/tools/openshift/internal/crc/server/core/listeners/ConfigureCRCFrameworksListener.java#L99
{code:title=ConfigureCRCFrameworksListener}
} else {
	con.setUsername(user);
	con.setPassword(pass);
	ConnectionsRegistrySingleton.getInstance().update(con, con);
}
{code}


> CRC server adapter: existing connection is not updated
> ------------------------------------------------------
>
>                 Key: JBIDE-26848
>                 URL: https://issues.jboss.org/browse/JBIDE-26848
>             Project: Tools (JBoss Tools)
>          Issue Type: Bug
>          Components: openshift
>    Affects Versions: 4.13.0.AM1
>            Reporter: André Dietisheim
>            Assignee: André Dietisheim
>            Priority: Major
>              Labels: crc_server_adapter
>             Fix For: 4.13.0.Final
>
>
> Steps:
> # ASSERT: Have CRC server adapter
> # ASSERT: in openshift explorer: have connection
> # EXEC: in cmd-line: kill ~/.crc
> # EXEC: start server adapter
> # ASSERT: it complains that crc is not set up, asks if it should set it up
> # EXEC: ok to set it up
> # ASSERT: server is [started]
> # EXEC: refresh connection in openshift explorer
> Result:
> Connection wont work, it's an outdated connection to a crc cluster that doesnt exist any more. Server adapter didnt update the connection.



--
This message was sent by Atlassian Jira
(v7.13.8#713008)



More information about the jbosstools-issues mailing list