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

Bug 318069

Summary: Publish occurs during server creation when publish after start preference has been disabled
Product: [WebTools] WTP ServerTools Reporter: Elson Yuen <eyuen7>
Component: wst.serverAssignee: Elson Yuen <eyuen7>
Status: RESOLVED FIXED QA Contact: Angel Vera <arvera>
Severity: normal    
Priority: P3 Flags: arvera: review+
Version: unspecified   
Target Milestone: 3.2.1   
Hardware: PC   
OS: Windows XP   
See Also: https://git.eclipse.org/r/108964
Whiteboard:
Attachments:
Description Flags
v1.0 arvera: review+

Description Elson Yuen CLA 2010-06-25 23:05:19 EDT
Build Identifier: WTP 3.2

During server creation, there is a case where the framework will triggers a server publish even when publish after start is disabled on the preference page.


Reproducible: Always
Comment 1 Elson Yuen CLA 2010-06-25 23:10:01 EDT
The problem is caused by auto publish is triggered when the ServerBehaviourDelegate is being created.  However, the publish after server start flag on the preference page has not been checked before calling auto publish.

Please assign this defect to me.
Comment 2 Elson Yuen CLA 2010-06-28 17:06:06 EDT
Created attachment 172967 [details]
v1.0

The fix is to add the ServerCore.isAutoPublishing() flag check before kicking off an autopublish when the ServerBehaviourDelegate is initialized. This will make first initialization of the ServerBehaviourDelegate respect that publish after server start flag.
Comment 3 Angel Vera CLA 2010-06-29 10:43:55 EDT
Thanks Elson. 

The patch looks good,I just made the comments shorter. 

This looks like a change for 3.2.1, as the preference (PREF_AUTO_PUBLISH) should be respected in all cases.
Comment 4 Angel Vera CLA 2010-06-29 10:46:39 EDT
Changes committed to 32M
Comment 5 Angel Vera CLA 2010-06-29 10:48:23 EDT
Changes committed to HEAD
Comment 6 Angel Vera CLA 2010-07-09 10:58:37 EDT
Changes already released to HEAD and 32M
Comment 7 Eclipse Genie CLA 2017-10-11 16:33:54 EDT
New Gerrit change created: https://git.eclipse.org/r/108964