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

Bug 320505

Summary: [snaps] Snap binds to any host if SnapFactory is published prior to host ServletContext
Product: [RT] Virgo Reporter: Dmitry Sklyut <dmitry>
Component: unknownAssignee: Glyn Normington <glyn.normington>
Status: CLOSED FIXED QA Contact:
Severity: critical    
Priority: P3 CC: dmitry, glyn.normington
Version: 2.1.0.M02-incubation   
Target Milestone: ---   
Hardware: All   
OS: All   
URL: https://issuetracker.springsource.com/browse/DMS-2257
Whiteboard:
Attachments:
Description Flags
this is a test for the issue
glyn.normington: iplog+
This is a proposed fix glyn.normington: iplog+

Description Dmitry Sklyut CLA 2010-07-21 09:30:22 EDT
If SnapFactory is published prior to host servlet context, Snap will bind to any bundle that publishes servlet context prior to host servlet context.  That is, there is no validation/checking on Snap-Host attributes.
Comment 1 Dmitry Sklyut CLA 2010-07-21 09:49:22 EDT
Created attachment 174850 [details]
this is a test for the issue
Comment 2 Dmitry Sklyut CLA 2010-07-21 09:49:45 EDT
Created attachment 174851 [details]
This is a proposed fix
Comment 3 Dmitry Sklyut CLA 2010-07-21 09:51:30 EDT
I wrote 100% of the code and have rights to contribute this code to Eclipse
Comment 4 Glyn Normington CLA 2010-07-21 11:57:56 EDT
Thanks for the test and fix Dmitry. Committed in 40de9793325529b222e4091510796481a8bed77f.