Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 338236

Summary: [Bugzilla] Extract Namespace on dependent schema broken
Product: z_Archived Reporter: Stanislav Nichev <stanislav.nichev>
Component: WTP IncubatorAssignee: Dimitar Tenev <dimitar.tenev>
Status: NEW --- QA Contact: Dimitar Tenev <dimitar.tenev>
Severity: normal    
Priority: P3    
Version: unspecified   
Target Milestone: ---   
Hardware: PC   
OS: Windows Vista   
Whiteboard:
Attachments:
Description Flags
reproduce data none

Description Stanislav Nichev CLA 2011-02-25 10:53:22 EST
Build Identifier: 

Hi Colleagues,                                                       
                                                                     
In SIE 731 the following scenario fails:                             
1) Copy the attached files in the workspace                          
2) Open the wsdl in the SIE                                          
3) Go to the DT tab and select the first namespace                   
4) Right click -> Extract Namespace...                               
5) Select the "use ..." checkbox and click finish                    
6) 4 validation errors shown on the "http://namespace1" namespace    
                                                                     
Regards,                                                             
Stanislav                                                            
                                                                     
    Memo                                                             
    22.10.2010 14:51:42      Stanislav Nichev                        
Hi Colleagues,                                                       
                                                                     
Fix has been submitted in perforce3023.                              
Code review by Dimitar Tenev.                                        
                                                                     
Unit tests have been updated/developed to cover the fix.             
                                                                     
Source of the problem: the XsdSchema object keeps contents caches:   
getElementDeclarations(), getTypeDefinitions() and five more.        
                                                                     
Those caches were not updated on schemaLocation update of XsdImports.
                                                                     
Bugzilla needs to be reported in order to close the issue.           
                                                                     
Regards,                                                             
Stanislav                                                            


Reproducible: Always
Comment 1 Stanislav Nichev CLA 2011-02-25 10:53:46 EST
Created attachment 189819 [details]
reproduce data