JNLP slave agent fails to launch when the anonymous user doesn't have a read access.

git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@11602 71c3de6d-444a-0410-be80-ed276b4c234a
This commit is contained in:
kohsuke committed 2008-08-18 21:30:57 +00:00
1 parent 576df3dc80
commit 4faa52d0ec
4 files changed
+42 -21

No files matched your search

@@ -1916,6 +1916,13 @@ public final class Hudson extends View implements ItemGroup<TopLevelItem>, Node,
rsp.sendRedirect2(req.getContextPath()+"/");
}
/**
* Serves jar files for JNLP slave agents.
*/
public Slave.JnlpJar getJnlpJars(String fileName) {
return new Slave.JnlpJar(fileName);
}
/**
* RSS feed for log entries.
*/
@@ -2468,6 +2475,7 @@ public final class Hudson extends View implements ItemGroup<TopLevelItem>, Node,
|| rest.startsWith("/logout")
|| rest.startsWith("/accessDenied")
|| rest.startsWith("/signup")
|| rest.startsWith("/jnlpJars/")
|| rest.startsWith("/securityRealm"))
return this; // URLs that are always visible without READ permission
throw e;
@@ -285,6 +285,10 @@ public final class SlaveComputer extends Computer {
/**
* Serves jar files for JNLP slave agents.
*
* @deprecated
* This URL binding is no longer used and moved up directly under to {@link Hudson},
* but it's left here for now just in case some old JNLP slave agents request it.
*/
public Slave.JnlpJar getJnlpJars(String fileName) {
return new Slave.JnlpJar(fileName);