patches for bugs spotted while reinstalling Phoenix server (EMinds)
This commit is contained in:
parent
372f548f7f
commit
adca4f5d91
|
@ -239,7 +239,8 @@ class PublishedMessageImpl implements TopicMessageContext
|
||||||
if (rs.next())
|
if (rs.next())
|
||||||
text_cache = rs.getString(1);
|
text_cache = rs.getString(1);
|
||||||
else
|
else
|
||||||
return "Data Missing"; // FUTURE: throw an exception?
|
return "<b>[[Venice Internal Error: Data Missing]]</b>";
|
||||||
|
// FUTURE: throw an exception?
|
||||||
|
|
||||||
} // end try
|
} // end try
|
||||||
catch (SQLException e)
|
catch (SQLException e)
|
||||||
|
|
|
@ -333,7 +333,8 @@ class TopicMessageUserContextImpl implements TopicMessageContext
|
||||||
if (rs.next())
|
if (rs.next())
|
||||||
text_cache = rs.getString(1);
|
text_cache = rs.getString(1);
|
||||||
else
|
else
|
||||||
return "Data Missing"; // FUTURE: throw an exception?
|
return "<b>[[Venice Internal Error: Data Missing]]</b>";
|
||||||
|
// FUTURE: throw an exception?
|
||||||
|
|
||||||
} // end try
|
} // end try
|
||||||
finally
|
finally
|
||||||
|
|
|
@ -1757,12 +1757,13 @@ class CookieControlImpl implements CookieControl
|
||||||
{ // load the cookies into a HashMap
|
{ // load the cookies into a HashMap
|
||||||
old_cookies = new HashMap();
|
old_cookies = new HashMap();
|
||||||
Cookie[] raw_list = httpreq.getCookies();
|
Cookie[] raw_list = httpreq.getCookies();
|
||||||
for (int i=0; i<raw_list.length; i++)
|
if (raw_list!=null)
|
||||||
{ // save off the cookies
|
for (int i=0; i<raw_list.length; i++)
|
||||||
Cookie tmp = raw_list[i];
|
{ // save off the cookies
|
||||||
old_cookies.put(tmp.getName(),tmp);
|
Cookie tmp = raw_list[i];
|
||||||
|
old_cookies.put(tmp.getName(),tmp);
|
||||||
|
|
||||||
} // end for
|
} // end for and if
|
||||||
|
|
||||||
if (logger.isDebugEnabled())
|
if (logger.isDebugEnabled())
|
||||||
logger.debug("loadCookies(): " + old_cookies.size() + " cookie(s) loaded");
|
logger.debug("loadCookies(): " + old_cookies.size() + " cookie(s) loaded");
|
||||||
|
|
Loading…
Reference in New Issue
Block a user