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

Bug 367067

Summary: Access Forbidden for linked folders
Product: Community Reporter: Dennis Huebner <dennis.huebner>
Component: ServersAssignee: Eclipse Webmaster <webmaster>
Status: CLOSED WONTFIX QA Contact:
Severity: normal    
Priority: P3    
Version: unspecified   
Target Milestone: ---   
Hardware: PC   
OS: Mac OS X - Carbon (unsup.)   
Whiteboard:

Description Dennis Huebner CLA 2011-12-19 07:48:11 EST
I'm trying to reduce disk space used by tmf project downloads folder.
The first possibility I saw, is to symlink main release javadoc [1] to existing service releases. For example if service release for 2.0 stream exists (e.g. 2.0.1), 2.0.0 javadoc can be linked to it.
I did:
 ln -s 2.0.0 2.0.1

So it currently looks like this:

dhubner@build:~/downloads/modeling/tmf/xtext/javadoc> ls -al
insgesamt 24
drwxrwsr-x+ 6 dhubner   modeling.tmf 4096 19. Dez 07:25 .
drwxrwsr-x+ 6 sefftinge modeling.tmf 4096 30. Aug 13:04 ..
lrwxrwxrwx  1 dhubner   modeling.tmf    5 19. Dez 06:01 2.0.0 -> 2.0.1
drwxrwsr-x+ 4 dhubner   modeling.tmf 4096  2. Aug 08:07 2.0.1
lrwxrwxrwx  1 dhubner   modeling.tmf    5 19. Dez 06:13 2.1.0 -> 2.1.1
drwxrwsr-x+ 4 dhubner   modeling.tmf 4096 10. Nov 09:35 2.1.1
drwxrwsr-x+ 7 dhubner   modeling.tmf 4096  7. Dez 12:56 2.2.0
drwxrwsr-x+ 7 dhubner   modeling.tmf 4096 13. Dez 10:00 2.2.1

The problem is that if I try to call the corresponding javadoc URL in my browser [2] "Access Forbidden" error occurs.
How to fix this?
Or is there maybe an other possibility to redirect all the 2.0.0 javadoc requests to 2.0.1?

[1] http://www.eclipse.org/modeling/tmf/javadoc/
[2] http://download.eclipse.org/modeling/tmf/xtext/javadoc/2.0.0/
Comment 1 Eclipse Webmaster CLA 2011-12-19 10:56:08 EST
We don't allow symlinks on download.eclipse.org(for security reasons).  You could create a page(.html) that indexed all of your javadoc content that had the 'correct' re-directed urls.

-M.
Comment 2 Dennis Huebner CLA 2011-12-19 11:12:34 EST
(In reply to comment #1)
> We don't allow symlinks on download.eclipse.org(for security reasons).  You
> could create a page(.html) that indexed all of your javadoc content that had
> the 'correct' re-directed urls.
> 
> -M.

Wie reference some full qualified javadoc pages in the eclipse help, e.g. http://download.eclipse.org/modeling/tmf/xtext/javadoc/2.0.0/org/eclipse/xtext/ISetup.html
Would it also work?
Or do you mean I have to create a redirect html/php file for each existing html?
Comment 3 Eclipse Webmaster CLA 2011-12-19 11:26:18 EST
I was suggesting creating a 'single' index page that pointed at your docs, and the 'urls'(well the labels) can be whatever the symlink is:

ie: <a href="http://download.eclipse.org/modeling/tmf/xtext/javadoc/2.0.1/somepage.html>Xtext 2.0.0 </a>

Since symlinks aren't allowed even full path urls won't work(if the underlying content has been symlinked).

-M.
Comment 4 Dennis Huebner CLA 2011-12-19 11:32:07 EST
(In reply to comment #3)
> I was suggesting creating a 'single' index page that pointed at your docs, and
> the 'urls'(well the labels) can be whatever the symlink is:
> 
> ie: <a
> href="http://download.eclipse.org/modeling/tmf/xtext/javadoc/2.0.1/somepage.html>Xtext
> 2.0.0 </a>
> 
> Since symlinks aren't allowed even full path urls won't work(if the underlying
> content has been symlinked).
> 
> -M.
Thanks Matt,
it's very important that existing eclipse help links to old javadoc still working. The only solution I currently see is to not symlink the content.
Closing as WONTFIX, cause symlinking will probably not be allowed.