| Summary: | Rich UI Console View is not disabled in deployed applications | ||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| Product: | z_Archived | Reporter: | Thomas Wu <wxwu> | ||||||||
| Component: | EDT | Assignee: | Yun Feng Ma <mayunf> | ||||||||
| Status: | CLOSED FIXED | QA Contact: | |||||||||
| Severity: | major | ||||||||||
| Priority: | P3 | CC: | chenzhh, hjiyong, mayunf, smythew, svihovec, xiaobinc | ||||||||
| Version: | unspecified | ||||||||||
| Target Milestone: | --- | ||||||||||
| Hardware: | PC | ||||||||||
| OS: | Windows XP | ||||||||||
| Whiteboard: | |||||||||||
| Attachments: |
|
||||||||||
|
Description
Thomas Wu
Created attachment 206914 [details]
error page
This is a EVServer problem, whatever you set in src the ev server will ignore string before the first "/". But those will be applied after deployed. Why do you include WebContent in src value? I believe the src is supposed to take a relative or absolute URL, in either of them, there should not be WebContent unless you have a WebContent in you WebContent directory. I have discussed with Xiaobin about this. Yes, I should not include "WebContent/" here. But just like Xiaobin's comments, we found whatever we input before the first "/", such as "XXX/" there is no error reported in preview. The defect title should be changed here. I'm not sure I understand the problem. Can you paste the code? There is the same issue for Image widget. Please refer to screenshot error_src_location.jpg. The image is located in "WebContent/1/cerfification.bmp"; but src is set as "uuu/d/1/certification.bmp" instead. The preview page could display the image successfully within the error location setting. Created attachment 206944 [details]
error_src_location
So, in RBD, if a URl is invalid for an HTML widget, no error message is displayed, but in EDT an error message is displayed? It would be interesting to know why an error message is displayed in RBD and not EDT, but the HTML and Image widgets should not be changed to support, or adjust, invalid URLs. Yes, Brian. Just like your comments, for invalid src path inputing. In deployment mode, EDT report the folloiwng errors. [CRRUI1071E] No exception handler found for service call. Add an exception handler for service call. An exception occurred while communicating with the service. URL:http://localhost:8080/myTest/a/ddd/1/myTest.html [CRRUI1071E] No exception handler found for service call. Add an exception handler for service call. [CRRUI3660E] Exception occurred, could not handle response for 'http://localhost:8080/myTest/a/ddd/1/myTest.html', reason: '[CRRUI1071E] No exception handler found for service call. Add an exception handler for service call.' [CRRUI2095E] Could not find the EGL function calls leading to this error But in RBD, there is no error message displaying. In preview mode, both RBD and EDT could display and redirect to correct src path. Thanks for the additional details. If you try to use the HTML widget in Preview mode with RBD and EDT, what message is displayed when the source location cannot be reached? I would expect it to be the same message we are seeing in the deployed version for EDT. The message being displayed in EDT for the deployed application is valid, since the call is failing and there is no error handler. I am guessing RBD is trying to report the same message, but the console view (egl.println) is disabled for a deployed application in RBD. It seems that the console view is not being disabled for EDT, which is something we should fix for the .7 release. In a future release, we could also add an error handler to the HTML widget's call statement, but I'm not sure if we would be able to predict the proper behavior in all cases. Maybe we could allow the user to register a delegate function to be invoked when the HTML invocation fails. Please open an enhancement to look at this after .7 and mark it as 'future'. To be clear, the only thing we should fix for this defect is to disable the console view in deployed applications. We can add features to the HTML widget in the future. Hi, Brian. To answer your question, the following message is displayed in HTML wighet when the source location cannot be reached in Preview mode with RBD and EDT.
document.write("Could not open/testEGLWidget/a/add/1/my.html");
In addition, I have created another enhancement bug 363885 to track what you mentioned to do in future.
Created attachment 207074 [details]
Error message displaying in preview mode
Deferring to Future. If you have a fix, you can still attach it as a patch for review, otherwise we will look at this later. Fixed, error messages are not printed in deployed application. Thanks. VE is not working for me now. Seemed to be cause by the fix for this bug, two problems:
1. document.head is not valid when I run VE with IE, probably only valid for html5. I changed it to below code to make it work for me, but there might be existing better ways to do it in our runtime
var head = document.head || document.getElementsByTagName('head')[0];
var objCSS = head.appendChild(document.createElement('link'));
2. console.error(msg) also does not work for me (with IE). I googled it and seems this only work for FireFox.
(In reply to comment #14)
> Fixed, error messages are not printed in deployed application. Thanks.
Changing to Major as this needs to be fixed. Updated the patch. I've tested it with FF, IE, Chrome. Thanks a lot. Verified in build 20120117 |