https://issues.apache.org/bugzilla/show_bug.cgi?id=57331
Bug ID: 57331 Summary: Allow ExpiresFilter to use "year" as synonym for "years" in its configuration Product: Tomcat 7 Version: 7.0.57 Hardware: PC Status: NEW Severity: normal Priority: P2 Component: Catalina Assignee: dev@tomcat.apache.org Reporter: knst.koli...@gmail.com The current code is if ("years".equalsIgnoreCase(currentToken)) { durationUnit = DurationUnit.YEAR; } else if ("month".equalsIgnoreCase(currentToken) || "months".equalsIgnoreCase(currentToken)) { durationUnit = DurationUnit.MONTH; ... The above if/else tree misses "year" case. All other time units have support for singular form, e.g. "months"/"month" above. This was observed by a stackoverflow user [1]. The following configuration fails: <init-param> <param-name>ExpiresDefault</param-name> <param-value>access plus 1 year</param-value> </init-param> but succeeds if one replaces s/year/years/. [1] http://stackoverflow.com/questions/27353512/how-to-configure-expires-filter-in-tomcat-7 -- You are receiving this mail because: You are the assignee for the bug. --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscr...@tomcat.apache.org For additional commands, e-mail: dev-h...@tomcat.apache.org