Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 358058 - Duplicate URI in "Service Deployment" tab of DD editor does not have error message
Summary: Duplicate URI in "Service Deployment" tab of DD editor does not have error me...
Status: CLOSED FIXED
Alias: None
Product: z_Archived
Classification: Eclipse Foundation
Component: EDT (show other bugs)
Version: unspecified   Edit
Hardware: PC Windows XP
: P3 minor (vote)
Target Milestone: ---   Edit
Assignee: Song Fan CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-09-19 03:17 EDT by Xin Wu CLA
Modified: 2017-02-23 14:19 EST (History)
4 users (show)

See Also:


Attachments
patch (2.25 KB, patch)
2011-12-29 21:34 EST, Song Fan CLA
lasher: iplog+
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Xin Wu CLA 2011-09-19 03:17:11 EDT
Build Identifier: 20110918 nightly build

Duplicate URI in "Service Deployment" tab of DD editor does not have error message. The default URI will be the same when same name service in different package deployed.

Reproducible: Always

Steps to Reproduce:
1. Create new Web Client With Service Project and create same name services in two different package.
2. Open DD file by DD editor, switch to "Service Deployment" tab
3. Same name services in different package got same URI but no alert or error message shown. This will cause problem in runtime.
Comment 1 Tony Chen CLA 2011-10-08 03:32:26 EDT
User can always edit the uri to enter a different one. I think this bug is minor, we may want to come back to this after 0.7.
Comment 2 Xin Wu CLA 2011-10-08 03:43:13 EDT
Reset the severity to Minor
Comment 3 Tony Chen CLA 2011-12-27 21:48:36 EST
Since duplicate URI will cause runtime errors, the editor should show an error message and prevent the file being saved.
Comment 4 Tony Chen CLA 2011-12-28 03:15:07 EST
After more discussion, we would like to keep the conflict prevention behavior same as what we've already done for resource binding. In resource binding, if user add the same database binding twice (which also cause a name conflict), the add wizard will automatically append a number to the later name to avoid the conflict. 

For "Service Deployment", if two services are added with the same URI, the later URI will be appended a number to avoid conflict. The same rule applies in New Service Wizard where user can enable a flag to add the new service to "Service Deployment".
Comment 5 Song Fan CLA 2011-12-29 21:34:56 EST
Created attachment 208862 [details]
patch
Comment 6 Song Fan CLA 2012-01-03 20:36:56 EST
fixed
Comment 7 Xin Wu CLA 2012-01-16 21:34:28 EST
Verified in build 20120116