[JBoss JIRA] (ERT-761) [GTK] Extra space to the right of ToolItems without text [EBZ#543895]
by Friendly Jira Robot (Jira)
Friendly Jira Robot created ERT-761:
---------------------------------------
Summary: [GTK] Extra space to the right of ToolItems without text [EBZ#543895]
Key: ERT-761
URL: https://issues.jboss.org/browse/ERT-761
Project: Eclipse Release Train
Issue Type: Task
Components: Platform
Reporter: Friendly Jira Robot
Created attachment 277336
screenshot showing the issue
I'm not sure whether this is a bug or expected behavior.
Take a look at the snippet below. It has two ToolBars, both created with the style SWT.FLAT | SWT.RIGHT, and each toolbar has three PUSH items.
In the first toolbar, all items have an image, and none have any text. In all items the image is centered in the item.
In the second toolbar, all items have an image, and only one of them has text. The other items in this toolbar (which don't have any text) are wider that those on the first toolbar and the image is aligned left (looks like there's some extra space right after the image).
I would expect all items without text to look equal, and with the image centered, regardless of the presence of items with text in the same toolbar.
import org.eclipse.swt.SWT;
import org.eclipse.swt.graphics.Image;
import org.eclipse.swt.layout.GridLayout;
import org.eclipse.swt.widgets.Display;
import org.eclipse.swt.widgets.Label;
import org.eclipse.swt.widgets.Shell;
import org.eclipse.swt.widgets.ToolBar;
import org.eclipse.swt.widgets.ToolItem;
public class ToolItemsExtraSpace {
public static void main(String[] args) {
Display d = new Display();
Shell s = new Shell(d);
s.setLayout(new GridLayout());
Image img = new Image(d, "/home/andreu/Downloads/save.png");
ToolBar bar_1 = new ToolBar(s, SWT.FLAT | SWT.RIGHT);
ToolItem ti_1_1 = new ToolItem(bar_1, SWT.PUSH);
ti_1_1.setImage(img);
ToolItem ti_1_2 = new ToolItem(bar_1, SWT.PUSH);
ti_1_2.setImage(img);
ToolItem ti_1_3 = new ToolItem(bar_1, SWT.PUSH);
ti_1_3.setImage(img);
new Label(s, SWT.SEPARATOR | SWT.HORIZONTAL);
ToolBar bar_2 = new ToolBar(s, SWT.FLAT | SWT.RIGHT);
ToolItem ti_2_1 = new ToolItem(bar_2, SWT.PUSH);
ti_2_1.setImage(img);
ToolItem ti_2_2 = new ToolItem(bar_2, SWT.PUSH);
ti_2_2.setImage(img);
ToolItem ti_2_3 = new ToolItem(bar_2, SWT.PUSH);
ti_2_3.setImage(img);
ti_2_3.setText("foo");
s.open();
while (!s.isDisposed()) {
if (!d.readAndDispatch()) {
d.sleep();
}
}
d.dispose();
}
}
--
This message was sent by Atlassian Jira
(v7.13.8#713008)
6 years, 6 months
[JBoss JIRA] (JBDS-4783) Remediation page when installing central from zip
by Zbyněk Červinka (Jira)
[ https://issues.jboss.org/browse/JBDS-4783?page=com.atlassian.jira.plugin.... ]
Zbyněk Červinka closed JBDS-4783.
---------------------------------
Issue fixed, I am closing this jira. Tested in the 12.13.0.AM1 CodeReady Studio.
> Remediation page when installing central from zip
> -------------------------------------------------
>
> Key: JBDS-4783
> URL: https://issues.jboss.org/browse/JBDS-4783
> Project: Red Hat CodeReady Studio (devstudio)
> Issue Type: Bug
> Components: central, central-update
> Affects Versions: 12.13.0.AM1
> Reporter: Ondrej Dockal
> Assignee: Jeff MAURY
> Priority: Major
> Fix For: 12.13.0.AM1
>
>
> I got remediation page when installing central from zip [1] to codeready studio.
> {code}
> Cannot complete the install because one or more required items could not be found.
> Software being installed: Spring IDE Spring Data Support 3.9.9.201906180643-RELEASE (org.springframework.ide.eclipse.data.feature.feature.group 3.9.9.201906180643-RELEASE)
> Missing requirement: Spring IDE Beans Core 3.9.9.201906180643-RELEASE (org.springframework.ide.eclipse.beans.core 3.9.9.201906180643-RELEASE) requires 'osgi.bundle; org.springframework.ide.eclipse.xml.namespaces 3.9.9' but it could not be found
> Cannot satisfy dependency:
> From: Spring IDE Spring Data Support 3.9.9.201906180643-RELEASE (org.springframework.ide.eclipse.data.core 3.9.9.201906180643-RELEASE)
> To: osgi.bundle; org.springframework.ide.eclipse.beans.core 0.0.0
> Cannot satisfy dependency:
> From: Spring IDE Spring Data Support 3.9.9.201906180643-RELEASE (org.springframework.ide.eclipse.data.feature.feature.group 3.9.9.201906180643-RELEASE)
> To: org.eclipse.equinox.p2.iu; org.springframework.ide.eclipse.data.core [3.9.9.201906180643-RELEASE,3.9.9.201906180643-RELEASE]
> {code}
> [1]: https://devstudio.redhat.com/12/snapshots/builds/devstudio.product_master...
--
This message was sent by Atlassian Jira
(v7.13.8#713008)
6 years, 6 months
[JBoss JIRA] (JBIDE-26868) Connection wizard: errors when login to https://api.openshift4-crs.crs.codereadyqe.com
by André Dietisheim (Jira)
[ https://issues.jboss.org/browse/JBIDE-26868?page=com.atlassian.jira.plugi... ]
André Dietisheim commented on JBIDE-26868:
------------------------------------------
[~jeffmaury], [~jkopriva]: do you have the url to the OpenShift 4 cluster that the che team is using? We could use this to see if we have the same problem there.
> Connection wizard: errors when login to https://api.openshift4-crs.crs.codereadyqe.com
> --------------------------------------------------------------------------------------
>
> Key: JBIDE-26868
> URL: https://issues.jboss.org/browse/JBIDE-26868
> Project: Tools (JBoss Tools)
> Issue Type: Bug
> Components: openshift
> Affects Versions: 4.13.0.AM1
> Environment: https://console-openshift-console.apps.openshift4-crs.crs.codereadyqe.com/
> (created with openshift installer on openstack)
> Reporter: André Dietisheim
> Assignee: André Dietisheim
> Priority: Critical
> Labels: connection_wizard
> Fix For: 4.13.0.Final
>
>
> Steps:
> # EXEC: (VPN required) go to https://console-openshift-console.apps.openshift4-crs.crs.codereadyqe.com/ and login using: htpasswd > developer/developer
> # EXEC: once logged in, pick "Copy Login Command" from the menu in the top right corner - you'll have to log in again and hit "Display Token". You'll get a command displayed that you'll have to copy:
> {code}
> oc login --token=XXXXXX --server=https://api.openshift4-crs.crs.codereadyqe.com:6443
> {code}
> # EXEC: open connection wizard, hit "Paste Login Command" button & pick "Finish"
> Result:
> {code}
> 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}
--
This message was sent by Atlassian Jira
(v7.13.8#713008)
6 years, 6 months
[JBoss JIRA] (JBIDE-26868) Connection wizard: errors when login to https://api.openshift4-crs.crs.codereadyqe.com
by André Dietisheim (Jira)
[ https://issues.jboss.org/browse/JBIDE-26868?page=com.atlassian.jira.plugi... ]
André Dietisheim edited comment on JBIDE-26868 at 9/26/19 8:14 AM:
-------------------------------------------------------------------
This obviously is a matter of configuration, in this cluster "/apis" is configured not to be available to non-authorized users. Our client lib needs this to discover resource endpoints.
That this isn't the default seems indicated to me given that CRC does not behave in this way. Ideally we'd be able to test this against a different OpenShift 4 cluster.
was (Author: adietish):
This obviously is a matter of configuration, in this cluster "/apis" is configured not to be available to non-authorized users. Our client lib needs this to discover resources.
That this isn't the default seems indicated to me given that CRC does not behave in this way. Ideally we'd be able to test this against a different OpenShift 4 cluster.
> Connection wizard: errors when login to https://api.openshift4-crs.crs.codereadyqe.com
> --------------------------------------------------------------------------------------
>
> Key: JBIDE-26868
> URL: https://issues.jboss.org/browse/JBIDE-26868
> Project: Tools (JBoss Tools)
> Issue Type: Bug
> Components: openshift
> Affects Versions: 4.13.0.AM1
> Environment: https://console-openshift-console.apps.openshift4-crs.crs.codereadyqe.com/
> (created with openshift installer on openstack)
> Reporter: André Dietisheim
> Assignee: André Dietisheim
> Priority: Critical
> Labels: connection_wizard
> Fix For: 4.13.0.Final
>
>
> Steps:
> # EXEC: (VPN required) go to https://console-openshift-console.apps.openshift4-crs.crs.codereadyqe.com/ and login using: htpasswd > developer/developer
> # EXEC: once logged in, pick "Copy Login Command" from the menu in the top right corner - you'll have to log in again and hit "Display Token". You'll get a command displayed that you'll have to copy:
> {code}
> oc login --token=XXXXXX --server=https://api.openshift4-crs.crs.codereadyqe.com:6443
> {code}
> # EXEC: open connection wizard, hit "Paste Login Command" button & pick "Finish"
> Result:
> {code}
> 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}
--
This message was sent by Atlassian Jira
(v7.13.8#713008)
6 years, 6 months
[JBoss JIRA] (JBIDE-26868) Connection wizard: errors when login to https://api.openshift4-crs.crs.codereadyqe.com
by André Dietisheim (Jira)
[ https://issues.jboss.org/browse/JBIDE-26868?page=com.atlassian.jira.plugi... ]
André Dietisheim updated JBIDE-26868:
-------------------------------------
Environment:
https://console-openshift-console.apps.openshift4-crs.crs.codereadyqe.com/
(created with openshift installer on openstack)
> Connection wizard: errors when login to https://api.openshift4-crs.crs.codereadyqe.com
> --------------------------------------------------------------------------------------
>
> Key: JBIDE-26868
> URL: https://issues.jboss.org/browse/JBIDE-26868
> Project: Tools (JBoss Tools)
> Issue Type: Bug
> Components: openshift
> Affects Versions: 4.13.0.AM1
> Environment: https://console-openshift-console.apps.openshift4-crs.crs.codereadyqe.com/
> (created with openshift installer on openstack)
> Reporter: André Dietisheim
> Assignee: André Dietisheim
> Priority: Critical
> Labels: connection_wizard
> Fix For: 4.13.0.Final
>
>
> Steps:
> # EXEC: (VPN required) go to https://console-openshift-console.apps.openshift4-crs.crs.codereadyqe.com/ and login using: htpasswd > developer/developer
> # EXEC: once logged in, pick "Copy Login Command" from the menu in the top right corner - you'll have to log in again and hit "Display Token". You'll get a command displayed that you'll have to copy:
> {code}
> oc login --token=XXXXXX --server=https://api.openshift4-crs.crs.codereadyqe.com:6443
> {code}
> # EXEC: open connection wizard, hit "Paste Login Command" button & pick "Finish"
> Result:
> {code}
> 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}
--
This message was sent by Atlassian Jira
(v7.13.8#713008)
6 years, 6 months
[JBoss JIRA] (JBIDE-26868) Connection wizard: errors when login to https://api.openshift4-crs.crs.codereadyqe.com
by André Dietisheim (Jira)
[ https://issues.jboss.org/browse/JBIDE-26868?page=com.atlassian.jira.plugi... ]
André Dietisheim commented on JBIDE-26868:
------------------------------------------
This obviously is a matter of configuration, in this cluster "/apis" is configured not to be available to non-authorized users. Our client lib needs this to discover resources.
That this isn't the default seems indicated to me given that CRC does not behave in this way. Ideally we'd be able to test this against a different OpenShift 4 cluster.
> Connection wizard: errors when login to https://api.openshift4-crs.crs.codereadyqe.com
> --------------------------------------------------------------------------------------
>
> Key: JBIDE-26868
> URL: https://issues.jboss.org/browse/JBIDE-26868
> Project: Tools (JBoss Tools)
> Issue Type: Bug
> Components: openshift
> Affects Versions: 4.13.0.AM1
> Reporter: André Dietisheim
> Assignee: André Dietisheim
> Priority: Critical
> Labels: connection_wizard
> Fix For: 4.13.0.Final
>
>
> Steps:
> # EXEC: (VPN required) go to https://console-openshift-console.apps.openshift4-crs.crs.codereadyqe.com/ and login using: htpasswd > developer/developer
> # EXEC: once logged in, pick "Copy Login Command" from the menu in the top right corner - you'll have to log in again and hit "Display Token". You'll get a command displayed that you'll have to copy:
> {code}
> oc login --token=XXXXXX --server=https://api.openshift4-crs.crs.codereadyqe.com:6443
> {code}
> # EXEC: open connection wizard, hit "Paste Login Command" button & pick "Finish"
> Result:
> {code}
> 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}
--
This message was sent by Atlassian Jira
(v7.13.8#713008)
6 years, 6 months
[JBoss JIRA] (JBIDE-26868) Connection wizard: errors when login to https://api.openshift4-crs.crs.codereadyqe.com
by André Dietisheim (Jira)
[ https://issues.jboss.org/browse/JBIDE-26868?page=com.atlassian.jira.plugi... ]
André Dietisheim commented on JBIDE-26868:
------------------------------------------
a simple curl to https://api.openshift4-crs.crs.codereadyqe.com:6443/apis shows that the request is denied with 403:
{code}
{
"kind": "Status",
"apiVersion": "v1",
"metadata": {
},
"status": "Failure",
"message": "forbidden: User \"system:anonymous\" cannot get path \"/apis\"",
"reason": "Forbidden",
"details": {
},
"code": 403
* Connection #0 to host api.openshift4-crs.crs.codereadyqe.com left intact
}%
{code}
> Connection wizard: errors when login to https://api.openshift4-crs.crs.codereadyqe.com
> --------------------------------------------------------------------------------------
>
> Key: JBIDE-26868
> URL: https://issues.jboss.org/browse/JBIDE-26868
> Project: Tools (JBoss Tools)
> Issue Type: Bug
> Components: openshift
> Affects Versions: 4.13.0.AM1
> Reporter: André Dietisheim
> Assignee: André Dietisheim
> Priority: Critical
> Labels: connection_wizard
> Fix For: 4.13.0.Final
>
>
> Steps:
> # EXEC: (VPN required) go to https://console-openshift-console.apps.openshift4-crs.crs.codereadyqe.com/ and login using: htpasswd > developer/developer
> # EXEC: once logged in, pick "Copy Login Command" from the menu in the top right corner - you'll have to log in again and hit "Display Token". You'll get a command displayed that you'll have to copy:
> {code}
> oc login --token=XXXXXX --server=https://api.openshift4-crs.crs.codereadyqe.com:6443
> {code}
> # EXEC: open connection wizard, hit "Paste Login Command" button & pick "Finish"
> Result:
> {code}
> 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}
--
This message was sent by Atlassian Jira
(v7.13.8#713008)
6 years, 6 months
[JBoss JIRA] (JBIDE-26868) Connection wizard: errors when login to https://api.openshift4-crs.crs.codereadyqe.com
by André Dietisheim (Jira)
[ https://issues.jboss.org/browse/JBIDE-26868?page=com.atlassian.jira.plugi... ]
André Dietisheim edited comment on JBIDE-26868 at 9/26/19 7:43 AM:
-------------------------------------------------------------------
the very same connection works in oc command line:
{code}
$ oc login --token=XXXXX --server=https://api.openshift4-crs.crs.codereadyqe.com:6443
The server uses a certificate signed by an unknown authority.
You can bypass the certificate check, but any data you send to the server could be intercepted by others.
Use insecure connections? (y/n): y
Logged into "https://api.openshift4-crs.crs.codereadyqe.com:6443" as "developer" using the token provided.
You have one project on this server: "sdfasdf"
Using project "sdfasdf".
{code}
Looking into the details of it's request one can see that they dont request /api and thus succeed.
was (Author: adietish):
the very same connection works in oc command line:
{code}
$ oc login --token=XXXXX --server=https://api.openshift4-crs.crs.codereadyqe.com:6443
The server uses a certificate signed by an unknown authority.
You can bypass the certificate check, but any data you send to the server could be intercepted by others.
Use insecure connections? (y/n): y
Logged into "https://api.openshift4-crs.crs.codereadyqe.com:6443" as "developer" using the token provided.
You have one project on this server: "sdfasdf"
Using project "sdfasdf".
{code}
> Connection wizard: errors when login to https://api.openshift4-crs.crs.codereadyqe.com
> --------------------------------------------------------------------------------------
>
> Key: JBIDE-26868
> URL: https://issues.jboss.org/browse/JBIDE-26868
> Project: Tools (JBoss Tools)
> Issue Type: Bug
> Components: openshift
> Affects Versions: 4.13.0.AM1
> Reporter: André Dietisheim
> Assignee: André Dietisheim
> Priority: Critical
> Labels: connection_wizard
> Fix For: 4.13.0.Final
>
>
> Steps:
> # EXEC: (VPN required) go to https://console-openshift-console.apps.openshift4-crs.crs.codereadyqe.com/ and login using: htpasswd > developer/developer
> # EXEC: once logged in, pick "Copy Login Command" from the menu in the top right corner - you'll have to log in again and hit "Display Token". You'll get a command displayed that you'll have to copy:
> {code}
> oc login --token=XXXXXX --server=https://api.openshift4-crs.crs.codereadyqe.com:6443
> {code}
> # EXEC: open connection wizard, hit "Paste Login Command" button & pick "Finish"
> Result:
> {code}
> 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}
--
This message was sent by Atlassian Jira
(v7.13.8#713008)
6 years, 6 months
[JBoss JIRA] (JBIDE-26796) org.jboss.tools.maven.core is not compiling in Eclipse, complains about missing ProjectUtilities
by Zbyněk Červinka (Jira)
[ https://issues.jboss.org/browse/JBIDE-26796?page=com.atlassian.jira.plugi... ]
Zbyněk Červinka closed JBIDE-26796.
-----------------------------------
Issue has been fixed, I am closing this jira. Tested in the following Red Hat CodeReady Studio:
Version: 12.13.0.AM1
Build id: AM1-v20190923-0612-B5030
Build date: 20190923-0612
> org.jboss.tools.maven.core is not compiling in Eclipse, complains about missing ProjectUtilities
> ------------------------------------------------------------------------------------------------
>
> Key: JBIDE-26796
> URL: https://issues.jboss.org/browse/JBIDE-26796
> Project: Tools (JBoss Tools)
> Issue Type: Bug
> Components: central
> Affects Versions: 4.12.0.Final
> Reporter: André Dietisheim
> Assignee: André Dietisheim
> Priority: Critical
> Fix For: 4.13.0.AM1
>
> Attachments: screenshot-1.png, screenshot-2.png
>
>
> steps:
> # ASSERT: use TP 4.13.AM1 matching Eclipse 2019-06
> # EXEC: import jbosstools-central into workspace
> Result:
> Eclipse reports a compilation error for *org.jboss.tools.maven.core*
> {quote}The project was not built since its build path is incomplete. Cannot find the class file for org.eclipse.jem.util.emf.workbench.ProjectUtilities{quote}
> !screenshot-1.png!
> !screenshot-2.png!
> Interestingly, things compile fine in maven, no errors.
--
This message was sent by Atlassian Jira
(v7.13.8#713008)
6 years, 6 months
[JBoss JIRA] (JBIDE-26865) Fix security warnig due to commons-validator 1.6
by André Dietisheim (Jira)
[ https://issues.jboss.org/browse/JBIDE-26865?page=com.atlassian.jira.plugi... ]
André Dietisheim edited comment on JBIDE-26865 at 9/26/19 7:13 AM:
-------------------------------------------------------------------
Commons-validator depends on commons-beanutils. commons-beanutils was updated to 1.9.4 but commons-validator still uses the old 1.9.2 version.
Nevertheless we only use commons-validator proper, we're not using the commons-beanutils bits that it depends on for certain validators:
* we only use URLValidator and DomainValidator (which dont use beanutils)
* consistently, we only copy commons-validator into our lib/ folder, none of it's dependencies:
{code:title=https://github.com/jbosstools/jbosstools-openshift/blob/master/plugins/org.jboss.tools.openshift.ui/pom.xml#L39}
<configuration>
<skip>false</skip>
<outputDirectory>${basedir}/lib/</outputDirectory>
<!-- baseVersion is to avoid SNAPSHOT dependencies being copied with
ever daily changing timestamp -->
<useBaseVersion>true</useBaseVersion>
<artifactItems>
<artifactItem>
<groupId>commons-validator</groupId>
<artifactId>commons-validator</artifactId>
<version>${commons-validator.version}</version>
</artifactItem>
</artifactItems>
</configuration>
{code}
was (Author: adietish):
Commons-validator depends on commons-beanutils. commons-beanutils was updated to 1.9.4 but commons-validator still uses the old 1.9.2 version.
Nevertheless we only use commons-validator proper, we're not using the commons-beanutils bits:
* we only use URLValidator and DomainValidator (which dont use beanutils)
* consistently, we only copy commons-validator into our lib/ folder, none of it's dependencies:
{code:title=https://github.com/jbosstools/jbosstools-openshift/blob/master/plugins/org.jboss.tools.openshift.ui/pom.xml#L39}
<configuration>
<skip>false</skip>
<outputDirectory>${basedir}/lib/</outputDirectory>
<!-- baseVersion is to avoid SNAPSHOT dependencies being copied with
ever daily changing timestamp -->
<useBaseVersion>true</useBaseVersion>
<artifactItems>
<artifactItem>
<groupId>commons-validator</groupId>
<artifactId>commons-validator</artifactId>
<version>${commons-validator.version}</version>
</artifactItem>
</artifactItems>
</configuration>
{code}
> Fix security warnig due to commons-validator 1.6
> ------------------------------------------------
>
> Key: JBIDE-26865
> URL: https://issues.jboss.org/browse/JBIDE-26865
> Project: Tools (JBoss Tools)
> Issue Type: Enhancement
> Components: openshift
> Affects Versions: 4.13.0.AM1
> Reporter: Jeff MAURY
> Assignee: André Dietisheim
> Priority: Major
> Fix For: 4.13.0.Final
>
>
> commons validator 1.6 has a dependency to commons-beanutils 1.9.2 which has a security vulnerability.
--
This message was sent by Atlassian Jira
(v7.13.8#713008)
6 years, 6 months