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 0B02810D7B for ; Wed, 21 Aug 2013 12:58:42 +0000 (UTC) Received: (qmail 63717 invoked by uid 500); 21 Aug 2013 12:58:42 -0000 Delivered-To: apmail-chemistry-dev-archive@chemistry.apache.org Received: (qmail 63528 invoked by uid 500); 21 Aug 2013 12:58:41 -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 63519 invoked by uid 99); 21 Aug 2013 12:58:41 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 21 Aug 2013 12:58:41 +0000 X-ASF-Spam-Status: No, hits=1.5 required=5.0 tests=HTML_MESSAGE,RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of carlo.sciolla@gmail.com designates 209.85.216.53 as permitted sender) Received: from [209.85.216.53] (HELO mail-qa0-f53.google.com) (209.85.216.53) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 21 Aug 2013 12:58:37 +0000 Received: by mail-qa0-f53.google.com with SMTP id hu14so385423qab.5 for ; Wed, 21 Aug 2013 05:58:16 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc:content-type; bh=0IuyCx6d1Co0oOz7sZOnbtbjUE4LEf+UKsZkh5YXdVA=; b=wrJqP+GEPspDnrm084wCugS8m4fKxiWRapG5Msuhhu/vc7P/vHC+QbuqrNf768XvuJ D1kdldb/e7XWGwerwr7VjUQud9kAVVmYHHHmDozVl3oinGIkaPxAAoRYS9Wr6FbtoByR +Amt0+pBLNufHpj4lqTJ1Z5Hhi3GmZV3tpmM9RCqXzGKlwvao9kATvRjicz/80SVymZ/ JBU6k+c+jzJsGIhVgvKBim9pHkKlEIomailnKZQqtGMQHwxL99vJ04EvmpRoU0Z3DmwC cfNHIB/nUDHJURCPc32Y3kyEYkkRbCdjw2Gi2+s4fiWQc4pWhXqQDJfI/C+/OSVKI5Xb ixYw== X-Received: by 10.224.65.136 with SMTP id j8mr10712898qai.0.1377089896606; Wed, 21 Aug 2013 05:58:16 -0700 (PDT) MIME-Version: 1.0 Received: by 10.49.83.73 with HTTP; Wed, 21 Aug 2013 05:57:56 -0700 (PDT) In-Reply-To: References: From: Carlo Sciolla Date: Wed, 21 Aug 2013 14:57:56 +0200 Message-ID: Subject: Re: Copying a document with the AtomPub binding To: =?ISO-8859-1?Q?Florian_M=FCller?= Cc: dev@chemistry.apache.org Content-Type: multipart/alternative; boundary=001a11c2ba4a1c73f904e474ba2d X-Virus-Checked: Checked by ClamAV on apache.org --001a11c2ba4a1c73f904e474ba2d Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Hi Florian, I'm currently still on 0.6.0, but looking at the current code it seems that the same flows exists in the latest trunk: DocumentImpl.copy()-> SessionImpl.createDocumentFromSource()-> ObjectServiceImpl.createDocumentFromSource()-> new CmisNotSupportedException("createDocumentFromSource is not supported by the AtomPub binding!") Am I missing something? c. 2013/8/21 Florian M=FCller > Hi Carlo, > > Document.copy() should also work with the AtomPub binding. If it doesn't, > we have to investigate. > If createDocumentFromSource is not support either by the binding or the > server, Document.copy() creates a new document and streams the content fr= om > the source document to the new document via the client. That is, the > content is transmitted twice (to and from the client) over the wire. It's > not great, but it's the best solution we could come up with. > > > Florian > > > Hi chemists, >> >> the AtomPub binding doesn't expose createDocumentFromSource, and the >> current Chemistry client implementation throws an >> >> exception> blob/android/chemistry-**opencmis-client/chemistry-** >> opencmis-client-bindings/src/**main/java/org/apache/** >> chemistry/opencmis/client/**bindings/spi/atompub/** >> ObjectServiceImpl.java#L145 >> >**when >> >> issuing document.copy() or session. createDocumentFromSource(). >> >> Is there any advised method to copy a document in a generic and reusable >> way that will work regardless of the binding? And if not, what's the mos= t >> appropriate way for AtomPub? >> >> Thanks, >> c. >> > > --=20 Carlo Sciolla --=3D=3D(A)=3D=3D-- Linux User #372086 My personal blog: http://www.skuro.tk Follow me on twitter: http://twitter.com/skuro Fork me on Github: http://github.com/skuro My LinkedIn profile: http://nl.linkedin.com/in/carlosciolla --=3D=3D(A)=3D=3D-- Product Lead at Backbase - Next Generation Portal Software for Financials & Large Enterprises (http://www.backbase.com) --001a11c2ba4a1c73f904e474ba2d--