Issue Details (XML | Word | Printable)

Key: OSGI-468
Type: Improvement Improvement
Status: Resolved Resolved
Resolution: Fixed
Priority: Minor Minor
Assignee: Costin Leau
Reporter: Craig Walls
Votes: 0
Watchers: 0
Operations

If you were logged in you would be able to see more operations.
Spring OSGi

DefaultContextPathStrategy should honor Webapp-Context header

Created: 25/Apr/08 01:10 PM   Updated: 16/May/08 07:42 AM
Component/s: None
Affects Version/s: 1.1 M1
Fix Version/s: 1.1 RC1

Time Tracking:
Not Specified

Issue Links:
Depends
 


 Description  « Hide
Some of the HTTP Service implementations (such as Pax Web) let you specify the context of a deployed webapp by specifying a Webapp-Context: header in MANIFEST.MF.

The Spring-DM Web Extender does not honor this and instead leans on DefaultContextPathStrategy to figure out how to name the context, starting with the bundle's location.

Unfortunately, the location is not necessarily ideal for a handful of reasons, not the least of which is that it is not necessarily going to be the same location everytime I deploy the web bundle. I'd prefer to have some repeatable way to deploy a WAR file, regardless of location, and count on the context path to be the same.

Therefore, I propose that DefaultContextPathStrategy *FIRST* look for a Webapp-Contxt: header in the MANIFEST.MF and, if it finds it, uses its value as the context path. If not, then it should fall back on the existing strategry.


 All   Comments   Work Log   Change History   FishEye   Builds      Sort Order: Ascending order - Click to sort in descending order
Craig Walls added a comment - 25/Apr/08 01:10 PM
Note that there's a typo in the description. Toward the end, I meant "Webapp-Context:"