Planned maintenance is scheduled for the week of June 15th - the exact date and time will be announced soon.
See More Details
Ask Questions and Find Answers
Important:
Ask is now read-only. You can review any existing questions and answers, but not add anything new.
But - don't panic! While ask is no more, we've replaced it with discuss - the new Liferay Discussion Forum! Read more here here or just visit the site here:
discuss.liferay.com
RE: Iframe portlet does not store "form" config parameters
Hello,
I've just tried out the "iframe" portlet with "form" authentication.
When I enter field names and values for user name and password, then save, leave the configuration widget, and re-open it, only field-names are retained, but values are gone. Moreover, when visiting the iframe, it generates a link with http://id:pass@host/path , completely ignoring that I chose form authentication rather than https auth.
Event clicking on Permissions, and then back on Setup is enough to make the values disappear.
Other question: is it possible to use an authentication token to be looked up from an external postgresql database, using the screen name as a key?
Any ideas?
Thanks,
Alain
I've just tried out the "iframe" portlet with "form" authentication.
When I enter field names and values for user name and password, then save, leave the configuration widget, and re-open it, only field-names are retained, but values are gone. Moreover, when visiting the iframe, it generates a link with http://id:pass@host/path , completely ignoring that I chose form authentication rather than https auth.
Event clicking on Permissions, and then back on Setup is enough to make the values disappear.
Other question: is it possible to use an authentication token to be looked up from an external postgresql database, using the screen name as a key?
Any ideas?
Thanks,
Alain
Found out some of what is going on: apparently, GET parameters for "form authentication" are first supposed to be stored into the iframeVariables list. However neither userNameField/userName, nor passwordNameField/password, nor hiddenVariables (for that matter...) are added to this list in init.jsp.
Moreover, the names of the configuration items for userName and password are wrong (they are formUserName and formPassword in the DB, however init.jsp looks for just userName and passWord)
Fixing these issues results in working output as long as the field values are constant. However, variables such as @screen_name@ etc are not substituted.
Could it be that when the archive of this version was build (from http://downloads.sourceforge.net/project/lportal/Liferay%20Portal/6.1.0%20B4/liferay-portal-tomcat-6.1.0-ce-b4-20111110.zip?r=http%3A%2F%2Fwww.liferay.com%2Fdownloads%2Fliferay-portal%2Favailable-releases&ts=1323278081&use_mirror=heanet), mismatched files of 2 different versions were included?
Moreover, the names of the configuration items for userName and password are wrong (they are formUserName and formPassword in the DB, however init.jsp looks for just userName and passWord)
Fixing these issues results in working output as long as the field values are constant. However, variables such as @screen_name@ etc are not substituted.
Could it be that when the archive of this version was build (from http://downloads.sourceforge.net/project/lportal/Liferay%20Portal/6.1.0%20B4/liferay-portal-tomcat-6.1.0-ce-b4-20111110.zip?r=http%3A%2F%2Fwww.liferay.com%2Fdownloads%2Fliferay-portal%2Favailable-releases&ts=1323278081&use_mirror=heanet), mismatched files of 2 different versions were included?
Community
Company
Feedback