Hi,

Just found a bug in ResourceServingWebapp. If JVM locale is set other 
than english, then expires header is formatted incorrectly and causes 
every resource to be reloaded every time. Patch is attached.

Arvids

-- 
You are currently subscribed to [email protected] as: 
[email protected]
To unsubscribe, change settings or access archives, see 
http://www.ja-sig.org/wiki/display/JSG/uportal-dev
Index: /home/arvids/workspace/resource-server/resource-server-utils/src/main/java/org/jasig/resourceserver/utils/filter/CacheExpirationFilter.java
===================================================================
--- /home/arvids/workspace/resource-server/resource-server-utils/src/main/java/org/jasig/resourceserver/utils/filter/CacheExpirationFilter.java	(revision 46109)
+++ /home/arvids/workspace/resource-server/resource-server-utils/src/main/java/org/jasig/resourceserver/utils/filter/CacheExpirationFilter.java	(working copy)
@@ -4,6 +4,7 @@
 import java.text.DateFormat;
 import java.text.SimpleDateFormat;
 import java.util.Calendar;
+import java.util.Locale;
 import java.util.Timer;
 import java.util.TimerTask;
 
@@ -38,7 +39,7 @@
     private static final int YEAR_OF_SECONDS = 365 * 24 * 60 * 60;
         
     protected final Log logger = LogFactory.getLog(this.getClass());
-    private final DateFormat dateFormat = new SimpleDateFormat("EEE, dd MMM yyyy hh:mm:ss z");
+    private final DateFormat dateFormat = new SimpleDateFormat("EEE, dd MMM yyyy hh:mm:ss z", new Locale("en"));
     
     private Timer headerUpdateTimer;
     private String cachedControlString;

Reply via email to