|
From: <ian...@us...> - 2008-02-21 05:32:39
|
Revision: 762
http://ogoglio.svn.sourceforge.net/ogoglio/?rev=762&view=rev
Author: iansmith
Date: 2008-02-20 21:32:43 -0800 (Wed, 20 Feb 2008)
Log Message:
-----------
Bug Fix:Reachable sim list was being incorrectly calculated because I used a string to try to concat something onto a URI instead of WebAPIUtil.
This exposes a problem that we need to have a way to simulate various states of machines being up/down/partitioned.
Modified Paths:
--------------
maven/trunk/ogoglio-server/src/main/java/com/ogoglio/site/SpaceServlet.java
Modified: maven/trunk/ogoglio-server/src/main/java/com/ogoglio/site/SpaceServlet.java
===================================================================
--- maven/trunk/ogoglio-server/src/main/java/com/ogoglio/site/SpaceServlet.java 2008-02-21 05:12:13 UTC (rev 761)
+++ maven/trunk/ogoglio-server/src/main/java/com/ogoglio/site/SpaceServlet.java 2008-02-21 05:32:43 UTC (rev 762)
@@ -891,7 +891,7 @@
SimDocument simDoc = DocumentFactory.documentFromRecord(simRecs[i]);
if ((simDoc.isReachable()) && (!onlyServers)) {
try {
- URI uri = new URI(simDoc.getSimURI().toString() + "space/");
+ URI uri = WebAPIUtil.appendToURI(simDoc.getSimURI(), "space/");
Log.debug("About to poll " + uri + " to see about it's space list...");
WebAPIClientWire wire = new WebAPIClientWire();
wire.setConnectTimeout(2000);
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|