From adca4f5d9182748168117dfa5bcb22f588d0b296 Mon Sep 17 00:00:00 2001 From: "Eric J. Bowersox" Date: Sun, 4 Apr 2004 23:19:27 +0000 Subject: [PATCH] patches for bugs spotted while reinstalling Phoenix server (EMinds) --- .../venice/core/impl/PublishedMessageImpl.java | 3 ++- .../venice/core/impl/TopicMessageUserContextImpl.java | 3 ++- .../silverwrist/venice/ui/servlet/RequestImpl.java | 11 ++++++----- 3 files changed, 10 insertions(+), 7 deletions(-) diff --git a/src/com/silverwrist/venice/core/impl/PublishedMessageImpl.java b/src/com/silverwrist/venice/core/impl/PublishedMessageImpl.java index 2217ed8..54bc420 100644 --- a/src/com/silverwrist/venice/core/impl/PublishedMessageImpl.java +++ b/src/com/silverwrist/venice/core/impl/PublishedMessageImpl.java @@ -239,7 +239,8 @@ class PublishedMessageImpl implements TopicMessageContext if (rs.next()) text_cache = rs.getString(1); else - return "Data Missing"; // FUTURE: throw an exception? + return "[[Venice Internal Error: Data Missing]]"; + // FUTURE: throw an exception? } // end try catch (SQLException e) diff --git a/src/com/silverwrist/venice/core/impl/TopicMessageUserContextImpl.java b/src/com/silverwrist/venice/core/impl/TopicMessageUserContextImpl.java index 2e811c7..28bae7c 100644 --- a/src/com/silverwrist/venice/core/impl/TopicMessageUserContextImpl.java +++ b/src/com/silverwrist/venice/core/impl/TopicMessageUserContextImpl.java @@ -333,7 +333,8 @@ class TopicMessageUserContextImpl implements TopicMessageContext if (rs.next()) text_cache = rs.getString(1); else - return "Data Missing"; // FUTURE: throw an exception? + return "[[Venice Internal Error: Data Missing]]"; + // FUTURE: throw an exception? } // end try finally diff --git a/src/com/silverwrist/venice/ui/servlet/RequestImpl.java b/src/com/silverwrist/venice/ui/servlet/RequestImpl.java index f289b00..fe992a6 100644 --- a/src/com/silverwrist/venice/ui/servlet/RequestImpl.java +++ b/src/com/silverwrist/venice/ui/servlet/RequestImpl.java @@ -1757,12 +1757,13 @@ class CookieControlImpl implements CookieControl { // load the cookies into a HashMap old_cookies = new HashMap(); Cookie[] raw_list = httpreq.getCookies(); - for (int i=0; i