This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 248663 - Cannot add second JavaCloud instance in same identity domain
Summary: Cannot add second JavaCloud instance in same identity domain
Status: RESOLVED FIXED
Alias: None
Product: javaee
Classification: Unclassified
Component: Oracle Cloud (show other bugs)
Version: 8.0.1
Hardware: Macintosh Mac OS X
: P3 normal (vote)
Assignee: Petr Hejl
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-11-14 23:27 UTC by pthaden
Modified: 2015-05-08 03:02 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description pthaden 2014-11-14 23:27:42 UTC
Attempted to add a Java Cloud instance to the Cloud section of the Services tab.  I have more than one trial instance, and this is the second instance of two in the same identity domain.

With all of the details for the second instance filled in, the Add Cloud Provider wizard prompted with 

(!) This cloud is already registered in the IDE.

and would not allow the wizard to continue.

The instance I was trying to add is unique, but it shares the same identity domain as it's sister JCS that I already have set up in Netbeans.  If I changed the identity domain field in the wizard to something else, the wizard would let me continue (with the wrong information).

The validation for existing cloud registrations should compare Java Service Names, not Identity Domains.

Thanks!
-Paul
Comment 1 Petr Hejl 2015-05-06 10:26:08 UTC
To be sure what you actually want to fix is:
You have one two instances under same identity domain and same user and the difference is just Java service name, right?
Comment 2 pthaden 2015-05-06 15:49:43 UTC
(In reply to Petr Hejl from comment #1)
> To be sure what you actually want to fix is:
> You have one two instances under same identity domain and same user and the
> difference is just Java service name, right?

Yes that's correct.  You can reproduce this even if you don't actually have a second java service in your identity domain.  The wizard won't let you progress if you key in a identity domain that you're already using for the other java service.  The error message is "This cloud is already registered in the IDE."

The wizard should be comparing all fields:  identity domain + java service name + service administrator = unique cloud provider.  But the wizard gets stuck if you reuse an identity domain.

I have no problems setting up multiple Oracle Cloud providers (I have 3 JCS instances modeled in NetBeans), as long as each has a unique identity domain.
Comment 3 Petr Hejl 2015-05-07 09:04:59 UTC
Should be fixed in web-main 2aa2294d758c.
Comment 4 Quality Engineering 2015-05-08 03:02:55 UTC
Integrated into 'main-silver', will be available in build *201505080001* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)

Changeset: http://hg.netbeans.org/main-silver/rev/2aa2294d758c
User: Petr Hejl <phejl@netbeans.org>
Log: #248663 - Cannot add second JavaCloud instance in same identity domain