]
Josef Kopriva updated JBIDE-26867:
----------------------------------
Fix Version/s: 4.13.0.Final
Cannot login on openshift4 cluster
----------------------------------
Key: JBIDE-26867
URL:
https://issues.jboss.org/browse/JBIDE-26867
Project: Tools (JBoss Tools)
Issue Type: Bug
Components: openshift
Affects Versions: 4.13.0.Final
Environment:
https://console-openshift-console.apps.openshift4-crs.crs.codereadyqe.com/
(created with openshift installer on openstack)
Reporter: Josef Kopriva
Priority: Critical
Fix For: 4.13.0.Final
I have used credentials ldap, kubeadmin, it works with oc, but not in tooling:
{code:java}
eclipse.buildId=12.13.0.AM1-v20190919-0120-B5007
java.version=11.0.2
java.vendor=Oracle Corporation
BootLoader constants: OS=macosx, ARCH=x86_64, WS=cocoa, NL=en_GB
Framework arguments: -product com.jboss.devstudio.core.product -keyring
/Users/jkopriva/.eclipse_keyring
Command-line arguments: -os macosx -ws cocoa -arch x86_64 -product
com.jboss.devstudio.core.product -keyring /Users/jkopriva/.eclipse_keyring
org.jboss.tools.openshift.ui
Error
Wed Sep 25 10:57:17 CEST 2019
forbidden: User "system:anonymous" cannot get path "/apis" forbidden:
User "system:anonymous" cannot get path "/apis"
com.openshift.restclient.authorization.ResourceForbiddenException: forbidden: User
"system:anonymous" cannot get path "/apis" forbidden: User
"system:anonymous" cannot get path "/apis"
at
com.openshift.internal.restclient.okhttp.ResponseCodeInterceptor.createOpenShiftException(ResponseCodeInterceptor.java:111)
at
com.openshift.internal.restclient.okhttp.ResponseCodeInterceptor.intercept(ResponseCodeInterceptor.java:66)
at okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.kt:112)
at okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.kt:87)
at okhttp3.RealCall.getResponseWithInterceptorChain(RealCall.kt:184)
at okhttp3.RealCall.execute(RealCall.kt:66)
at com.openshift.internal.restclient.ApiTypeMapper.request(ApiTypeMapper.java:265)
at com.openshift.internal.restclient.ApiTypeMapper.readEndpoint(ApiTypeMapper.java:257)
at com.openshift.internal.restclient.ApiTypeMapper.getApiGroups(ApiTypeMapper.java:220)
at com.openshift.internal.restclient.ApiTypeMapper.init(ApiTypeMapper.java:155)
at com.openshift.internal.restclient.ApiTypeMapper.isSupported(ApiTypeMapper.java:84)
at
com.openshift.internal.restclient.URLBuilder.buildWithNamespaceInPath(URLBuilder.java:148)
at com.openshift.internal.restclient.URLBuilder.build(URLBuilder.java:135)
at com.openshift.internal.restclient.DefaultClient.execute(DefaultClient.java:301)
at com.openshift.internal.restclient.DefaultClient.execute(DefaultClient.java:275)
at com.openshift.internal.restclient.DefaultClient.execute(DefaultClient.java:243)
at com.openshift.internal.restclient.DefaultClient.execute(DefaultClient.java:226)
at com.openshift.internal.restclient.DefaultClient.get(DefaultClient.java:423)
at
com.openshift.internal.restclient.authorization.AuthorizationContext.isAuthorized(AuthorizationContext.java:63)
at org.jboss.tools.openshift.core.connection.Connection.authorize(Connection.java:237)
at org.jboss.tools.openshift.core.connection.Connection.connect(Connection.java:226)
at
org.jboss.tools.openshift.internal.common.ui.connection.ConnectionWizardPageModel.connect(ConnectionWizardPageModel.java:300)
at
org.jboss.tools.openshift.internal.common.ui.connection.ConnectionWizardPage$ConnectJob.doRun(ConnectionWizardPage.java:434)
at
org.jboss.tools.openshift.internal.common.core.job.AbstractDelegatingMonitorJob.run(AbstractDelegatingMonitorJob.java:37)
at org.eclipse.core.internal.jobs.Worker.run(Worker.java:63)
{code}