Uploaded image for project: 'CouchDB'
  1. CouchDB
  2. COUCHDB-887

_log handler has very odd semantics for bytes/offset, probably a bug

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Trivial
    • Resolution: Fixed
    • Affects Version/s: 0.11, 0.11.1, 0.11.2, 1.0, 1.0.1
    • Fix Version/s: 1.2, 1.3
    • Component/s: HTTP Interface
    • Labels:
      None
    • Skill Level:
      New Contributors Level (Easy)

      Description

      The _log method for couchdb servers has query arguments "bytes" and "offset", but they seem to behave really weirdly. If offset >= bytes, an eof error is returned - otherwise offset is just substracted from bytes and the request behaves identically otherwise.

      A simple fix to the expected behaviour is included - offset counts backwards from bytes.

        Attachments

        1. couch_log.erl.diff
          0.6 kB
          Nuutti Kotivuori

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              nakedible Nuutti Kotivuori
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: