Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 335749 - http Directory service fails
Summary: http Directory service fails
Status: RESOLVED FIXED
Alias: None
Product: Orion
Classification: ECD
Component: Client (show other bugs)
Version: 0.2   Edit
Hardware: PC Windows 7
: P3 normal (vote)
Target Milestone: 0.2   Edit
Assignee: John Arthorne CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-01-28 19:56 EST by John J. Barton CLA
Modified: 2011-09-01 11:42 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 John J. Barton CLA 2011-01-28 19:56:10 EST
1. http://localhost:8080/file/org.eclipse.orion.client.core
2. click on link <static>
Expected: the contents of ...core/static
Actual: fail, 403 forbidden and URL is
http://localhost:8080/file/static/

0.2 nightly 1.26
Comment 1 John Arthorne CLA 2011-02-01 15:51:15 EST
I see. The problem is the URl should be (note the trailing slash):

http://localhost:8080/file/org.eclipse.orion.client.core/

However we have a filter that redirects all directories to index.html
Comment 2 John Arthorne CLA 2011-02-01 17:25:20 EST
Pushed a fix:

 - WelcomeFileFilter no longer messes with paths within our servlets (this filter redirects directory listings to index.html
 - Ensure file API lists directory URLs with a trailing slash, which is correct form for a URL (http://example.com/a is a file, http://example.com/a/ is a directory).