[jbosstools-issues] [JBoss JIRA] (JBIDE-20294) Cannot create OpenShift v3 connection with basic authentization

Andre Dietisheim (JIRA) issues at jboss.org
Fri Jul 17 08:39:06 EDT 2015


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

Andre Dietisheim commented on JBIDE-20294:
------------------------------------------

I cannot reproduce this when using a local openshift docker container:

{code}
docker.io/openshift/origin                         latest              a37e572f3ab4        5 weeks ago         365.9 MB
docker.io/openshift/origin-deployer                v0.6                31aa49efefe1        5 weeks ago         361.1 MB
docker.io/openshift/origin-pod                     v0.6                ca063a04bede        5 weeks ago         1.105 MB
{code}

> Cannot create OpenShift v3 connection with basic authentization
> ---------------------------------------------------------------
>
>                 Key: JBIDE-20294
>                 URL: https://issues.jboss.org/browse/JBIDE-20294
>             Project: Tools (JBoss Tools)
>          Issue Type: Bug
>          Components: openshift
>    Affects Versions: 4.3.0.Beta2
>            Reporter: Marián Labuda
>            Assignee: Andre Dietisheim
>            Priority: Blocker
>              Labels: connection
>
> Affected is nightly build, specifically OpenShift plugin with ID 20150715-2039-B879.
> When I am trying to create a new OpenShift v3 connection with Basic authentization protocol (username and password) I get following error:
> {code}
> User "demo" cannot "get" on "/oapi"
>     com.openshift.restclient.authorization.ResourceForbiddenException: User "demo" cannot "get" on "/oapi"
>         at com.openshift.internal.restclient.DefaultClient.createOpenShiftException(DefaultClient.java:418)
>         at com.openshift.internal.restclient.DefaultClient.get(DefaultClient.java:264)
>         at com.openshift.internal.restclient.DefaultClient.getCurrentUser(DefaultClient.java:434)
>         at com.openshift.internal.restclient.authorization.OpenShiftAuthorizationRedirectStrategy.isRedirected(OpenShiftAuthorizationRedirectStrategy.java:63)
>         at org.apache.http.impl.execchain.RedirectExec.execute(RedirectExec.java:111)
>         at org.apache.http.impl.client.InternalHttpClient.doExecute(InternalHttpClient.java:184)
>         at org.apache.http.impl.client.CloseableHttpClient.execute(CloseableHttpClient.java:82)
>         at org.apache.http.impl.client.CloseableHttpClient.execute(CloseableHttpClient.java:106)
>         at com.openshift.internal.restclient.authorization.AuthorizationClient.getContextUsingCredentials(AuthorizationClient.java:134)
>         at com.openshift.internal.restclient.authorization.AuthorizationClient.getContext(AuthorizationClient.java:99)
>         at com.openshift.internal.restclient.DefaultClient.getContext(DefaultClient.java:439)
>         at org.jboss.tools.openshift.core.connection.Connection.authorize(Connection.java:209)
>         at org.jboss.tools.openshift.core.connection.Connection.connect(Connection.java:199)
>         at org.jboss.tools.openshift.internal.common.ui.connection.ConnectionWizardPageModel.connect(ConnectionWizardPageModel.java:263)
>         at org.jboss.tools.openshift.internal.common.ui.connection.ConnectionWizardPage$ConnectJob.doRun(ConnectionWizardPage.java:335)
>         at org.jboss.tools.openshift.internal.common.core.job.AbstractDelegatingMonitorJob.run(AbstractDelegatingMonitorJob.java:36)
>         at org.eclipse.core.internal.jobs.Worker.run(Worker.java:55)
> {code}



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)



More information about the jbosstools-issues mailing list