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 143222

Summary: Moving an IEP process to a subfolder does not work
Product: soa Reporter: prashantbhagat <prashantbhagat>
Component: IEP editorAssignee: Gabriel Badescu <gbadescu>
Status: NEW ---    
Severity: blocker    
Priority: P3    
Version: 6.x   
Hardware: All   
OS: All   
Issue Type: ENHANCEMENT Exception Reporter:

Description prashantbhagat 2008-08-07 20:13:55 UTC
Steps to reproduce
1. Take an existing IEP project
2. Create a subfolder under "Process Files"
3. Move the .iep file under the new subfolder
4. Delete the the associated WSDL from the "Process Files"
5. Change the IEP definition (some dummy change). The WSDL file will be re-generated. 
6. Build and try to deploy this project. The deployment fails.

Suggestions:
1. When moving the IEP process, probably we should inform the user to manually delete the existing WSDL file.
2. Same argument while renaming (ask user to delete the WSDL, so that a new can be re-generated)
Comment 1 Ritesh Adval 2008-09-09 23:08:15 UTC
we might want to use refactoring api for this. we may need to depend on xml refactoring and add a iep editor
as friend. To get it working on top of java caps we may have to get this friend dependency on nb61release
patch4.
Comment 2 Ritesh Adval 2008-09-10 01:06:38 UTC
The issue has to do mismatch in deploy key:

IEPSE uses namespace of service name in  generated by jbi.xml as the deploy key for an event process.

when a iep file is moved to a subfolder, there is packageName attribute on top level component element
which should be changed to the folder hiearchy of the iep file from project src to the folder where iep file resides.

example: if test.iep is moved from project src folder to src\folderA then packageName should be
packageName="folderA"

when iep file is move to a subdirectory this packageName does not get updated, The editor validation
reports this as an error but since we do not yet have build time validation thus this error is not
caught.

So it is probably sufficient when we have build time validation then this error will be reported.

It would be nice to do move file refactoring and automatically change packageName attribute.

Comment 3 Ritesh Adval 2008-09-10 20:50:59 UTC
see see http://enterprise.netbeans.org/issues/show_bug.cgi?id=140404, atleast now building project will
report error. I making it an enhancement now.