Community
Participate
Working Groups
+++ This bug was initially created as a clone of Bug #326318 +++ Build Identifier: 3.2.2 We noticed that the server never shows publishing state and it is in sync state even before the publishing is completed. If we look at the org.eclipse.wst.server.ui.internal.cnf.ServerDecorator.getServerStatusLabel(IServer server). The ServerContentProvider.publishing is never got set, so it will never return syncState[4], that is "Publishing." Instead, it returns the syncState[0]. This is "Synchronized" state. public static String getServerStatusLabel(IServer server) { IStatus status = ((Server) server).getServerStatus(); if (status != null) return status.getMessage(); if (server.getServerType() == null) return ""; if (server.getServerState() == IServer.STATE_UNKNOWN) return ""; String serverId = server.getId(); if (ServerContentProvider.publishing.contains(serverId)) return ServerDecorator.syncState[4]; // republish int i = 0; if (server.shouldPublish()) { if (((Server)server).isPublishUnknown()) return ""; i += 2; } if (server.shouldRestart()) i = 1; return syncState[i]; } Reproducible: Always Steps to Reproduce: 1. Publish a project that takes some time to publish. 2. 3.
Created attachment 181885 [details] v1.0 patch for 3.2M
Changes committed to 32M
Changes released to 32M
Created attachment 181886 [details] v1.1 Patch for 3.3 Patch for 3.3
Changes released to HEAD (3.3)
Code released to both 3.2M and HEAD
New Gerrit change created: https://git.eclipse.org/r/108997