| Summary: | Cannot use EGLDD files that contain a '.' in the name | ||||||||
|---|---|---|---|---|---|---|---|---|---|
| Product: | z_Archived | Reporter: | Brian Svihovec <svihovec> | ||||||
| Component: | EDT | Assignee: | Yun Feng Ma <mayunf> | ||||||
| Status: | CLOSED FIXED | QA Contact: | |||||||
| Severity: | major | ||||||||
| Priority: | P3 | CC: | greer, hjiyong, jvincens | ||||||
| Version: | unspecified | ||||||||
| Target Milestone: | --- | ||||||||
| Hardware: | PC | ||||||||
| OS: | Windows XP | ||||||||
| Whiteboard: | |||||||||
| Attachments: |
|
||||||||
Brian, I think you meant to assign this to the Deployment component..... Created attachment 204787 [details]
Patch
Hi Brian,
The EDT behavior is same with RBD, that means both don't support "." in egldd file name.
The difference between EDT and RBD is that the default egldd file name created by RBD for a project "a.b.c" is "a_b_c.egldd", the egldd file created by EDT is "a.b.c.egldd". I've attached a patch to let EDT has same behavior with RBD.
Another option is supporting "." in egldd file, and replace "." with "_" for the egldd name when do the deployment. But maybe this will confuse users who want to use the egldd file name explicitly in their egl codes.
Let me know if you have any concerns about the current fix. Thanks.
Yun Feng, I talked about this issue with Joe, and he agrees that the EGLDD file name should be passed through an 'aliaser', since it's a file name AND a method name (at least in JS). I think that the attached patch is valid for .7, and possibly beyond. Please commit your patch and resolve this defect. For future reference, I believe the DD file should not need to be aliased when it is created, and it should be aliased when it is 'deployed', according to the rules specified in our JavaAliaser and our JavaScriptAliaser. We can deal with this issue in the future if it comes up. Thanks, Brian, for the review. The change is in, now resolve this bug. this was fixed in 0.7 GA |
Created attachment 202997 [details] Test EGL Files. Create a new EGL Client project named "a.b.c". In the 'client' package, add the two attached egl files. Create a new Tomcat project named TCP1 (I used Tomcat 6.0) and set it as the target in the a.b.c.egldd file. Add a new Rest binding in the a.b.c.egldd file with the name MortgageServices Deploy the .egldd file. Run the test.html file in TCP1 on a Tomcat 6.0 server using Firebug and you will get an error in the console stating: "egl.eze$$BindFile_a is undefined" It looks like ServiceBinder::loadBindFile is having an issue with eglddNames that have a '.' in them on line - var bindFile = egl[bindFileVar]();