Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id 94E7E200D16 for ; Tue, 10 Oct 2017 13:33:16 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id 93565160BE0; Tue, 10 Oct 2017 11:33:16 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id A867D1609E5 for ; Tue, 10 Oct 2017 13:33:15 +0200 (CEST) Received: (qmail 73793 invoked by uid 500); 10 Oct 2017 11:33:14 -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 73774 invoked by uid 99); 10 Oct 2017 11:33:14 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd2-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 10 Oct 2017 11:33:14 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd2-us-west.apache.org (ASF Mail Server at spamd2-us-west.apache.org) with ESMTP id B76C91A19B2 for ; Tue, 10 Oct 2017 11:33:13 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd2-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 2.479 X-Spam-Level: ** X-Spam-Status: No, score=2.479 tagged_above=-999 required=6.31 tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, HTML_MESSAGE=2, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H3=-0.01, RCVD_IN_MSPIKE_WL=-0.01, RCVD_IN_SORBS_SPAM=0.5, SPF_PASS=-0.001] autolearn=disabled Authentication-Results: spamd2-us-west.apache.org (amavisd-new); dkim=pass (2048-bit key) header.d=nuxeo-com.20150623.gappssmtp.com Received: from mx1-lw-eu.apache.org ([10.40.0.8]) by localhost (spamd2-us-west.apache.org [10.40.0.9]) (amavisd-new, port 10024) with ESMTP id cpXLnNytk2ch for ; Tue, 10 Oct 2017 11:33:10 +0000 (UTC) Received: from mail-lf0-f52.google.com (mail-lf0-f52.google.com [209.85.215.52]) by mx1-lw-eu.apache.org (ASF Mail Server at mx1-lw-eu.apache.org) with ESMTPS id 447FE5F39D for ; Tue, 10 Oct 2017 11:33:10 +0000 (UTC) Received: by mail-lf0-f52.google.com with SMTP id n69so2798685lfn.2 for ; Tue, 10 Oct 2017 04:33:10 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nuxeo-com.20150623.gappssmtp.com; s=20150623; h=mime-version:in-reply-to:references:from:date:message-id:subject:to; bh=/ygUhyuj3ZJa3sqNXPqAurFgx2fISLYXgISzCaptYFo=; b=MnA+ZjA5s2KI5E+mtOLkTwYEWitU89Eg4UqB5Nl41rUOeDR9D3Oba3n7keUHOM+wim nZ1NCy23eMmqbJOKUPBMq0dXbET/C1DhrS1nw16u5YxQts201+2ehyGgRx1HM203nnNG aVnXhEKl2MiElKBF1SBJyAXpCLaxGA8DQbXRWP7G1uyBLG/frdfayF9d3hUIi7r8I4Hs iE0iOMmbZCn5XUZkRJfDBQGTrnKZnfIynL43cpRlnr87zs59Y2vv5KfSsbgl0mq1xRXl bnLw0XbGy3aDNoW+P4BZQklM9JbOxPefW+XMDy0vPPsHwNibSKIXCv5iRSsm7AvKaTV5 A2vw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to; bh=/ygUhyuj3ZJa3sqNXPqAurFgx2fISLYXgISzCaptYFo=; b=l1PITOCzMXTV1eSof7MEXtWlM/CTz+d97AWjRifx7S3bfuo6ELCUq7TYqo/HYmyPNt 6brmM2nInYZj0mrXtiV5ZIXr8Zc1D+0EqHORCnprwlc//+yeDLJGe8sdmRO4kyqRPsPk bzG1Keea9PS5LZ/3RppxbNp10W9I2AZtfbkY5kG2DrGTkEgm7wDhN+JWSPmoW1+6MmJB BDHo9/ldGkvhu0l7oohvPsO4aqJ3o6GlmopulyssKuotiNAGDIdsXn89/jncHckW7Uf+ TdNdP7SIx+itH00Rl7Nq9KYFRcVRAekvQAclUuwxMEBdiIw+OxqZbgyBu2IvNijF8LQf gPJA== X-Gm-Message-State: AMCzsaUBIGYKwfI+etsaV7QOOv6PPzgtCBv6+q53pJJFyTxiLXr4yw8h ui8sTSxXFBkFJ8L7LaUcd8XR821/1ZFwA34pCQwxSYiy X-Google-Smtp-Source: AOwi7QCu0ZB0K8j7+HcHXy7JV79Xq549GIdnfm8GwjQklODnBl9Q5O6dHdivn16Xc/w9Vr2SmVAzaln5iX9hwMficn4= X-Received: by 10.25.228.29 with SMTP id b29mr5171864lfh.107.1507635183647; Tue, 10 Oct 2017 04:33:03 -0700 (PDT) MIME-Version: 1.0 Received: by 10.25.38.10 with HTTP; Tue, 10 Oct 2017 04:32:43 -0700 (PDT) In-Reply-To: References: <77e83160dd0d459a7e5a9e6d17899f75@apache.org> <8c7d994d-43e6-02be-903e-bd804283f612@apache.org> <3fa502b83da3a76e57b2436576e60fba@gotux.de> From: Florent Guillaume Date: Tue, 10 Oct 2017 13:32:43 +0200 Message-ID: Subject: Re: Copy document with version history To: dev@chemistry.apache.org Content-Type: multipart/alternative; boundary="94eb2c0e6114928fea055b2fab9d" archived-at: Tue, 10 Oct 2017 11:33:16 -0000 --94eb2c0e6114928fea055b2fab9d Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Please consult your repository vendor or a forum specific to your repository vendor. The CMIS protocol or the Chemistry library that implements it is not at fault here. Regards, Florent On Tue, Oct 10, 2017 at 12:48 PM, krzysztoffzielinski@gmail.com < krzysztoffzielinski@gmail.com> wrote: > I have switched to /api/-default-/cmis/versions/1.1/browser > setting: > SessionParameter.BROWSER_URL, browserUrl > SessionParameter.BINDING_TYPE, BindingType.BROWSER.value() > SessionParameter.REPOSITORY_ID, "73b4bb57-7d05-4500-b24a-592c339017b5 > > but still getting the Repository not found exception: Repository Id is no= t > set! > java.lang.IllegalStateException: Repository Id is not set! > After getRepositoryInfos() call the repository_id gets overwritten to nul= l. > > Is it a common problem? > > Krzysztof > > On 2017-10-06 16:07, Florian M=C3=BCller wrote: > > Yes, yes, and yes. > > > > See here how to create a session with the browser binding: > > https://chemistry.apache.org/docs/cmis-samples/samples/ > create-session/index.html#browser-binding > > > > - Florian > > > > > > > I have only one client (backend service). Are you saying i can make > > > REST calls to Alfresco DMS using browser binding? Can i use it from > > > Java? > > > Has browser binding more features implemented than atompub? > > > > > > Krzysztof > > > > > > On 2017/10/06 12:06:39, Florian M=C3=83=C2=BCller w= rote: > > >> You make all three bindings available on the server side. Just add a= ll > > >> OpenCMIS server servlets to your web.xml. (See > > >> https://svn.apache.org/viewvc/chemistry/opencmis/trunk/ > chemistry-opencmis-server/chemistry-opencmis-server- > bindings-war/src/main/webapp/WEB-INF/web.xml?view=3Dmarkup#l199) > > >> > > >> You should definitely implement createDocumentFromSource for clients > > >> that don't use AtomPub binding. > > >> > > >> > > >> - Florian > > >> > > >> > > >> > Hello > > >> > > > >> > I use Open CMiS on server side, so can use browser binding > > >> > unfortunately. AtomPub is my only option, correct me if i am wrong= , > > >> > please. > > >> > > > >> > Krzysztof > > >> > > > >> > On 2017-10-06 11:42, Florian M=C3=83=C6=92=C3=82=C2=BCller wrote: > > >> >> Hi, > > >> >> > > >> >> you are right and wrong. ;-) > > >> >> The AtomPub binding does not support createDocumentFromSource. Bu= t > the > > >> >> OpenCMIS high-level API handles that for you. You should only see > an > > >> >> exception if you are using the low-level API. > > >> >> Apart from this, use the Browser binding whenever you can. It's > > >> >> faster. > > >> >> > > >> >> > > >> >> - Florian > > >> >> > > >> >> > > >> >> > Many Thanks, Florian. > > >> >> > > > >> >> > I can see that below mentioned method throws exception with the > > >> >> > message: > > >> >> > "createDocumentFromSource is not supported by the AtomPub > binding!" > > >> >> > > > >> >> > It seems like i need to read and write document to copy it. > > >> >> > > > >> >> > Thanks > > >> >> > Krzysztof > > >> >> > > > >> >> > On 2017-10-04 14:41, Florian M=C3=83=C6=92=C3=86=E2=80=99=C3=83= =E2=80=9A=C3=82=C2=BCller > wrote: > > >> >> >> Hi, > > >> >> >> > > >> >> >> there is no copy operation in CMIS. There is only a > > >> >> >> createDocumentFromSource operation, which creates a new > document with > > >> >> >> the content of an existing document. > > >> >> >> The copy method in OpenCMIS calls createDocumentFromSource wit= h > the > > >> >> >> properties of the source document. > > >> >> >> > > >> >> >> So, neither OpenCMIS nor any other CMIS library can copy a > document > > >> >> >> with > > >> >> >> its version history. > > >> >> >> > > >> >> >> > > >> >> >> - Florian > > >> >> >> > > >> >> >> > > >> >> >> > Hello All > > >> >> >> > > > >> >> >> > I am using OpenCMIS 0.6.0 that doesnt seem to be copying > version history. > > >> >> >> > > > >> >> >> > Is there a way to copy version history with OpenCMIS? > > >> >> >> > > > >> >> >> > Thanks > > >> >> >> > Krzysztof > > >> >> >> > > > >> >> >> > > >> >> > > >> > > > --=20 [image: Nuxeo] Florent Guillaume Head of R&D Twitter: @efge --94eb2c0e6114928fea055b2fab9d--