Uploaded image for project: 'Wicket'
  1. Wicket
  2. WICKET-1171

Tolerate malformed If-Modified-Since header

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Minor
    • Resolution: Fixed
    • 1.3.0-rc1
    • 1.3.0-rc2
    • wicket
    • None

    Description

      Some kind of RSS aggregator is hitting an rc1 site of mine regularly with dates that don't follow the HTTP spec. Correct to the servlet spec, Jetty throws an exception in this instance which causes Wicket to abort processing the request and log an error. I think it would be better to log the exception as a warning and proceed as if the header had not been present.

      Example exception:

      ERROR btpool0-703 org.mortbay.log - /resources/com.typeturner.Typeturner/eat-rss
      java.lang.IllegalArgumentException: Cannot convert date: 1194673976
      at org.mortbay.jetty.HttpFields.getDateField(HttpFields.java:827)
      at org.mortbay.jetty.Request.getDateHeader(Request.java:460)
      at org.apache.wicket.protocol.http.WicketFilter.doFilter(WicketFilter.java:197)

      Attachments

        1. date-header.diff
          0.9 kB
          Nathan Hamblen

        Activity

          People

            Unassigned Unassigned
            nathan@technically.us Nathan Hamblen
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: