chemistry-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "krzysztoffzielinski@gmail.com"<krzysztoffzielin...@gmail.com>
Subject Re: Copy document with version history
Date Wed, 11 Oct 2017 13:00:40 GMT
are there minimum chemistry openscmis client library and alfresco opencmis extesnion versions
to be used with browser binding?
I use versions: 0.6.0 and 0.4 respectively, which may be a root cause of my issues.

On 2017-10-10 12:32, Florent Guillaume <fguillaume@nuxeo.com> wrote: 
> 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 not
> > set!
> > java.lang.IllegalStateException: Repository Id is not set!
> > After getRepositoryInfos() call the repository_id gets overwritten to null.
> >
> > Is it a common problem?
> >
> > Krzysztof
> >
> > On 2017-10-06 16:07, Florian Müller <fmui@apache.org> 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üller <fmui@apache.org>
wrote:
> > > >> You make all three bindings available on the server side. Just add
all
> > > >> 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=markup#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üller <fmui@apache.org>
wrote:
> > > >> >> Hi,
> > > >> >>
> > > >> >> you are right and wrong. ;-)
> > > >> >> The AtomPub binding does not support createDocumentFromSource.
But
> > 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üller
<fmui@apache.org>
> > 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
with
> > 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
> > > >> >> >> >
> > > >> >> >>
> > > >> >>
> > > >>
> > >
> >
> 
> 
> 
> -- 
> [image: Nuxeo]
> 
> Florent Guillaume
> Head of R&D
> 
> Twitter: @efge
> 

Mime
View raw message