Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 2.0.0, 1.6.1
    • Fix Version/s: 2.0.0, 1.7.0
    • Component/s: HTTP Interface
    • Labels:
      None

      Description

      The Expires header returned by /_uuids pretends that Jan. 1st 1990 was a Friday, while it was a Monday (http://www.timeanddate.com/calendar/?year=1990).

      % curl -v http://localhost:5984/_uuids
      *   Trying ::1...
      * Connected to localhost (::1) port 5984 (#0)
      > GET /_uuids HTTP/1.1
      > Host: localhost:5984
      > User-Agent: curl/7.42.0
      > Accept: */*
      > 
      < HTTP/1.1 200 OK
      < Server: CouchDB/1.6.1 (Erlang OTP/17)
      < Pragma: no-cache
      < Expires: Fri, 01 Jan 1990 00:00:00 GMT
      < ETag: "6LTRS9X19427AV07PBMVAX1T5"
      < Date: Tue, 28 Apr 2015 10:57:30 GMT
      < Content-Type: text/plain; charset=utf-8
      < Content-Length: 47
      < Cache-Control: must-revalidate, no-cache
      < 
      {"uuids":["a1e0504a69677e3fe4c0d7b65500059b"]}
      

      The HTTP parser in Akka detects this and warns about it:

      [WARN] [04/28/2015 12:57:59.649] [canape-test-akka.actor.default-dispatcher-2] [ActorSystem(canape-test)] Illegal response header: Illegal 'expires' header: Illegal weekday in date 1990-01-01T00:00:00: is 'Fri' but should be 'Mon'
      

        Activity

        Hide
        githubbot ASF GitHub Bot added a comment -

        GitHub user samueltardieu opened a pull request:

        https://github.com/apache/couchdb/pull/317

        Week of day for past expiration date 1990-01-01 is Monday

        Fixes COUCHDB-2677

        You can merge this pull request into a Git repository by running:

        $ git pull https://github.com/samueltardieu/couchdb wrong-weekday-in-expires-header

        Alternatively you can review and apply these changes as the patch at:

        https://github.com/apache/couchdb/pull/317.patch

        To close this pull request, make a commit to your master/trunk branch
        with (at least) the following in the commit message:

        This closes #317


        commit 6e0202cc757f8f8c19250b312d4ac2e25d642a88
        Author: Samuel Tardieu <sam@rfc1149.net>
        Date: 2015-04-28T11:12:42Z

        Week of day for past expiration date 1990-01-01 is Monday

        Fixes COUCHDB-2677


        Show
        githubbot ASF GitHub Bot added a comment - GitHub user samueltardieu opened a pull request: https://github.com/apache/couchdb/pull/317 Week of day for past expiration date 1990-01-01 is Monday Fixes COUCHDB-2677 You can merge this pull request into a Git repository by running: $ git pull https://github.com/samueltardieu/couchdb wrong-weekday-in-expires-header Alternatively you can review and apply these changes as the patch at: https://github.com/apache/couchdb/pull/317.patch To close this pull request, make a commit to your master/trunk branch with (at least) the following in the commit message: This closes #317 commit 6e0202cc757f8f8c19250b312d4ac2e25d642a88 Author: Samuel Tardieu <sam@rfc1149.net> Date: 2015-04-28T11:12:42Z Week of day for past expiration date 1990-01-01 is Monday Fixes COUCHDB-2677
        Hide
        githubbot ASF GitHub Bot added a comment -

        GitHub user samueltardieu opened a pull request:

        https://github.com/apache/couchdb-couch/pull/46

        Week of day for past expiration date 1990-01-01 is Monday

        Fixes COUCHDB-2677

        You can merge this pull request into a Git repository by running:

        $ git pull https://github.com/samueltardieu/couchdb-couch wrong-weekday-in-expires-header

        Alternatively you can review and apply these changes as the patch at:

        https://github.com/apache/couchdb-couch/pull/46.patch

        To close this pull request, make a commit to your master/trunk branch
        with (at least) the following in the commit message:

        This closes #46


        commit 35bb5ddb4cf66e875755cb93e0718488e73336c7
        Author: Samuel Tardieu <sam@rfc1149.net>
        Date: 2015-04-28T11:17:05Z

        Week of day for past expiration date 1990-01-01 is Monday

        Fixes COUCHDB-2677


        Show
        githubbot ASF GitHub Bot added a comment - GitHub user samueltardieu opened a pull request: https://github.com/apache/couchdb-couch/pull/46 Week of day for past expiration date 1990-01-01 is Monday Fixes COUCHDB-2677 You can merge this pull request into a Git repository by running: $ git pull https://github.com/samueltardieu/couchdb-couch wrong-weekday-in-expires-header Alternatively you can review and apply these changes as the patch at: https://github.com/apache/couchdb-couch/pull/46.patch To close this pull request, make a commit to your master/trunk branch with (at least) the following in the commit message: This closes #46 commit 35bb5ddb4cf66e875755cb93e0718488e73336c7 Author: Samuel Tardieu <sam@rfc1149.net> Date: 2015-04-28T11:17:05Z Week of day for past expiration date 1990-01-01 is Monday Fixes COUCHDB-2677
        Hide
        jira-bot ASF subversion and git services added a comment -

        Commit 35bb5ddb4cf66e875755cb93e0718488e73336c7 in couchdb-couch's branch refs/heads/master from Samuel Tardieu
        [ https://git-wip-us.apache.org/repos/asf?p=couchdb-couch.git;h=35bb5dd ]

        Week of day for past expiration date 1990-01-01 is Monday

        Fixes COUCHDB-2677

        Show
        jira-bot ASF subversion and git services added a comment - Commit 35bb5ddb4cf66e875755cb93e0718488e73336c7 in couchdb-couch's branch refs/heads/master from Samuel Tardieu [ https://git-wip-us.apache.org/repos/asf?p=couchdb-couch.git;h=35bb5dd ] Week of day for past expiration date 1990-01-01 is Monday Fixes COUCHDB-2677
        Hide
        githubbot ASF GitHub Bot added a comment -

        Github user asfgit closed the pull request at:

        https://github.com/apache/couchdb-couch/pull/46

        Show
        githubbot ASF GitHub Bot added a comment - Github user asfgit closed the pull request at: https://github.com/apache/couchdb-couch/pull/46
        Hide
        jira-bot ASF subversion and git services added a comment -

        Commit 6e0202cc757f8f8c19250b312d4ac2e25d642a88 in couchdb's branch refs/heads/1.x.x from Samuel Tardieu
        [ https://git-wip-us.apache.org/repos/asf?p=couchdb.git;h=6e0202c ]

        Week of day for past expiration date 1990-01-01 is Monday

        Fixes COUCHDB-2677

        Show
        jira-bot ASF subversion and git services added a comment - Commit 6e0202cc757f8f8c19250b312d4ac2e25d642a88 in couchdb's branch refs/heads/1.x.x from Samuel Tardieu [ https://git-wip-us.apache.org/repos/asf?p=couchdb.git;h=6e0202c ] Week of day for past expiration date 1990-01-01 is Monday Fixes COUCHDB-2677
        Hide
        githubbot ASF GitHub Bot added a comment -

        Github user asfgit closed the pull request at:

        https://github.com/apache/couchdb/pull/317

        Show
        githubbot ASF GitHub Bot added a comment - Github user asfgit closed the pull request at: https://github.com/apache/couchdb/pull/317
        Hide
        jira-bot ASF subversion and git services added a comment -

        Commit 35bb5ddb4cf66e875755cb93e0718488e73336c7 in couchdb-couch's branch refs/heads/2657-fix-cassim-fabric-calls-revised from Samuel Tardieu
        [ https://git-wip-us.apache.org/repos/asf?p=couchdb-couch.git;h=35bb5dd ]

        Week of day for past expiration date 1990-01-01 is Monday

        Fixes COUCHDB-2677

        Show
        jira-bot ASF subversion and git services added a comment - Commit 35bb5ddb4cf66e875755cb93e0718488e73336c7 in couchdb-couch's branch refs/heads/2657-fix-cassim-fabric-calls-revised from Samuel Tardieu [ https://git-wip-us.apache.org/repos/asf?p=couchdb-couch.git;h=35bb5dd ] Week of day for past expiration date 1990-01-01 is Monday Fixes COUCHDB-2677
        Hide
        janl Jan Lehnardt added a comment -

        <3

        Show
        janl Jan Lehnardt added a comment - <3

          People

          • Assignee:
            Unassigned
            Reporter:
            sam@rfc1149.net Samuel Tardieu
          • Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development