Uploaded image for project: 'Apache Roller'
  1. Apache Roller
  2. ROL-1201

IfModifiedWeblogPageCacheFilter IllegalArgumentException

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • 2.3
    • 3.0
    • None
    • jdk 1.5.0_05, and 08 on

    • JDK 1.5.0_05, 1.5.0_08
    • Fedora Core 4

    Description

      Bug report excerpted from e-mail from gregh99@ricoh-uk.com on the dev list:

      Hello,

      This code:

      if (updateTime != null) {
      // convert date (JDK 1.5 workaround)
      String date = dateFormatter.format(updateTime);
      updateTime = new Date(date);
      if (updateTime.compareTo(sinceDate) <= 0) {
      mLogger.debug("NOT_MODIFIED " + key);
      response.setStatus(HttpServletResponse.SC_NOT_MODIFIED);
      return;
      }
      }

      always throws an exception in new Date(date) and never gets to the return,
      when using JDK1.5.

      Not sure if the filter is doing what it is supposed to when the code is
      modified ie updateTime = dateFormatter.parse(date);

      Cheers greg.

      Attachments

        Activity

          People

            agangolli Anil Gangolli
            agangolli Anil Gangolli
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: