[
https://jira.jboss.org/jira/browse/RF-4187?page=com.atlassian.jira.plugin...
]
Damien Gouyette commented on RF-4187:
-------------------------------------
Replace in FileUploadRendererBase::doDecode
Map<String, MultipartRequest> map = (Map<String, MultipartRequest>)
externalContext.getSessionMap()
.get(FileUploadConstants.REQUESTS_SESSIONS_BEAN_NAME);
By
Map<String, MultipartRequest> map =
((javax.servlet.http.HttpServletRequest)externalContext.getRequest()).getSession().getAttribute(FileUploadConstants.REQUESTS_SESSIONS_BEAN_NAME)
It's work for me with exoplatform + jboss 4.3 EAP + richfaces 3.3.0 + portletBridge
Beta 6
rich:fileUpload to support portal environment
---------------------------------------------
Key: RF-4187
URL:
https://jira.jboss.org/jira/browse/RF-4187
Project: RichFaces
Issue Type: Bug
Affects Versions: 3.2.1
Environment: JBoss Portal 2.6.5, JBoss AS 4.2.2, PortletBridge 1.0.0.B3, Seam
2.0.2.SP1, JSF RI 1.2, Facelets 1.1.14
Reporter: egor kolesnikov
Assignee: Nick Belaevski
Fix For: 3.3.1
Attachments: testportletbridge.war.tar.gz
FileUpload.js' submitForm() method rewrites form action url, violating the JSR-168
specification.
parentForm.action = this.actionUrl + (/\?/.test(this.actionUrl) ?
'&_richfaces_upload_uid' : '?_richfaces_upload_uid') + '=' +
encodeURI(entry.uid) + "&id=" + this.id +
"&_richfaces_upload_file_indicator=true";
Evaluation of this expression leads to Servlet URL, not Portlet Action URL which
expected.
Possible solution would be initializing "this.actionUrl" to
"parentForm.action" value.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
https://jira.jboss.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira