Hi Sameera,

On Thu, May 19, 2011 at 11:30 PM, Sameera Jayasoma <[email protected]> wrote:

> Hi Ranga,
>
> Can we fix the Websphere issue with this fix?
>

Yes.. I have fixed the GS related issues[1] using above mentioned
modification and now in the process of fixing it in MS.

[1] https://wso2.org/jira/browse/CARBON-9813

Thanks.


>
> Thanks
> Sameera.
>
> On Thu, May 19, 2011 at 10:24 AM, Ranga Siriwardena <[email protected]>wrote:
>
>> Hi All,
>>
>> The root caused for this issue is usage of relative URL's for redirecting.
>> These relative URL's works properly with Tomcat and produces wrong URL's
>> with WebSphere.
>>
>> For an example let's assume we have follwing relative URL for the
>> redirection purpose inside the FileUploadExecuter Servlet in a UI Component.
>> *
>> String webContext = (String)
>> request.getAttribute(CarbonConstants.WEB_CONTEXT);
>> response.sendRedirect( "../" + webContext + "/admin/error.jsp" ) ;*
>>
>> So the above URL behaves differently in different web servers. We can
>> solve this issue by using absolute URL's and following is the replacement
>> for the above mentioned example.
>>
>> *response.sendRedirect(  getContextRoot(request) + "/" + webContext +
>> "/admin/error.jsp" ) *;
>>
>> Thank You.
>>
>>
>> On Mon, May 16, 2011 at 10:42 AM, Danushka Menikkumbura <
>> [email protected]> wrote:
>>
>>> This should be a Carbon-core level fix right?.
>>>
>>> Danushka
>>>
>>>
>>> On Mon, May 16, 2011 at 3:16 AM, Ranga Siriwardena <[email protected]>wrote:
>>>
>>>> Hi all,
>>>>
>>>> I was able to reproduce the issue for GS. Will work with Milinda to
>>>> sorted out the issue.
>>>>
>>>> Thanks.
>>>>
>>>> On Thu, May 12, 2011 at 3:38 PM, Krishantha Samaraweera <
>>>> [email protected]> wrote:
>>>>
>>>>> Hi all,
>>>>>
>>>>> The same issue [1] has been raised sometime back and it has been
>>>>> resolved without doing a proper fix.
>>>>>
>>>>> Thanks
>>>>> Krishantha
>>>>>
>>>>> [1] https://wso2.org/jira/browse/CARBON-7371
>>>>>
>>>>>
>>>>> On Thu, May 12, 2011 at 2:21 PM, Nuwan Bandara <[email protected]> wrote:
>>>>>
>>>>>> Surprisingly this does not happen in other app servers (Tomcat etc),
>>>>>> according to pradeep he has seen this when there are relative URLs, But
>>>>>> there are many places in our UI bundles that we do redirection to 
>>>>>> relative
>>>>>> URLs.
>>>>>>
>>>>>> Regards,
>>>>>> /Nuwan
>>>>>>
>>>>>>
>>>>>> On Thu, May 12, 2011 at 2:15 PM, Milinda Pathirage 
>>>>>> <[email protected]>wrote:
>>>>>>
>>>>>>> This could be due to recent changes we done to facilitate custom home
>>>>>>> page URLs. Will look into this.
>>>>>>>
>>>>>>> Thanks
>>>>>>> Milinda
>>>>>>>
>>>>>>> On Thu, May 12, 2011 at 1:56 PM, Chamara Ariyarathne <
>>>>>>> [email protected]> wrote:
>>>>>>>
>>>>>>>> Following are the places which Browser redirect with wrong context
>>>>>>>> root when server deployed in Websphere. I'm sending this for the 
>>>>>>>> request
>>>>>>>> made by Pradeep and Nuwan, and according to the offline chat I had with
>>>>>>>> them, there will be a similar solution for this.
>>>>>>>>
>>>>>>>> *Mashup Server;*
>>>>>>>> Home button
>>>>>>>> Upload Module; Modules -> Add Modules -> Upoload
>>>>>>>> Upload JavaScript services -> Upload
>>>>>>>> *
>>>>>>>> Gadget Server;*
>>>>>>>> Add Gadgets
>>>>>>>>
>>>>>>>>
>>>>>>>> *Chamara Ariyarathne*
>>>>>>>> Software Engineer - QA;
>>>>>>>> WSO2 Inc; http://www.wso2.com/.
>>>>>>>> Mobile; *0772786766*
>>>>>>>>
>>>>>>>>
>>>>>>>> _______________________________________________
>>>>>>>> Carbon-dev mailing list
>>>>>>>> [email protected]
>>>>>>>> http://mail.wso2.org/cgi-bin/mailman/listinfo/carbon-dev
>>>>>>>>
>>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>> --
>>>>>>> Milinda Pathirage
>>>>>>> Technical Lead and Product Manager, Business Process Server - WSO2
>>>>>>> Inc; http://wso2.com
>>>>>>> Blog: http://blog.mpathirage.com
>>>>>>>
>>>>>>> Lean Enterprise Middleware
>>>>>>>
>>>>>>> _______________________________________________
>>>>>>> Carbon-dev mailing list
>>>>>>> [email protected]
>>>>>>> http://mail.wso2.org/cgi-bin/mailman/listinfo/carbon-dev
>>>>>>>
>>>>>>>
>>>>>>
>>>>>>
>>>>>> --
>>>>>> *Thanks & Regards,
>>>>>>
>>>>>> Nuwan Bandara
>>>>>> Senior Software Engineer
>>>>>>
>>>>>> WSO2 Inc. | http://wso2.com
>>>>>> lean . enterprise . middleware
>>>>>>
>>>>>> http://nuwan.bandara.co
>>>>>> *
>>>>>> <http://www.nuwanbando.com/>
>>>>>>
>>>>>> _______________________________________________
>>>>>> Carbon-dev mailing list
>>>>>> [email protected]
>>>>>> http://mail.wso2.org/cgi-bin/mailman/listinfo/carbon-dev
>>>>>>
>>>>>>
>>>>>
>>>>> _______________________________________________
>>>>> Carbon-dev mailing list
>>>>> [email protected]
>>>>> http://mail.wso2.org/cgi-bin/mailman/listinfo/carbon-dev
>>>>>
>>>>>
>>>>
>>>>
>>>> --
>>>> Ranga Siriwardena
>>>> Software Engineer
>>>> WSO2 Inc.
>>>>
>>>> Blog: http://rangasiriwardena.blogspot.com/
>>>>
>>>>
>>>> _______________________________________________
>>>> Carbon-dev mailing list
>>>> [email protected]
>>>> http://mail.wso2.org/cgi-bin/mailman/listinfo/carbon-dev
>>>>
>>>>
>>>
>>> _______________________________________________
>>> Carbon-dev mailing list
>>> [email protected]
>>> http://mail.wso2.org/cgi-bin/mailman/listinfo/carbon-dev
>>>
>>>
>>
>>
>> --
>> Ranga Siriwardena
>> Software Engineer
>> WSO2 Inc.
>>
>> Blog: http://rangasiriwardena.blogspot.com/
>>
>>
>> _______________________________________________
>> Carbon-dev mailing list
>> [email protected]
>> http://mail.wso2.org/cgi-bin/mailman/listinfo/carbon-dev
>>
>>
>
>
> --
> Sameera Jayasoma
> Technical Lead and Product Manager, WSO2 Carbon
>
> WSO2, Inc. (http://wso2.com)
> email: [email protected]
> blog: http://tech.jayasoma.org
>
> Lean . Enterprise . Middleware
>
> _______________________________________________
> Carbon-dev mailing list
> [email protected]
> http://mail.wso2.org/cgi-bin/mailman/listinfo/carbon-dev
>
>


-- 
Ranga Siriwardena
Software Engineer
WSO2 Inc.

Blog: http://rangasiriwardena.blogspot.com/
_______________________________________________
Carbon-dev mailing list
[email protected]
http://mail.wso2.org/cgi-bin/mailman/listinfo/carbon-dev

Reply via email to