chemistry-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jeff Potts <jeffpott...@gmail.com>
Subject Re: Copy document with version history
Date Tue, 10 Oct 2017 14:05:07 GMT
You don't need to set the repository ID. Alfresco has only one repository.

If you still have trouble, create another topic in the Alfresco Community
and send me the link.

Jeff

On Tue, Oct 10, 2017 at 5:48 AM, 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
> > >> >> >> >
> > >> >> >>
> > >> >>
> > >>
> >
>

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message