I'm really green. I just installed module and I got this errors:
Error received from endpoint:403
Failed to invoke service /api/repository Code:401
Bad XML return
Bad XML return
Unable to communicate with repository.
(Alfresco working good with default settings)
thx for help
| Comment | File | Size | Author |
|---|---|---|---|
| #5 | unencode-password.patch | 941 bytes | jpsalter |
Comments
Comment #1
michaelj commentedIn file 'cmis_alfresco.module' line 102 password is save in base64_encode
'$form_state['values']['cmis_alfresco_password'] = base64_encode($form_state['values']['cmis_alfresco_password']);'
and then in file 'cmis_alfresco.utils.inc' line 31 (code which is responsible for ticket...) there is no base64_decode password (password is exactly got from password variable saved in base64)
'$pass = variable_get('cmis_alfresco_password', '');'
thats why I couldn't connect with repository
Comment #2
jbaldo commentedThanks for your brilliance on this.
I had the same thing going on.
Comment #3
jbaldo commentedComment #4
jpsalter commentedWhat a rookie mistake in the stable version. Let's get this fixed.
Comment #5
jpsalter commentedI found two instances where the password is loaded. Attached is a small patch to unencode them.
Comment #6
madsph commentedThanks for posting this - helped a lot!
Comment #7
ruffie commentedHello,
I'm having this same problem, but I didn't need to apply the patch, because the .inc file was already modified correctly from download (I downloaded today).
I'm still getting the exact same error message though.
This is on a linux box, with all required settings enabled (curl etc).
Typing in the credentials in the alfresco module says its being saved, but I don't see the "saved" password asterisks...
On a window box, all works and there I see the "saved" password asterisks, so does it have something to do with that?
I get no error when saving.
Comment #8
thelwyn commentedHello,
I have the same problem as ruffie above, with a fresh download of the CMIS_Alfresco module.
But in my case, it's working well on my local Drupal install, and I get the error only on a live Drupal install.
The first one can access the Alfresco instance (which is on a live server), the second can not access the same Alfresco instance, with same settings.
I can see a difference between the 2 Drupal install. On the one failing, I have an alert message in report status:
"HTTP request status Fails"
It seems that this is a common problem according to messages on forum. Maybe it's related and need to be fixed to fix the Alfresco problem.
I will get back if I find a solution.
Regards
Thelwyn
Comment #9
thelwyn commentedHum I just noticed that my local instance is running a PHP 5.2.6 (OK) whereas the live server is running PHP 5.1.6 (and not OK) due to RedHat.
Also it seems that in the second case, this:
$ticket = (string) $ticketXml[0];
is not returning anything, while $ticketXml is containing data..
Could the problem be related to SimpleXML needing PHP 5.2 instead of 5.1 ?
Thanks,
Thelwyn
Comment #10
cfuller12 commentedYes, PHP 5.2 is definitely required. I've edited the project page to break out the requirements more clearly and made sure that this is in the list. Sorry for any frustration that caused!
Comment #11
thelwyn commentedGreat :) at least now i'm pretty sure of the problem and can think of fixing it...
Many thanks!