| Summary: | [sites] Rethink site API | ||
|---|---|---|---|
| Product: | [ECD] Orion | Reporter: | Mark Macdonald <mamacdon> |
| Component: | Server | Assignee: | Project Inbox <orion.server-inbox> |
| Status: | RESOLVED WONTFIX | QA Contact: | |
| Severity: | normal | ||
| Priority: | P3 | ||
| Version: | 5.0 | ||
| Target Milestone: | --- | ||
| Hardware: | PC | ||
| OS: | Windows 7 | ||
| Whiteboard: | |||
|
Description
Mark Macdonald
(In reply to Mark Macdonald from comment #0) > Currently case (ii) is implemented on top of (iii): forwarding a request to > a servlet at /{api} is achieved by proxying it to > "http://localhost:xxxx/{api}", where 'xxxx' is the port the server is > listening on. It's basically a hack for the server to talk to itself. This > is brittle, and requires exposing an internal port to the user, which they > should never see. Per bug 421695 this is not quite true anymore: case (ii) is handled by forwarding requests within the servlet container. A URL with hostname "localhost" is considered an alias for the container itself. The scheme and port number (if provided) don't matter. The current state is sort of a partial solution pending a site API rewrite, which will hopefully provide a conceptual separation between case (ii) and (i). Closing as part of a mass clean up of inactive bugs. Please reopen if this problem still occurs or is relevant to you. For more details see: https://dev.eclipse.org/mhonarc/lists/orion-dev/msg03444.html |