Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 329875 - Support for overlapping HTTP applications
Summary: Support for overlapping HTTP applications
Status: RESOLVED FIXED
Alias: None
Product: z_Archived
Classification: Eclipse Foundation
Component: gyrex (show other bugs)
Version: unspecified   Edit
Hardware: All All
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Gunnar Wagenknecht CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-11-10 04:49 EST by Gunnar Wagenknecht CLA
Modified: 2018-03-19 11:59 EDT (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Gunnar Wagenknecht CLA 2010-11-10 04:49:32 EST
Gyrex allows arbitrary URLs to applications. We need to investigate and define clear rules for overlapping applications.

Example:
  app1 - http://localhost/myapp
  app2 - http://localhost/myapp/admin


- Will they share sessions? 

The current thinking is not. They are different applications. However, we need to investigate session handling with overlapping applications. It may be necessary to use a application individual session cookies. 


- Should we support this at all?

The above case is quite common. There is a regular app and an admin app. Implementing the admin area as a separate app has some advantages (eg. different sessions). 


- Which app wins over the URL?

Should be the longest matching path, i.e. in the example above, app1 will have no luck with any servlet/resource registered under "/admin". We just need to ensure that the implementation does it this way and properly document it.
Comment 1 Gunnar Wagenknecht CLA 2012-05-14 03:29:38 EDT
This works as documented. Jetty (i.e. the container) takes care of the Cookie vs. Session ID stuff.