mirror of
https://github.com/jenkinsci/jenkins.git
synced 2026-11-16 21:42:27 +00:00
Artifact/workspace browser was unable to serve directories/files that contains ".." in them.
(<a href="http://www.nabble.com/Status-Code-400-viewing-or-downloading-artifact-whose-filename-contains-two-consecutive-periods-tt21407604.html">report</a>) This was due to a security check. git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@14408 71c3de6d-444a-0410-be80-ed276b4c234a
This commit is contained in:
1 parent
9bd02f91fe
commit
e1153d511c
3 files changed
+38
-3
No files matched your search
@@ -583,7 +583,12 @@ public abstract class HudsonTestCase extends TestCase {
|
||||
* For example, "job/test/" to go to a job top page.
|
||||
*/
|
||||
public HtmlPage goTo(String relative) throws IOException, SAXException {
|
||||
return (HtmlPage)goTo(relative, "text/html");
|
||||
Page p = goTo(relative, "text/html");
|
||||
if (p instanceof HtmlPage) {
|
||||
return (HtmlPage) p;
|
||||
} else {
|
||||
throw new AssertionError("Expected text/html but instead the content type was "+p.getWebResponse().getContentType());
|
||||
}
|
||||
}
|
||||
|
||||
public Page goTo(String relative, String expectedContentType) throws IOException, SAXException {
|
||||
|
||||
Reference in new issue
Block a user