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

Bug 337945

Summary: No validation on schema for change def tns prefix
Product: z_Archived Reporter: Stanislav Nichev <stanislav.nichev>
Component: WTP IncubatorAssignee: Dimitar Tenev <dimitar.tenev>
Status: NEW --- QA Contact: Dimitar Tenev <dimitar.tenev>
Severity: major    
Priority: P3    
Version: unspecified   
Target Milestone: ---   
Hardware: PC   
OS: Windows Vista   
Whiteboard:
Attachments:
Description Flags
reproduce data none

Description Stanislav Nichev CLA 2011-02-23 04:47:49 EST
Build Identifier: 

Hi Colleagues,                                                          
                                                                        
In SIE 731 the following scenario fails:                                
1) Open the attached WSDL in the SIE                                    
2) Go to the source tab                                                 
3) Go to the xmlns:tns prefix of the definition and update its value    
4) Go to the DT tab                                                     
5) 4 errors on the WSDL elements shown in the title bar               
6) No validation errors on the namespace, although it is broken as  
well                                                                    
                                                                        
There is already developed fix for the problem. It can be found   
here: ObjectsForResolveUtils#a                                          
reDestinationSchemaPrefixAndNamespaceValid.                             
The "if true return true" should be removed.                            
                                                                        
ObjectsForResolveUtils#processComplexTypeDefinition should be updated   
with above method. As a hint - the complexType/complexContent/{extension
base=""    restriction base=""} element should be checked for the       
attribute base.                                                         
                                                                        
The above fix works fine on breaking the prefix value. Undo/redo,       
however, is not working. The undo of the operation is sending a         
notification on the Definition. The definition is not starting the      
validation on the containing namespaces.                                
Because of that - the error markers are not removed.                    
                                                                        
Regards,                                                                
Stanislav                                                               


Reproducible: Always
Comment 1 Stanislav Nichev CLA 2011-02-23 04:48:08 EST
Created attachment 189581 [details]
reproduce data