Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Remote Application Platform (RAP) » Wrong context path since 3.0 or 3.1
Wrong context path since 3.0 or 3.1 [message #1730514] Tue, 26 April 2016 13:17 Go to next message
Ingo Meyer is currently offline Ingo MeyerFriend
Messages: 162
Registered: July 2009
Senior Member
Hi guys,

the ServiceManagerImpl.getServiceHandlerUrl() ist returning the wrong context path.
We have a proxy rewrite and the hole path to our entry point is cutted.
Before/correct (2.3):
http://ourdomain.org/path1/path2/entrypoint?...

Now/wrong (3.1):
http://ourdomain.org/entrypoint?...


This will destroy the functionallity of all using
RWT.getServiceManager().getServiceHandlerUrl( SERVICE_ID )


So upload/download and so on...

I don't know why and when this is done wrong in the RAP code base, but with 2.3 it was working...

My presentation is tomorrow, so any help is highly appreciated!

~Ingo

[Updated on: Tue, 26 April 2016 13:18]

Report message to a moderator

Re: Wrong context path since 3.0 or 3.1 [message #1730529 is a reply to message #1730514] Tue, 26 April 2016 13:59 Go to previous messageGo to next message
Ivan Furnadjiev is currently offline Ivan FurnadjievFriend
Messages: 2426
Registered: July 2009
Location: Sofia, Bulgaria
Senior Member
Hi Ingo,
sorry for the troubles. This issue has been reported several days ago
(see FileDialog doesn't work behind proxy topic). There is a bug opened
about it:
492175: FileDialog doesn't work behind proxy
https://bugs.eclipse.org/bugs/show_bug.cgi?id=492175
I will investigate where is the problem in the next days... in RAP code
or in the platform code. Can't help you much right now.
Regards,
Ivan

--
Ivan Furnadjiev

Twitter: @EclipseRAP
Blog: http://eclipsesource.com/blogs/

Professional services for RAP and RCP?
http://eclipsesource.com/services/rap/
Re: Wrong context path since 3.0 or 3.1 [message #1730531 is a reply to message #1730529] Tue, 26 April 2016 14:11 Go to previous messageGo to next message
Ingo Meyer is currently offline Ingo MeyerFriend
Messages: 162
Registered: July 2009
Senior Member
Hi,

thanks for your fast answer.
The bug 492175 seems to be the same issue.
I will now debug to see if I can trace down the error and I I find out something I will directly report to bugzilla.

Thanks for your help and the great project
~Ingo
Re: Wrong context path since 3.0 or 3.1 [message #1730535 is a reply to message #1730531] Tue, 26 April 2016 14:28 Go to previous messageGo to next message
Ivan Furnadjiev is currently offline Ivan FurnadjievFriend
Messages: 2426
Registered: July 2009
Location: Sofia, Bulgaria
Senior Member
Ingo,
debugging from your side will be great as you have all the environment
already set. Please let us know if we could support you somehow.
Looking forward your investigation.
Regards,
Ivan

--
Ivan Furnadjiev

Twitter: @EclipseRAP
Blog: http://eclipsesource.com/blogs/

Professional services for RAP and RCP?
http://eclipsesource.com/services/rap/
Re: Wrong context path since 3.0 or 3.1 [message #1741598 is a reply to message #1730514] Fri, 26 August 2016 08:42 Go to previous message
Sebastian Habenicht is currently offline Sebastian HabenichtFriend
Messages: 42
Registered: January 2013
Member
Hi RAP team,

it seems like there is another setup the current implementation of RWT.getServiceManager().getServiceHandlerUrl does not cover yet:

A customer deployed an application on a server with an entry point like someserver/myEntryPoint (in the internal network). Public access is provided via a subdomain, e.g. theapp.mydomain.com which obviously redirects to someserver/myEntryPoint.

Calling getServiceHandlerUrl currently returns /myEntryPoint/?servicehandler=xxx ... - which results in the url theapp.mydomain.com/myEntryPoint/?servicehandler=xxx ... on the client side.

After the sub domain redirect the final url appears to be someserver/myEntryPoint/myEntryPoint/?servicehandler=xxx ... which does not exist. I am not really familiar with sub domain configuration, but I think this is what happens.

Unfortunately, the system property that has been introduced with the fix for bug 492175 does not help at all, since the context path is added to the result of getServiceHandlerUrl in any case. So my first thought was that the context path should not be added to the result of getServiceHandlerUrl when "org.eclipse.rap.rwt.serviceHandlerBaseURL" is set. Instead, it might be part of the base url configured in that property (if it is required).

It's probably possible to fix this with url rewriting on the server side or even by removing the entry point from the returned url in the code (which would not be nice); however, I think this is not such an uncommon setup and the framework should provide respective configuration to not bother administrators with web application specific extra configuration.

Hope, I did not miss anything essential here. What do you think?

Regards,
Sebastian

[Updated on: Fri, 26 August 2016 08:44]

Report message to a moderator

Previous Topic:Nebula Grid in RAP
Next Topic:Empty Virtual Nebula Grid throws exception
Goto Forum:
  


Current Time: Sat Apr 20 02:43:55 GMT 2024

Powered by FUDForum. Page generated in 0.03730 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top