Commit Graph
53 Commits
Author SHA1 Message Date
Henry Oswald 74c393cda3 - fixed bug with texcount returning wrong data for nauty lines
- improved acceptence test for word count to use nauty lines
2015-09-09 13:52:45 +01:00
Henry Oswald 561eaa0d66 add -inc to word count
use -inc to word count included files

also moved private function to bottom
2015-09-09 12:47:08 +01:00
Henrique Dias caef254b80 move texcount to docker 2015-09-08 10:19:46 -03:00
Henrique Dias a04d951b40 add unit test 2015-06-08 19:27:47 -03:00
Henrique Dias 25d73ab6f9 initial version of texcount 2015-06-08 18:35:24 -03:00
Brian Gough f707ad0926 Merge pull request #23 from sharelatex/add-mysql-indexes
add indexes to mysql db
2015-05-21 12:21:59 +01:00
Brian Gough 779d79ebfd Merge pull request #22 from sharelatex/upgrade-sequelize
upgrade sequelize and mysql
2015-05-21 12:21:50 +01:00
Brian Gough 03c516a87e Merge pull request #21 from sharelatex/fix-urlfetcher-streams
clean up error handling in UrlFetcher
2015-05-21 12:21:31 +01:00
Brian Gough ff5b203ecf added comments 2015-05-21 11:33:13 +01:00
Brian Gough 7d8bc9fed9 upgrade sequelize and mysql 2015-05-15 16:58:27 +01:00
Brian Gough 484c0da84f add indexes to db 2015-05-15 16:28:35 +01:00
Brian Gough 3c97b98fc4 clean up error handling in UrlFetcher 2015-05-15 16:28:11 +01:00
Brian Gough 03c105c3d9 replace deprecated send(code,body) calls 2015-05-15 16:27:39 +01:00
Brian Gough 889fa65d0c clean up stream handling for file copy 2015-05-15 16:25:49 +01:00
Brian Gough 558b5e000f only run qpdf for the main output.pdf file
was previously matching any pdf file, which caused it to run for
embedded pdf figures produced during the mklatex run
2015-05-15 16:23:58 +01:00
Henry Oswald 94c4187eb2 change regex checking file request ensure other files can not be accessed 2015-05-12 15:18:09 +01:00
Brian Gough 9d3fdcf8b4 additional validation of requests 2015-05-11 12:10:13 +01:00
Brian Gough 2e91868bc8 disable sequelize logging by default
prevent any leaking of objects to console during debugging
2015-05-05 10:03:17 +01:00
Brian Gough 9892751ff6 prevent leak of urlStream on failed downloads 2015-04-29 16:05:49 +01:00
Brian Gough 651279b21f log errors when downloading files and clean up failed downloads 2015-04-29 16:05:49 +01:00
Brian Gough 8db907c766 invalidate the cache if there is an error copying a file 2015-04-29 15:54:38 +01:00
Brian Gough 85c6c3fe2b log errors when copying files from cache 2015-04-29 15:54:08 +01:00
Brian Gough 24e20a79f4 remove unnecessary call to async.series in OutputFileFinder
callback was previously async but is now synchronous, so high stack
usage.
2015-03-16 16:47:25 +00:00
Brian Gough 7551bc3135 reduce cache limit for pdfs 2015-03-02 11:31:48 +00:00
Brian Gough 75ef0d6581 skip cache directory error when empty 2015-03-02 09:58:20 +00:00
Brian Gough 3a4dd9df50 fix double callback for proc.on 'error' and proc.on 'close' 2015-02-27 16:07:02 +00:00
Brian Gough 37cc9f3715 provide a static server which forbids symlinks
prevents mismatch between rootdir of server and rootdir of symlink
checking middleware
2015-02-27 13:57:57 +00:00
Brian Gough 198e1ef492 cleanup and logging 2015-02-27 13:15:35 +00:00
Brian Gough 280d64cf60 remove debugging code 2015-02-26 15:32:01 +00:00
Brian Gough 151ea99639 accept build id parameter when serving static files 2015-02-25 17:05:19 +00:00
Brian Gough 163a33674b add an optimisation pass for the cached output files 2015-02-24 15:48:34 +00:00
Brian Gough 67bfeacab8 skip the cache directory when finding output files 2015-02-24 14:40:22 +00:00
Brian Gough 1923352e66 save output files in a .cache directory 2015-02-24 14:40:05 +00:00
Brian Gough f37004cec6 update sanitizePath regex
remove accidental inclusion of , and add null char \x00
2015-02-13 11:28:43 +00:00
James Allen 1a7500f102 Allow non-latin characters in the rootResourcePath 2015-02-13 11:21:35 +00:00
James Allen 90cda12ed9 Sanitize rootResourcePath 2015-02-11 16:39:43 +00:00
James Allen 84f3d3061d Don't return error if directory doesn't exist yet 2014-12-09 11:25:23 +00:00
James Allen 2c4fbd10ed Add in some debugging logging 2014-12-09 11:16:16 +00:00
James Allen ff94a76eb9 Use find -type f to get a list of output files 2014-12-09 11:08:07 +00:00
Henry Oswald 92338ab419 replaced old symlink logic with tested middlewear based on fs.realpath 2014-12-04 23:54:22 +00:00
James Allen 94397854c6 Add in missing error check 2014-12-04 21:37:09 +00:00
Henry Oswald af86745112 increase max compile to 4 mins 2014-10-17 11:03:08 +01:00
Henry Oswald a1ebd60b9f added url into error message when downloading from filestore 2014-06-10 14:09:36 +01:00
James Allen a42232f3e2 Don't normalize path passed to synctex 2014-05-29 16:40:58 +01:00
James Allen d80172942f Explicitly look for output.pdf file, not any pdf 2014-05-29 15:49:48 +01:00
James Allen 2ea64cddc7 Return more informative errors 2014-05-19 07:18:57 -04:00
James Allen 20219e0f2f Add in new metrics 2014-05-09 14:55:37 +01:00
James Allen 835acee5f9 Use simpler exec command with a timeout 2014-04-09 15:34:54 +01:00
James Allen 9fc0ef2885 Add in a synctex end point 2014-04-08 15:18:56 +01:00
James Allen c0464aca9a Add in support for markdown files 2014-04-04 09:56:20 -04:00