Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 340230 - The validator cache should be reset when there is a REMOVED event
Summary: The validator cache should be reset when there is a REMOVED event
Status: RESOLVED FIXED
Alias: None
Product: WTP Common Tools
Classification: WebTools
Component: wst.validation (show other bugs)
Version: 3.2.3   Edit
Hardware: PC Windows XP
: P3 normal (vote)
Target Milestone: 3.2.4   Edit
Assignee: Gary Karasiuk CLA
QA Contact: Chuck Bridgham CLA
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-03-16 15:43 EDT by Keith Chong CLA
Modified: 2011-03-21 16:42 EDT (History)
2 users (show)

See Also:
ccc: review+


Attachments
Apply to org.eclipse.wst.validation (3.05 KB, patch)
2011-03-16 15:45 EDT, Keith Chong CLA
no flags Details | Diff
alternative patch (3.34 KB, patch)
2011-03-17 18:07 EDT, Gary Karasiuk CLA
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Keith Chong CLA 2011-03-16 15:43:31 EDT
The Validation framework lists the valid validators on the resource as a session property.  If the resource, which is valid for validator XYZ, is then moved to another project where validator XYZ is no longer valid, problems may arise when the validator is run.  Thus, the cache needs to be reset.
Comment 1 Keith Chong CLA 2011-03-16 15:45:03 EDT
Created attachment 191342 [details]
Apply to org.eclipse.wst.validation
Comment 2 Gary Karasiuk CLA 2011-03-17 18:07:46 EDT
Created attachment 191476 [details]
alternative patch

Hi Keith, Could you please see if this patch fixes the problem. It should perform better than your original patch.
Comment 3 Gary Karasiuk CLA 2011-03-21 09:49:23 EDT
Carl, Can I drop this into 3.2.4?

Keith has tested the patch.
Comment 4 Gary Karasiuk CLA 2011-03-21 16:42:10 EDT
Fix has been released to 3.2.4 and to HEAD.