[
https://issues.apache.org/jira/browse/COUCHDB-887?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13140014#comment-13140014
]
Jan Lehnardt commented on COUCHDB-887:
--------------------------------------
http://git-wip-us.apache.org/repos/asf?p=couchdb.git;a=blobdiff;f=src/couchdb/couch_log.erl;h=1b05f4db64084ac405dd9e75b6d7bdc18e9fcda2;hp=0befe7aabfc79dc1047d044b1e002a3368789e68;hb=ad700014;hpb=7809f3ca844da984ebf1a90deefa2b4ab83d289e
> _log handler has very odd semantics for bytes/offset, probably a bug
> --------------------------------------------------------------------
>
> Key: COUCHDB-887
> URL: https://issues.apache.org/jira/browse/COUCHDB-887
> Project: CouchDB
> Issue Type: Bug
> Components: HTTP Interface
> Affects Versions: 0.11, 0.11.1, 0.11.2, 1.0, 1.0.1
> Reporter: Nuutti Kotivuori
> Priority: Trivial
> Fix For: 1.2, 1.3
>
> Attachments: couch_log.erl.diff
>
>
> 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.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators:
https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira