Return-Path: X-Original-To: apmail-chemistry-dev-archive@www.apache.org Delivered-To: apmail-chemistry-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 1A2C79FCB for ; Fri, 2 Dec 2011 08:42:26 +0000 (UTC) Received: (qmail 78844 invoked by uid 500); 2 Dec 2011 08:42:25 -0000 Delivered-To: apmail-chemistry-dev-archive@chemistry.apache.org Received: (qmail 78805 invoked by uid 500); 2 Dec 2011 08:42:24 -0000 Mailing-List: contact dev-help@chemistry.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@chemistry.apache.org Delivered-To: mailing list dev@chemistry.apache.org Received: (qmail 78796 invoked by uid 99); 2 Dec 2011 08:42:23 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 02 Dec 2011 08:42:23 +0000 X-ASF-Spam-Status: No, hits=-0.0 required=5.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of slaurice@opentext.com designates 149.235.128.48 as permitted sender) Received: from [149.235.128.48] (HELO mucmx01.ixos.de) (149.235.128.48) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 02 Dec 2011 08:42:14 +0000 Received: from mucpm01.smtp.dmz.opentext.com (localhost [127.0.0.1]) by mucmx01.ixos.de (8.12.10+Sun/8.12.10) with ESMTP id pB28fqGt006656 for ; Fri, 2 Dec 2011 09:41:52 +0100 (MET) Received: from MUCXGC2.opentext.net (mucxg04.opentext.net [149.235.128.138]) by mucpm01.smtp.dmz.opentext.com (8.14.4/8.14.4) with ESMTP id pB28fnuB009367 for ; Fri, 2 Dec 2011 03:41:51 -0500 (envelope-from slaurice@opentext.com) X-MimeOLE: Produced By Microsoft Exchange V6.5 Content-class: urn:content-classes:message MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Subject: Content stream ranges in java implementation of Atompub binding Date: Fri, 2 Dec 2011 09:39:08 +0100 Message-ID: <2666EB2A846BAC4BB2D7F593301A7868075F87CC@MUCXGC2.opentext.net> X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: Content stream ranges in java implementation of Atompub binding Thread-Index: AcywylDpsJ9jWwNJRP29s7l48ihfgA== From: "Stefano Lauricella" To: X-Archived: msg.A0VY2KG:2011-12-02:mucpm01.smtp.dmz.opentext.com X-Virus-Checked: Checked by ClamAV on apache.org Hi there, I'm experiencing an issue in the Java implementation of the atompub binding. The client requests a content stream indicating a offset and length (e.g. offset=3D5 length=3D10). I realized the HttpUtils client class converts such values into a request property like Range=3D4-13. The HttpUtils server class seems not to convert such a range back correctly since our server implementation gets offset=3D5 and = length=3D9. I found the following. The org.apache.chemistry.opencmis.client.bindings.spi.atompub.HttpUtils has the following line in the invoke method =20 sb.append(offset.add(length.subtract(BigInteger.ONE)).toString()); The org.apache.chemistry.opencmis.server.shared.HttpUtils forgets to re-add the one byte in the line length =3D (new BigInteger(lengthStr)).subtract(offset); I'm using the 0.3.0 version of the OpenCmis bundle. I observed the same issue is still present in the 0.5.0 version. Regards, Stefano