Re: Problems obtaining version ids

2017-09-19 Thread krzysztoffzielin...@gmail.com
Hi Mark I am trying to construct document url so that UI can use it. The url is in the format: {serverhost:port/regionalContext}/d/d/versionStore/version2Store/{nodeId}/{fileName} nodeId is meant to be one from version store but the below call to all versions doesnt give this back. Instead i

Re: SPNEGO Authentication Provider impl used with CMIS 1.1.0

2017-09-18 Thread krzysztoffzielin...@gmail.com
Hi Florian Many thanks for the advice. I had an issue with obtaining the ticket, and couple other small bits.Sorting them out let me authenticate. Thanks for support on this one. Krzysztof

Re: Copy document with version history

2017-10-06 Thread krzysztoffzielin...@gmail.com
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 wrote: > You make all

Re: Copy document with version history

2017-10-10 Thread krzysztoffzielin...@gmail.com
r the Chemistry library that implements it is not at > fault here. > > Regards, > Florent > > On Tue, Oct 10, 2017 at 12:48 PM, krzysztoffzielin...@gmail.com < > krzysztoffzielin...@gmail.com> wrote: > > > I have switched to /api/-default-/cmis/versions/1.1/br

Re: Run CMIS Workbench auth problem

2017-10-13 Thread krzysztoffzielin...@gmail.com
Now I am getting messages, but still authentication problem. On 2017-10-13 09:59, "krzysztoffzielin...@gmail.com"<krzysztoffzielin...@gmail.com> wrote: > There is no messages appearing in the Log window, except the situation when i > deliberately cause an erro

Re: Run CMIS Workbench auth problem

2017-10-13 Thread krzysztoffzielin...@gmail.com
There is no messages appearing in the Log window, except the situation when i deliberately cause an error, e.g. change binding to "browser3". Then i see the exception message. But I should still be able to connect, as i run my cmis client application locally that connects without any issues.

Re: Copy document with version history

2017-10-06 Thread krzysztoffzielin...@gmail.com
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 wrote: > Hi, > > you are right and wrong. ;-) > The AtomPub binding does not support

Re: Copy document with version history

2017-10-06 Thread krzysztoffzielin...@gmail.com
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

Re: Copy document with version history

2017-10-11 Thread krzysztoffzielin...@gmail.com
t; 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, krzysztoffzielin...@gmail.com < &g

SPNEGO Authentication Provider impl used with CMIS 1.1.0

2017-09-08 Thread krzysztoffzielin...@gmail.com
I have Alfresco Core repository configured with SPNEGO authentication (Kerberos SSO). I am writing a service that talks to it using Apache Chemistry opencmis library 1.1.0. Cmis library requires me to provide custom authentication provider, but it drops the Authorisation header I am

chemistry-opencmis-client 1.1.0 missing classes

2017-09-11 Thread krzysztoffzielin...@gmail.com
Hello Everyone Has anyone experienced the following missing class problem after upgrade to chemistry-opencmis-client 1.1.0 version? java.lang.NoClassDefFoundError: org/apache/chemistry/opencmis/client/api/TransientCmisObject This error occurs when i iterate through the query results. I can

Re: SPNEGO Authentication Provider impl used with CMIS 1.1.0

2017-09-12 Thread krzysztoffzielin...@gmail.com
Hello Florian Thank you very much for your reply. I really appreciate this. However, I don't have to authenticate the user as this was done by the upstream process. I just need to pass the ticket down the stream (during call from standalone service to alfresco). That is SSO. the call

Re: SPNEGO Authentication Provider impl used with CMIS 1.1.0

2017-09-12 Thread krzysztoffzielin...@gmail.com
To be more specific, the jdk low level class (HttpURLConnection) excludes "Authorization" header for security reasons. So I can't be authorised to access alfresco. So i dont know what does authentication provider is meant to do if JDK removes the header? Kind Regards Krzysztof On 2017-09-11

Problems obtaining version ids

2017-09-12 Thread krzysztoffzielin...@gmail.com
Hello Everyone Anyone able to obtain previous version node id? as opposed to latest version id. opencmis chemistry gives me main document id for every version returned by getAllVersions(). So I cant construct resource location urls to obtain document previous revisions. I will appreciate any

Re: Problems obtaining version ids

2017-09-25 Thread krzysztoffzielin...@gmail.com
Thank you for providing the link to the versions tutorial, Jeff. However, i have to construct url to previous version and pass it to UI, so that user can open directly previous version of the document. My understanding is that i need to construct URL directly to VersionStore to download

Copy document with version history

2017-10-03 Thread krzysztoffzielin...@gmail.com
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

Re: Problems obtaining version ids

2017-10-03 Thread krzysztoffzielin...@gmail.com
and email me the link > we can talk about it further over there. > > In your post, please include why you are unable to get the node ref from > the objects that come back as part of the version history. > > On Mon, Sep 25, 2017 at 8:48 AM, krzysztoffzielin...@gmail.com &

Re: RE: Secondary Type example from opencmis doc throws type unknown error

2017-10-11 Thread krzysztoffzielin...@gmail.com
et to inspect all of their associations. Obviously, this will not scale. > > As you can see, while CMIS does provide a fairly rich set of metadata > capabilities, it does not come close to approaching the flexibility of a > more general persistence technology, so I would encourage you to c

Secondary Type example from opencmis doc throws type unknown error

2017-10-11 Thread krzysztoffzielin...@gmail.com
Hello All, I was wondering how the secondary type work. They are meant to be dynamic, so when you should be able to create them on the fly. however, when i run example from the docs, i get CmisObjectNotFoundException: Type 'custom:classifictaion' is unknown! do you need to predefine the

Re: RE: Secondary Type example from opencmis doc throws type unknown error

2017-10-11 Thread krzysztoffzielin...@gmail.com
<fahad.suh...@pogeyan.com> wrote: > Could you inherit from "cmis:document" as base type and define custom > properties in your custom type? That should give you the flexibility to use > files + custom key-value pairs. > > Thanks, > Fahad > > -Original

Re: Secondary Type example from opencmis doc throws type unknown error

2017-10-11 Thread krzysztoffzielin...@gmail.com
sing it without registering it first, otherwise you will > get type unknown errors, as you have seen. > > Jeff > > On Wed, Oct 11, 2017 at 10:15 AM, krzysztoffzielin...@gmail.com < > krzysztoffzielin...@gmail.com> wrote: > > > Hello All, > > I was wondering how the

Re: Copy document with version history

2017-10-11 Thread krzysztoffzielin...@gmail.com
i had to upgrade to 0.11.0 version and remove org.alfresco.cmis.client.impl.AlfrescoObjectFactoryImpl from session properties. On 2017-10-11 14:00, "krzysztoffzielin...@gmail.com"<krzysztoffzielin...@gmail.com> wrote: > are there minimum chemistry openscmis client library an

Re: RE: RE: Secondary Type example from opencmis doc throws type unknown error

2017-10-11 Thread krzysztoffzielin...@gmail.com
dynamic field data) that you would use to specify a JOIN and > filter from. > > Not many repositories support joins in query yet, so could work around it > with querying twice. > > Thanks, > Fahad > > -Original Message- > From: krzysztoffzielin...@gmail.com

Run CMIS Workbench auth problem

2017-10-12 Thread krzysztoffzielin...@gmail.com
Hello All I am trying run CMIS Workbench and cant authenticate. I use custom auth provider while authenticating with my repository from my CMIS client. I added jar with it to the classpath in the start up script. All the properties are set the same as i set them in my cmis client but when

Re: Checking user access control

2017-10-19 Thread krzysztoffzielin...@gmail.com
Unfortunately, the tool doesnt work for me due to spnego authentication problem :( Thanks anyway On 2017-10-19 16:16, Florian Müller wrote: > Check with the CMIS Workbench. The Object tab shows the allowable > actions. > > > - Florian > > > > Thank you, Florian! > > >

Re: Query latest document

2017-12-16 Thread krzysztoffzielin...@gmail.com
Thanks a lot. So there is no way to limit to only one result returned? On 2017-12-15 04:12, Antony Joseph Kitherian Xavier wrote: > You may also use the following if you want to fetch latest documents by > specific date; > > SELECT * FROM cmis:document WHERE

Query latest document

2017-12-14 Thread krzysztoffzielin...@gmail.com
Hello All Is there a way to query the latest document using CMIS queries? e.g. max(modified) ?? or to specify WHERE clause saying latest date??? Thanks Krzysztof

Re: Performance problems

2017-11-03 Thread krzysztoffzielin...@gmail.com
thanks, Florian. I understand better now how query works. The problem is for each returned result we obtain all versions seperately, which impacts performance. Seems like we cannot go differently about this, as when we set searchAllVersions to true we get an exception:

Re: Performance problems

2017-11-03 Thread krzysztoffzielin...@gmail.com
Yeah. No miracles happen. On 2017-11-03 11:13, Florian Müller wrote: > The exception is returned by the server. If the server doesn't support > it, the client has to work around it. > Sorry, there is no magic on the client side. > > - Florian > > > > thanks, Florian. I

Re: Enable user to change ACLs

2017-11-03 Thread krzysztoffzielin...@gmail.com
That is right. Sorry for posting this here. On 2017-11-03 15:50, Florian Müller wrote: > That's specific to the repository and not a CMIS topic. > > - Florian > > > > Hello All > > > > How do we enable user to modify ACLs (add new, remove existing) ? > > > > Me as an

Enable user to change ACLs

2017-11-03 Thread krzysztoffzielin...@gmail.com
Hello All How do we enable user to modify ACLs (add new, remove existing) ? Me as an admin can make a call to folder.addAcl() and assign new permissions for principals. But how can i enable other selected user to achieve the same thing? Would i need to put a user into a group and then assign

Performance problems

2017-11-02 Thread krzysztoffzielin...@gmail.com
Hello All Do you experience any performance problems while talking to DMS repo using open cmis library? For example, when you make a call session.queryObjects() it fetches the data making additional calls to repository (discoveryService.query()). Any time each of the calls is made, we need

Checking user access control

2017-10-19 Thread krzysztoffzielin...@gmail.com
Hello All Whats the best way to check user's access to documents using cmis library? I can see getAllowableActions() and getAcls() methods on the document, and documentation shows hasAllowableAction(Action.CAN_DELETE_OBJECT), but i cant see the method on the cmsobject. unfortunately, i can

Document checkin fails

2017-12-22 Thread krzysztoffzielin...@gmail.com
Hello All We are getting this exception while checking in multiple versions of the document. It seems like the update is not complete yet and checkin appears too early. Is there a way to confirm that document versions has been updated before we check in? CmisStorageException: Expected 29184