Details
-
Type:
Bug
-
Status: Closed
-
Priority:
Major
-
Resolution: Fixed
-
Affects Version/s: 1.7.2
-
Component/s: Bridge
-
Labels:None
-
Environment:Just-ice with facelets
-
ICEsoft Forum Reference:
Description
When the URI specified for the redirection event starts with '/' the AppContext is not beign prepended to the url, making the redirection url relative to the application server and not to the application it self.
Example:
connectionLostRedirectURI = '/login.iface'
Current url when the event fires: http://server/AppContext/path1/path2/index.iface
Redirected url: http://server/login.iface
The redirected url should be: http://server/AppContext/login.iface
To solve this problem I have made some changes to the file status.js to correctly prepend the AppContext if the url given starts with a '/'. You can find this file and the icefaces-d2d.js with this change included(generated by the ant build of the bridge subproject) in forum thread http://www.icefaces.org/JForum/posts/list/0/10297.page
Those changes where made over the source release 1.7.2 available to download from the home site.
Example:
connectionLostRedirectURI = '/login.iface'
Current url when the event fires: http://server/AppContext/path1/path2/index.iface
Redirected url: http://server/login.iface
The redirected url should be: http://server/AppContext/login.iface
To solve this problem I have made some changes to the file status.js to correctly prepend the AppContext if the url given starts with a '/'. You can find this file and the icefaces-d2d.js with this change included(generated by the ant build of the bridge subproject) in forum thread http://www.icefaces.org/JForum/posts/list/0/10297.page
Those changes where made over the source release 1.7.2 available to download from the home site.
It should be coming out in 1.8.2 which is currently scheduled for early September (I've updated the case to reflect this). It's been applied to the trunk so it's available from the public repository so you can always check it out yourself, build it, and confirm that it fixes your issue. Might be worthwhile so that we can make adjustments before 1.8.2 if necessary.