[jbosstools-issues] [JBoss JIRA] (JBIDE-21871) Weird message in error log when connecting to cdk openshift - Unauthorized

Andre Dietisheim (JIRA) issues at jboss.org
Tue Mar 15 13:20:00 EDT 2016


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

Andre Dietisheim commented on JBIDE-21871:
------------------------------------------

Authentication in OpenShift 3 works via token. These token can be retrieved via oauth (like in console.engint.openshift) or via username/password. The same error message is shown whether there's no token or an invalid/ourdated one upon authenticating. That's misleading and can be improved.

When creating the connection via wizard you'd clearly know if the authentication worked or not, since the wizard would not allow you to finish it if the authentication didnt work. I suspect that you didnt see the wizard because you used a pre-existing workspace with stored username/password. This makes it feel like an edge case with pre-existing workspace and username/pw-based authentication.

With a default project being created for the cdk via https://github.com/projectatomic/adb-utils/pull/78#issuecomment-194923080 I see this being good enough as for 4.3.1.CR1. In an oauth based authentication (like in engint) there's browser interaction which clearly tells the user if the authentication worked.

> Weird message in error log when connecting to cdk openshift - Unauthorized 
> ---------------------------------------------------------------------------
>
>                 Key: JBIDE-21871
>                 URL: https://issues.jboss.org/browse/JBIDE-21871
>             Project: Tools (JBoss Tools)
>          Issue Type: Bug
>          Components: openshift
>    Affects Versions: 4.3.1.CR1
>            Reporter: Martin Malina
>             Fix For: 4.4.0.Alpha1
>
>
> Everytime I start cdk and then want to connect to the openshift instance in OpenShift Explorer view, I get this info message in Error Log:
> Unauthorized.  Trying to reauthenticate
> All the time I was thinking that the connection is actually not working, but then I tried to create a project and it worked.
> I can see a few issues here:
> 1. Why is this info message displayed even though the connection is actually established? It's confusing.
> 2. There is no clear indication if a connection is established or not - could we do something about it? If there is an existing project, then you can see it. But currently there is none for the openshift-dev user by default. What makes is worse is the fact that once you start cdk, there is a little arrow next to the openshift connection as if you could expand it. When you do that, it will expand 1 line with "Loading.." and then it will suddenly disappear, so it really looks like something is wrong.



--
This message was sent by Atlassian JIRA
(v6.4.11#64026)


More information about the jbosstools-issues mailing list