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 113370

Summary: XML Validation failed after moving schema from one project to another.
Product: xml Reporter: Michael Nazarov <michaelnazarov>
Component: Schema ToolsAssignee: Sonali Kochar <sonali>
Status: VERIFIED FIXED    
Severity: blocker CC: hong_lin
Priority: P2    
Version: 6.x   
Hardware: All   
OS: All   
Issue Type: DEFECT Exception Reporter:
Bug Depends on: 113850    
Bug Blocks:    
Attachments: warnings
errors

Description Michael Nazarov 2007-08-21 15:55:30 UTC
Product Version: NetBeans IDE Dev (Build 200708210000)

After XML schema with reference moved from one project to another XML validation failed and shows warnings. Check first 
screenshot: reference looks good but validation output has warning.

After using type from referenced schhema XML Validation shows errors. Check second screenshot.

BTW project still compileable so P2 I think...

Steps to reproduce:

1. Create BluePrint1 Sample and BPEL Module.
2. Add to Module Sample Loan Application Schema.
3. Add to Sample reference to Module.
4. Import to purchaseOrder reference to newLoanApplication.
5. Drag purchaseOrder from Sample to Module.

Validation will show warining.

6. Add to purchaseOrder Attribute, Complex Type, Element or Simple Type using referenced type from newLoanApplication.

Validation will show errors.
Comment 1 Michael Nazarov 2007-08-21 15:56:49 UTC
Created attachment 46980 [details]
warnings
Comment 2 Michael Nazarov 2007-08-21 15:57:17 UTC
Created attachment 46981 [details]
errors
Comment 3 Sonali Kochar 2007-08-22 19:13:20 UTC
Fixed. When you DnD a file from a project to another, it should open the MoveRefactoring GUI. This is the same as DnD in
java. The move refactoring then takes care any schema references inside the file
Comment 4 Michael Nazarov 2007-09-03 15:42:08 UTC
Product Version: NetBeans IDE Dev (Build 200708310258)