overleaf/services/web/test/unit/coffee/Project
Simon Detheridge 56dcbefb5b Check for safe paths in all ProjectEntityHandler methods
Some import mechanisms (for example, Github project import) call methods such as 'upsert*' directly, bypassing existing filename checks.

Added checks to all methods in ProjectEntityHandler that can create or rename a file.

bug: overleaf/sharelatex#908
Signed-off-by: Simon Detheridge <s@sd.ai>
2018-10-08 15:31:04 +01:00
..
DocLinesComparitorTests.coffee Move test/UnitTests -> unit/test 2017-11-27 17:10:22 +00:00
ProjectApiControllerTests.coffee Move test/UnitTests -> unit/test 2017-11-27 17:10:22 +00:00
ProjectControllerTests.coffee move call for creating ip matched notifcation to project controller 2018-09-05 15:40:59 +01:00
ProjectCreationHandlerTests.coffee avoid clobbering imported image names 2018-08-06 16:56:44 +01:00
ProjectDeleterTests.coffee Move test/UnitTests -> unit/test 2017-11-27 17:10:22 +00:00
ProjectDetailsHandlerTests.coffee fix invalid project names when opening templates 2018-09-28 10:38:25 +01:00
ProjectDuplicatorTests.coffee clean up broken project on error in ProjectDuplicator 2018-10-02 12:14:22 +01:00
ProjectEditorHandlerTests.coffee Fix tests 2018-03-05 10:37:53 +00:00
ProjectEntityHandlerTests.coffee push doc pathname logic into DocController 2018-04-12 16:16:44 +01:00
ProjectEntityMongoUpdateHandlerTests.coffee add overleaf to projections for project structure updates 2018-04-13 13:45:07 +01:00
ProjectEntityUpdateHandlerTests.coffee Check for safe paths in all ProjectEntityHandler methods 2018-10-08 15:31:04 +01:00
ProjectGetterTests.coffee add extra metrics around locking 2018-02-19 12:15:02 +00:00
ProjectLocatorTests.coffee Revert "Revert "Upgrade to mocha 5.0.1"" 2018-02-27 15:03:21 +00:00
ProjectOptionsHandlerTests.coffee add unit tests 2018-08-13 10:53:43 +01:00
ProjectRootDocManagerTests.coffee strip quotes from mainFile 2018-09-25 09:05:49 +01:00
ProjectUpdateHandlerTests.coffee Revert "Record and show last modified by user for projects" 2018-09-13 14:00:30 +01:00
SafePathTests.coffee Add method to sanitize full paths 2018-10-08 14:48:17 +01:00