Author: ssanjamt
Date: 2008-02-06 16:07:41 +0100 (Wed, 06 Feb 2008)
New Revision: 6090
Modified:
branches/2.16/war/src/main/java/no/sesat/search/http/filters/SiteLocatorFilter.java
Log:
SEARCH-4203 DataModelAccessException: Failure to honour the Access control
annotations on getString against VIEW_CONSTRUCTION
Modified:
branches/2.16/war/src/main/java/no/sesat/search/http/filters/SiteLocatorFilter.java
===================================================================
---
branches/2.16/war/src/main/java/no/sesat/search/http/filters/SiteLocatorFilter.java
2008-02-05 13:56:31 UTC (rev 6089)
+++
branches/2.16/war/src/main/java/no/sesat/search/http/filters/SiteLocatorFilter.java
2008-02-06 15:07:41 UTC (rev 6090)
@@ -420,7 +420,7 @@
final DataModel dataModel = getDataModel(request);
if (null != dataModel && !dataModel.getSite().getSite().equals(site)) {
- LOG.warn(WARN_FAULTY_BROWSER +
dataModel.getBrowser().getUserAgent().getString());
+ LOG.warn(WARN_FAULTY_BROWSER + (request instanceof
HttpServletRequest ? ((HttpServletRequest) request).getHeader("User-Agent") :
""));
// DataModelFilter will correct it
}
_______________________________________________
Kernel-commits mailing list
[email protected]
http://sesat.no/mailman/listinfo/kernel-commits