setIfModifiedSince() of HttpURLConnection sets invalid date of default locale.

XMLWordPrintable

    • Type: Bug
    • Resolution: Fixed
    • Priority: P4
    • 1.4.0
    • Affects Version/s: 1.3.0
    • Component/s: core-libs
    • beta
    • x86
    • windows_2000



      Name: boT120536 Date: 12/11/2000


      java version "1.3.0"
      Java(TM) 2 Runtime Environment, Standard Edition (build 1.3.0-C)
      Java HotSpot(TM) Client VM (build 1.3.0-C, mixed mode)

      java.net.HttpURLConnection.setIfModifiedSince(long ifmodifiedsince) sets
      invalid date depending on "default locale".
      If your default locale is "US", this sets valid date below:

          If-Modified-Since: Wed, 14 Jun 2000 10:09:47 GMT

      But if your default locale is, example, Locale.JAPAN, this sets invalid date
      below:

          If-Modified-Since: ??, 14 6 2000 10:09:47 GMT

      This may be because SUN forgot to set locale to "US" when set If-Modified-Since.
      (Review ID: 113553)
      ======================================================================

            Assignee:
            Michael McMahon
            Reporter:
            Bret O'neal (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: