Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 421353

Summary: [sites] Directory listing gives incorrect URLs when accessed without trailing slash
Product: [ECD] Orion Reporter: Mark Macdonald <mamacdon>
Component: ServerAssignee: Mark Macdonald <mamacdon>
Status: RESOLVED WONTFIX QA Contact:
Severity: normal    
Priority: P3 CC: lmsurpre
Version: 3.0   
Target Milestone: 6.0 M1   
Hardware: PC   
OS: Windows 7   
Whiteboard:

Description Mark Macdonald CLA 2013-11-08 11:54:34 EST
1. Create a site and add a folder, using "/foo" as the right-hand path
2. Launch the site
3. Access http://[your site]/foo

You should see a directory listing, but the URLs it generates for the files in the folder are incorrect. They are missing the folder segment, eg:
> http://[your site]/file1.txt
> http://[your site]/file2.txt

If you access foo with a trailing slash, like this:
> http://[your site]/foo/
Then the URLs are correct:

> http://[your site]/foo/file1.txt
> http://[your site]/foo/file1.txt
Comment 1 Mark Macdonald CLA 2014-01-10 11:27:01 EST
This is really annoying when accessing the root of a running site that shows a directory listing. For example "http://mysite.orion.eclipse.org" -- typically you don't expect the trailing slash to matter here, but it does. If you forget it, your links are all screwed.
Comment 2 John Arthorne CLA 2015-05-05 14:54:15 EDT
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