/[Apache-SVN]
ViewVC logotype

Revision 1430208


Jump to revision: Previous Next
Author: jleroux
Date: Tue Jan 8 11:05:21 2013 UTC (11 years, 3 months ago)
Changed paths: 2
Log Message:
"Applied fix from trunk for revision: 1068283" 
------------------------------------------------------------------------
r1068283 | jleroux | 2011-02-08 08:47:25 +0100 (mar., 08 févr. 2011) | 8 lines

Fix "Ajax requests prevent externalLoginKey parameters from working correctly" (https://issues.apache.org/jira/browse/OFBIZ-3862) - OFBIZ-3862

Scott reported: To clarify, the problem only occurs if the Ajax call results in a screen being rendered since it is the ScreenRenderer that causes a new key to be generated.

Bilgin suggested: I think a solution would be to skip generating of new external login key for Ajax requests.
Ajax requests can be identified by presence of 'X-Requested-With': 'XMLHttpRequest', http header. It is set by most of the Javascript libraries we use: prototype, jquery.

I coded it
------------------------------------------------------------------------


Changed paths

Path Details
Directoryofbiz/branches/release10.04/ modified , props changed
Directoryofbiz/branches/release10.04/framework/webapp/src/org/ofbiz/webapp/control/LoginWorker.java modified , text changed

infrastructure at apache.org
ViewVC Help
Powered by ViewVC 1.1.26