You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@chemistry.apache.org by David Gilsanz <dg...@csd.com.es> on 2012/06/28 12:38:31 UTC

apache chemistry

hi,

i am trying to connect with cmis (apache chemistry 0.6) to alfresco 3.4d using alfresco ticket

tried atompub/webservice with de following combinations, no one works

user = null
password = "TICKET_0e48b14a48174aea86483a8c8bb1ad56fe00578a"

user = "admin"
password = "TICKET_0e48b14a48174aea86483a8c8bb1ad56fe00578a"

user = "ROLE_TICKET"
password = "TICKET_0e48b14a48174aea86483a8c8bb1ad56fe00578a"

has anyone tried this?? is possible??

Thanks.

Re: apache chemistry

Posted by Nick Burch <ni...@alfresco.com>.
On 28/06/12 11:38, David Gilsanz wrote:
> i am trying to connect with cmis (apache chemistry 0.6) to alfresco 3.4d using alfresco ticket

As a general rule, I'd suggest you try with Alfresco 4.0, and use the 
new CMIS binding that's based on OpenCMIS, rather than the older 
webscript one.

> user = "ROLE_TICKET"
> password = "TICKET_0e48b14a48174aea86483a8c8bb1ad56fe00578a"

This is the form that ought to work, providing that you're hitting the 
correct endpoint. Your best bet is to ask on the Alfresco forums for 
advice, hopefully someone there will be able to advice you, especially 
with regards to older versions.

(I can confirm that a username of ROLE_TICKET, password of the Ticket 
with the TICKET_ prefix works just fine with Alfresco 4.0.2 and the new 
AtomPub endpoint, but I've not personally tried it with older versions)

Nick


Re: apache chemistry

Posted by Joost Horward <jo...@open-t.nl>.
Hi David,

That should be posisble by using:
/alfresco/wcservice/cmis
as your endpoint rather than
/alfresco/service/cmis
The first one uses Alfresco' authentication chain. The second one always 
uses basic authentication.
We use this with external authentication (remote user in http header)

Kind regards,

Joost



On 06/28/2012 12:38 PM, David Gilsanz wrote:
> hi,
>
> i am trying to connect with cmis (apache chemistry 0.6) to alfresco 3.4d using alfresco ticket
>
> tried atompub/webservice with de following combinations, no one works
>
> user = null
> password = "TICKET_0e48b14a48174aea86483a8c8bb1ad56fe00578a"
>
> user = "admin"
> password = "TICKET_0e48b14a48174aea86483a8c8bb1ad56fe00578a"
>
> user = "ROLE_TICKET"
> password = "TICKET_0e48b14a48174aea86483a8c8bb1ad56fe00578a"
>
> has anyone tried this?? is possible??
>
> Thanks.
>

RE: apache chemistry

Posted by David Gilsanz <dg...@csd.com.es>.
i did it this morning, i am asking every where

Excuse me.

-----Mensaje original-----
De: Florian Müller [mailto:fmui@apache.org] 
Enviado el: jueves, 28 de junio de 2012 12:49
Para: dev@chemistry.apache.org
CC: dgilsanz@csd.com.e
Asunto: RE: apache chemistry

 Hi David,

 This is a very Alfresco specific question. Please ask your question 
 there.


 Thanks,

 Florian


> basically i am trying to do this, with apache chemistry:
>
> Option 1: Pass a ticket
> curl "http://localhost:8080/alfresco/s/api/login?u=admin&pw=admin"
>
> Returns this:
> <?xml version="1.0" encoding="UTF-8"?>
> <ticket>TICKET_44740de7943f7bab5be61f787c62660ff3008299</ticket>
>
>
> curl
> 
> "http://localhost:8080/alfresco/s/cmis?alf_ticket=TICKET_44740de7943f7b
> ab5be61f787c62660ff3008299"
>
> from http://ecmarchitect.com
>
>
> -----Mensaje original-----
> De: David Gilsanz [mailto:dgilsanz@csd.com.es]
> Enviado el: jueves, 28 de junio de 2012 12:39
> Para: dev@chemistry.apache.org
> Asunto: apache chemistry
>
> hi,
>
> i am trying to connect with cmis (apache chemistry 0.6) to alfresco
> 3.4d using alfresco ticket
>
> tried atompub/webservice with de following combinations, no one works
>
> user = null
> password = "TICKET_0e48b14a48174aea86483a8c8bb1ad56fe00578a"
>
> user = "admin"
> password = "TICKET_0e48b14a48174aea86483a8c8bb1ad56fe00578a"
>
> user = "ROLE_TICKET"
> password = "TICKET_0e48b14a48174aea86483a8c8bb1ad56fe00578a"
>
> has anyone tried this?? is possible??
>
> Thanks.


RE: apache chemistry

Posted by Florian Müller <fm...@apache.org>.
 Hi David,

 This is a very Alfresco specific question. Please ask your question 
 there.


 Thanks,

 Florian


> basically i am trying to do this, with apache chemistry:
>
> Option 1: Pass a ticket
> curl "http://localhost:8080/alfresco/s/api/login?u=admin&pw=admin"
>
> Returns this:
> <?xml version="1.0" encoding="UTF-8"?>
> <ticket>TICKET_44740de7943f7bab5be61f787c62660ff3008299</ticket>
>
>
> curl
> 
> "http://localhost:8080/alfresco/s/cmis?alf_ticket=TICKET_44740de7943f7b
> ab5be61f787c62660ff3008299"
>
> from http://ecmarchitect.com
>
>
> -----Mensaje original-----
> De: David Gilsanz [mailto:dgilsanz@csd.com.es]
> Enviado el: jueves, 28 de junio de 2012 12:39
> Para: dev@chemistry.apache.org
> Asunto: apache chemistry
>
> hi,
>
> i am trying to connect with cmis (apache chemistry 0.6) to alfresco
> 3.4d using alfresco ticket
>
> tried atompub/webservice with de following combinations, no one works
>
> user = null
> password = "TICKET_0e48b14a48174aea86483a8c8bb1ad56fe00578a"
>
> user = "admin"
> password = "TICKET_0e48b14a48174aea86483a8c8bb1ad56fe00578a"
>
> user = "ROLE_TICKET"
> password = "TICKET_0e48b14a48174aea86483a8c8bb1ad56fe00578a"
>
> has anyone tried this?? is possible??
>
> Thanks.


RE: apache chemistry

Posted by David Gilsanz <dg...@csd.com.es>.
basically i am trying to do this, with apache chemistry:

Option 1: Pass a ticket
curl "http://localhost:8080/alfresco/s/api/login?u=admin&pw=admin"

Returns this:
<?xml version="1.0" encoding="UTF-8"?>
<ticket>TICKET_44740de7943f7bab5be61f787c62660ff3008299</ticket>


curl
"http://localhost:8080/alfresco/s/cmis?alf_ticket=TICKET_44740de7943f7b
ab5be61f787c62660ff3008299"

from http://ecmarchitect.com


-----Mensaje original-----
De: David Gilsanz [mailto:dgilsanz@csd.com.es] 
Enviado el: jueves, 28 de junio de 2012 12:39
Para: dev@chemistry.apache.org
Asunto: apache chemistry

hi,

i am trying to connect with cmis (apache chemistry 0.6) to alfresco 3.4d using alfresco ticket

tried atompub/webservice with de following combinations, no one works

user = null
password = "TICKET_0e48b14a48174aea86483a8c8bb1ad56fe00578a"

user = "admin"
password = "TICKET_0e48b14a48174aea86483a8c8bb1ad56fe00578a"

user = "ROLE_TICKET"
password = "TICKET_0e48b14a48174aea86483a8c8bb1ad56fe00578a"

has anyone tried this?? is possible??

Thanks.