| Summary: | FileDialog doesn't work behind proxy | ||
|---|---|---|---|
| Product: | [RT] RAP | Reporter: | Christian Hager <christian.hager> |
| Component: | RWT | Assignee: | Project Inbox <rap-inbox> |
| Status: | RESOLVED FIXED | QA Contact: | |
| Severity: | normal | ||
| Priority: | P2 | CC: | christian.hager, ingo.meyer, ivan |
| Version: | 3.1 | ||
| Target Milestone: | 3.1 M7 | ||
| Hardware: | All | ||
| OS: | All | ||
| See Also: | https://git.eclipse.org/r/#/c/71880/ | ||
| Whiteboard: | |||
|
Description
Christian Hager
Hi, I solved this problem in 3.1M5. It is because "RWT.getServiceManager().getServiceHandlerUrl( SERVICE_ID )" is not returning relative path (anymore). The leading "/" must be removed, so we just hacked ServiceManagerImpl.getServiceHandlerUrl with: return ContextProvider.getResponse().encodeURL( url.toString().startsWith( "/" ) ? url.toString().substring( 1 ): url.toString() ); and all servlets and file-uploading is working :) Happy evening ~Ingo The ServiceManagerImpl#getServiceHandlerUrl returns absolute path. See bugs: 437211: getServiceHandlerURL() missing entrypoint-path without cookie support (regression due to Bug#406428) https://bugs.eclipse.org/bugs/show_bug.cgi?id=437211 and the original bug to make it relative: 406428: ServiceManager#getServiceHandlerUrl should return relative URLs https://bugs.eclipse.org/bugs/show_bug.cgi?id=406428 Now I don't know how to fix the implementation in order to cover both cases. Looks like this should be made configurable as suggested in Bug#437211 Hi Ivan, I agree with Christian. It should be configurableand absolute URLS can be the default. Add support for configurable system property "org.eclipse.rap.rwt.serviceHandlerBaseURL" with change https://git.eclipse.org/r/#/c/71880/. |