Liferay user/role not saving in DB(Mysql)

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

Liferay user/role not saving in DB(Mysql)

ajam0014
Hi,
   I am using Orbeon PE 4.4 with liferay 6.1.2. I have been able to access the liferay user /role  /group information in orbeon form fields. But i am unable to save user information in orbeon_form_data table in columns username & groupname & last_modified_by. I have defined the following properties in "properties-local.xml".. I have been able to create the forms fine and created forms are stored in my db but user name is not storing in orbeon_form_data... Please guide what i am missing???


<property as="xs:string" name="oxf.fr.authentication.method" value="header"/>
<property as="xs:string" name="oxf.fr.authentication.header.username" value="Liferay-Orbeon-User-User-Id"/>
<property as="xs:string" name="oxf.fr.authentication.header.group" value="Liferay-Orbeon-User-Group"/>
<property as="xs:string" name="oxf.fr.authentication.header.roles" value="Liferay-Orbeon-User-Roles"/ >
<property as="xs:string" name="oxf.xforms.forward-submission-headers"
value="Liferay-Orbeon-User-User-Id Liferay-Orbeon-User-Roles"/>
<property as="xs:string" name="oxf.fr.persistence.provider.*.*.*" value="mysql"/>
<property as="xs:string" name="oxf.fr.persistence.mysql.datasource" value="mysql"/>


Thanks
Jim K
Reply | Threaded
Open this post in threaded view
|

Re: Liferay user/role not saving in DB(Mysql)

Erik Bruchez
Administrator
That's because your property names are incorrect. Try the following:

https://gist.github.com/ebruchez/10952607

This works for me with 4.4.1 with both the full portlet and the proxy portlet.

-Erik