public class DirCacheCheckoutMaliciousPathTest extends RepositoryTestCase
Modifier and Type | Field and Description |
---|---|
protected ObjectId |
theHead |
protected ObjectId |
theMerge |
ASSUME_UNCHANGED, CONTENT, CONTENT_ID, db, LENGTH, MOD_TIME, SMUDGE, trash
author, committer
Constructor and Description |
---|
DirCacheCheckoutMaliciousPathTest() |
assertEqualsFile, check, checkFile, checkoutBranch, commitFile, copyFile, createBranch, createEntry, createEntry, createEntry, deleteTrashFile, fsTick, indexState, indexState, lookup, read, resetIndex, setUp, writeTrashFile, writeTrashFile, writeTrashFiles
addRepoToClose, createBareRepository, createTempDirectory, createTempFile, createUniqueTestGitDir, createWorkRepository, getCeilings, getTemporaryDirectory, read, recursiveDelete, runHook, tearDown, tick, write, write
public void testMaliciousAbsolutePathIsOk() throws Exception
Exception
public void testMaliciousAbsolutePathIsOkSecondCheckout() throws Exception
Exception
public void testMaliciousAbsolutePathIsOkTwoLevels() throws Exception
Exception
public void testMaliciousAbsolutePath() throws Exception
Exception
public void testMaliciousAbsolutePathSecondCheckout() throws Exception
Exception
public void testMaliciousAbsolutePathTwoLevelsFirstBad() throws Exception
Exception
public void testMaliciousAbsolutePathTwoLevelsSecondBad() throws Exception
Exception
public void testMaliciousAbsoluteCurDrivePathWindows() throws Exception
Exception
public void testMaliciousAbsoluteCurDrivePathWindowsOnUnix() throws Exception
Exception
public void testMaliciousAbsoluteUNCPathWindows1() throws Exception
Exception
public void testMaliciousAbsoluteUNCPathWindows1OnUnix() throws Exception
Exception
public void testMaliciousAbsoluteUNCPathWindows2() throws Exception
Exception
public void testMaliciousAbsoluteUNCPathWindows2OnUnix() throws Exception
Exception
public void testMaliciousAbsoluteWindowsPath1() throws Exception
Exception
public void testMaliciousAbsoluteWindowsPath1OnUnix() throws Exception
Exception
public void testMaliciousAbsoluteWindowsPath2() throws Exception
Exception
public void testMaliciousGitPath1Case() throws Exception
Exception
public void testMaliciousGitPath2Case() throws Exception
Exception
public void testMaliciousGitPath3Case() throws Exception
Exception
public void testMaliciousGitPathEndSpaceWindows() throws Exception
Exception
public void testMaliciousGitPathEndSpaceUnixOk() throws Exception
Exception
public void testMaliciousGitPathEndDotWindows1() throws Exception
Exception
public void testMaliciousGitPathEndDotWindows2() throws Exception
Exception
public void testMaliciousGitPathEndDotWindows3() throws Exception
Exception
public void testMaliciousGitPathEndDotUnixOk() throws Exception
Exception
public void testMaliciousPathEmptyUnix() throws Exception
Exception
public void testMaliciousPathEmptyWindows() throws Exception
Exception
public void testMaliciousWindowsADSOnUnix() throws Exception
Exception
public void testForbiddenNamesOnWindowsEgCon() throws Exception
Exception
public void testForbiddenNamesOnWindowsEgConDotSuffix() throws Exception
Exception
public void testForbiddenNamesOnWindowsEgLpt1() throws Exception
Exception
public void testForbiddenNamesOnWindowsEgLpt1DotSuffix() throws Exception
Exception
public void testForbiddenNamesOnWindowsEgDotCon() throws Exception
Exception
public void testForbiddenNamesOnWindowsEgLpr() throws Exception
Exception
public void testForbiddenNamesOnWindowsEgCon1() throws Exception
Exception
public void testForbiddenWindowsNamesOnUnixEgCon() throws Exception
Exception
Copyright © 2015. All rights reserved.