| Summary: | Publish occurs during server creation when publish after start preference has been disabled | ||||||
|---|---|---|---|---|---|---|---|
| Product: | [WebTools] WTP ServerTools | Reporter: | Elson Yuen <eyuen7> | ||||
| Component: | wst.server | Assignee: | 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
Elson Yuen
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. 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.
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. Changes committed to 32M Changes committed to HEAD Changes already released to HEAD and 32M New Gerrit change created: https://git.eclipse.org/r/108964 |