Type: Bug Fix
Affects Version/s: None
Fix Version/s: 2.1.3
Security Level: Public (Public: Anyone can view)
KAI Review Status:Not Required
KTI Review Status:Not Required
After our recent Rice upgrade that involved adding easyXDM to our portal, we started noticing strange issues while using Firefox and Tomcat. While navigating pages, we would see a JS alert console that read "server error". We also noticed that some pages would be reloaded twice resulting in some documents being submitted to workflow twice. While this strange behavior was not observed in our environments, we were able to successfully reproduce this on our local envs running Tomcat and Firefox. On researching this issue further I noticed the following message in our error console
I tried to fix this by adding
to the head tag of page.tag and that fixed this issue. So the page.tag looks like
This fixed the issue and we do not see the reloads or the server error messages anymore. Not sure why this problem manifests only while running Tomcat and Firefox though. Tomcat and Chrome seems fine. Could Rice investigate this issue and incorporate this change whereever needed? It is possible that this fix needs to go into other tag files also. The above situation can be recreated while opening the Proposal Log document or the PD document.
I also see other error messages in the console that seem to be because of easyXDM like the following:
[20:27:52.259] A form was submitted in the windows-1252 encoding which cannot encode all Unicode characters, so user input may get corrupted. To avoid this problem, the page should be changed so that the form is submitted in the UTF-8 encoding either by changing the encoding of the page itself to UTF-8 or by specifying accept-charset=utf-8 on the form element. @ http://127.0.0.1:8080/kc-dev/portal.do?selectedTab=portalCentralAdminBody
I think the above is also a case of missing utf-8 encoding.
opening IP for edit
[21:28:44.392] Error: Permission denied to access property 'scrollTo' @ http://127.0.0.1:8080/kc-dev/kr/scripts/core.js:183
[21:28:44.393] Error: Permission denied to access property 'document' @ http://127.0.0.1:8090/kr-dev/rice-portal/scripts/easyXDM/resize_intermediate.html?url=%2Fkr-dev%2Fkew%2FDocumentSearch.do%3FdocFormKey%3D88888888%26returnLocation%3Dhttp%3A%2F%2F127.0.0.1%3A8080%2Fkc-dev%2Fportal.do%26hideReturnLink%3Dtrue&xdm_e=http%3A%2F%2F127.0.0.1%3A8080&xdm_c=default8750&xdm_p=1:38
while these do not seem to have any adverse effect on the page, they should probably be fixed.