[jbosstools-issues] [JBoss JIRA] (JBIDE-25897) New Project validation uses wrong name space when there are two connections in OpenShift Explorer

Andre Dietisheim (JIRA) issues at jboss.org
Tue Apr 17 06:40:00 EDT 2018


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

Andre Dietisheim edited comment on JBIDE-25897 at 4/17/18 6:39 AM:
-------------------------------------------------------------------

[~dgolovin] I'd tend to think that this is more of a display error than a validation error: 
afaik namespaces for a server have to be unique across users, you cannot have 2 identical namespaces for 2 different users. To verify this do the following in CDK using the web-UI:
# EXEC: login as developer, create a project *camel-ose-springboot-xml* (or any name that you like)
# EXEC: logout, login again as admin
# EXEC: try to create the very same project (as you're now logged in as a different user) *camel-ose-springboot-xml*

Result: 
You're prompted with an error telling you that the project already exists
 !project-already-exists.png!

Resulting out of this is that the bug is not that you're prompted with an error telling you that the project already exists (which is actually true) but the fact the 2nd connection won't display the existing project. This bug is thus closely related or even duplicate to JBIDE-25756


was (Author: adietish):
[~dgolovin] I'd tend to think that this is more of a display error than a validation error: 
afaik namespaces for a server have to be unique across users, you cannot have 2 identical namespaces for 2 different users. To verify this do the following in CDK using the web-UI:
# EXEC: login as developer, create a project *tux*
# EXEC: logout, login again as admin
# EXEC: try to create the very same project (as you're now logged in as a different user) *tux*

Result: 
You're prompted with an error telling you that the project already exists
 !project-already-exists.png!

Resulting out of this is that the bug is not that you're prompted with an error telling you that the project already exists (which is actually true) but the fact the 2nd connection won't display the existing project.

> New Project validation uses wrong name space when there are two connections in OpenShift Explorer
> -------------------------------------------------------------------------------------------------
>
>                 Key: JBIDE-25897
>                 URL: https://issues.jboss.org/browse/JBIDE-25897
>             Project: Tools (JBoss Tools)
>          Issue Type: Bug
>          Components: openshift
>    Affects Versions: 4.5.3.AM3
>         Environment: Windows 10 Pro, CDK 3.4.0-alpha.1
>            Reporter: Denis Golovin
>             Fix For: 4.5.x
>
>         Attachments: project-already-exists.png, pyproject-error.gif
>
>
> !pyproject-error.gif!
> Prerequisites to reproduce the issue:
> 1. Start CDK/Minishift
> 2. Create second connection with different user name 'developer3' for example
> 3. Click hyper link in explorer to create new Project
> 4. Use name 'myproject'
> 5. ERROR:
> {code}Could not create project "myproject": project.project.openshift.io "myproject" already exists
> Exception trying to POST https://192.168.99.100:8443/oapi/v1/projectrequests response code: 409 project.project.openshift.io "myproject" already exists{code}



--
This message was sent by Atlassian JIRA
(v7.5.0#75005)


More information about the jbosstools-issues mailing list