Return-Path: Delivered-To: apmail-couchdb-dev-archive@www.apache.org Received: (qmail 45643 invoked from network); 14 Sep 2010 01:07:14 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 14 Sep 2010 01:07:14 -0000 Received: (qmail 69172 invoked by uid 500); 14 Sep 2010 01:07:13 -0000 Delivered-To: apmail-couchdb-dev-archive@couchdb.apache.org Received: (qmail 69108 invoked by uid 500); 14 Sep 2010 01:07:13 -0000 Mailing-List: contact dev-help@couchdb.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@couchdb.apache.org Delivered-To: mailing list dev@couchdb.apache.org Received: (qmail 69100 invoked by uid 99); 14 Sep 2010 01:07:12 -0000 Received: from Unknown (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 14 Sep 2010 01:07:12 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.22] (HELO thor.apache.org) (140.211.11.22) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 14 Sep 2010 01:06:55 +0000 Received: from thor (localhost [127.0.0.1]) by thor.apache.org (8.13.8+Sun/8.13.8) with ESMTP id o8E16Y12008208 for ; Tue, 14 Sep 2010 01:06:34 GMT Message-ID: <22049148.168931284426394211.JavaMail.jira@thor> Date: Mon, 13 Sep 2010 21:06:34 -0400 (EDT) From: "Nuutti Kotivuori (JIRA)" To: dev@couchdb.apache.org Subject: [jira] Created: (COUCHDB-887) _log handler has very odd semantics for bytes/offset, probably a bug MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 X-Virus-Checked: Checked by ClamAV on apache.org _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: 1.0.1, 1.0, 0.11.2, 0.11.1, 0.11 Reporter: Nuutti Kotivuori Priority: Trivial 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. - You can reply to this email to add a comment to the issue online.