cancel
Showing results for 
Search instead for 
Did you mean: 

'WORDPRESS' blog integration with alfresco + CAS problem

umeshcse3
Champ in-the-making
Champ in-the-making
Hi,
I am using Alfresco 2.1 and its blog integration module 2.1.
I have my alfresco with CAS authentication.
I am able to publish alfresco document to 'wordpress ' blog which is installed on the same machine.

But when I have provided CAS authentication to 'WORDPRESS' then while publishing document from alfresco to wordpress I am getting an following error :

———————————————————————————————————————————————————————————————
javax.faces.el.EvaluationException: Exception while invoking expression #{org_alfresco_module_blogIntegration_BlogActionListener.executeScript}
caused by:
org.alfresco.module.blogIntegration.BlogIntegrationRuntimeException: Failed to execute blog action 'metaWeblog.editPost' @ url 'http://<SERVER_NAME>/wordpress/xmlrpc.php'
caused by:
marquee.xmlrpc.XmlRpcException: The XML-RPC response could not be parsed: org.xml.sax.SAXParseException: The element type "address" must be terminated by the matching end-tag "</address>".
———————————————————————————————————————————————————————————————

Please help ASAP.
Thanks in Advance.
2 REPLIES 2

umeshcse3
Champ in-the-making
Champ in-the-making
He He He……….

I have solved the problem.

Actually the problem was when I was posting blog using alfresco ,Alfresco made xmlrpc request to 'http://<SERVER_NAME>/wordpress/xmlrpc.php' which in turn was redirected to CAS as it WORDPRESS was CAS authenticated .
Now,
I have bypassed CAS for any XMLRPC request to 'http://<SERVER_NAME>/wordpress/xmlrpc.php'
and now its working.

umeshcse3
Champ in-the-making
Champ in-the-making
Hi,
I would like to give 1 more point here :

I have been using wordpress 2.7.1 and phpCAS client version 1.0 ,after that I am trying to publish blog from alfresco to wordpress.
To publish blog from alfresco to wordpress after implemting CAS to wordpress,you will require a password ,
now this password is the password that cas plugin of word press generates ( a random value) for users.

So to change as per your requirement :
change
———————————————————————————–
$WORDPRESS_HOME/wp-content/plugins/wpcas/wpcas.php
Modify the random password generated to some definite value (change line 133)
   
   $random_password = ' ';

———————————————————————————–