James Allen
830d676f4f
Add in limit on all JSON parsing
2015-12-01 11:05:49 +00:00
James Allen
92d18d7e2e
Reduce limit to actuall 1Mb, not 1Gb
2015-11-30 15:40:03 +00:00
James Allen
0372fa3203
Add in extra logging about size of messages
2015-11-30 15:25:09 +00:00
Brian Gough
4bf90afe0e
update tests
2015-11-30 15:22:21 +00:00
Brian Gough
7a9577e081
only flush to track-changes when ops are queued
2015-11-30 15:17:11 +00:00
Marc Egea i Sala
866f7dedee
Fix error log folder
...
Error log is stored under /var/log/err.log. This PR fixes it and stores the log under /var/log/wlgb/err.log
2015-11-30 11:06:00 +00:00
Marc Egea i Sala
dfb4835cc1
Merge pull request #6 from overleaf/version-update
...
Update local version after processing snapshots
2015-11-30 11:00:41 +00:00
Brian Gough
529a061567
Merge pull request #4 from sharelatex/flush-ops-from-redis
...
push ops to track changes when document is flushed
2015-11-30 10:46:21 +00:00
James Allen
8ddfbb99de
Only parse body when we need to for copyFile request
2015-11-25 17:01:19 +00:00
James Allen
bc6c8d6afc
Don't send multiple status codes on insertFile error
2015-11-25 16:07:51 +00:00
Henry Oswald
d6b3262ac7
Merge pull request #19 from EDP-Sciences/master
...
Add a PersistorManager library using the aws-sdk library
2015-11-25 14:50:38 +00:00
Xavier Trochu
81a7203315
Fix the checkIfFileExists API.
2015-11-25 15:40:35 +01:00
Marc Egea i Sala
0390f80aaa
Merge pull request #5 from overleaf/file-not-in-the-current-commit
...
Try to download file if it's not in the git tree
2015-11-24 13:22:46 +00:00
John Lees-Miller
318e11deeb
mock the persistent store with jmock
2015-11-24 12:06:43 +00:00
John Lees-Miller
e2574ab163
fix whitespace
2015-11-24 12:06:05 +00:00
John Lees-Miller
62749a0dab
update to IDEA 15
2015-11-24 12:05:54 +00:00
John Lees-Miller
624c3e6af1
update to junit 4.12 to get jmock working
...
Also moved junit to the test scope.
2015-11-24 12:05:24 +00:00
Marc Egea i Sala
937d9c82b4
Update local version after processing snapshots
2015-11-23 16:24:22 +00:00
Marc Egea i Sala
6a25132f0c
InteliJ IDEA project library files
2015-11-23 12:30:46 +00:00
Marc Egea i Sala
229ed1c09d
Try to download file if it's not in the git tree
2015-11-23 09:36:24 +00:00
Xavier Trochu
3b6270236c
Replace indentation from 2 space to tabs.
2015-11-20 14:38:23 +01:00
Xavier Trochu
b6486cb825
Cleanup the dependencies
2015-11-20 14:05:54 +01:00
Xavier Trochu
0219900933
Forward the options argument to getFileStream
2015-11-20 12:07:04 +01:00
Xavier Trochu
bfd41fdaf9
Add aws-sdk unit test.
...
Fix Aws-Sdk persistor to return a correct error on file not found.
Fix FileHandler after some change were lost on a previous merge
2015-11-20 12:02:22 +01:00
Henry Oswald
0e20cb36fd
Merge pull request #2 from EDP-Sciences/master
...
Remove the internal metrics module.
2015-11-19 16:32:14 +00:00
Xavier Trochu
0323787a64
Remove the internal metrics module.
...
The internal metrics module is unneeded as metrics-sharelatex does the
same function.
2015-11-19 17:00:12 +01:00
James Allen
503b766dcc
For duplicate ops only send ack to submitting client
...
When a duplicate op is received, we only need to ack it to client
that sent it. Only that client is having trouble, and all other clients
will already have received it.
2015-11-19 10:58:28 +00:00
James Allen
2589e2d417
Gracefully return when an op has already been submitted
...
It is not a fatal error if an op has already been submitted. We just
need to send an ack back to the client that submitted it and continue.
If we detect a duplicate op, set dup: true on the op and pass it back
to real-time for distributing. The dup: true flag will ensure it only
gets acknowledged to the submitting client, not everyone.
2015-11-19 10:54:28 +00:00
Marc Egea i Sala
dcaf2d0fa6
Merge pull request #4 from overleaf/handle-401
...
Handle 401 errors as ptorected projects
2015-11-19 10:52:53 +00:00
Marc Egea i Sala
18bb534f96
Handle 401 errors as ptorected projects
2015-11-19 10:40:07 +00:00
Xavier Trochu
476db58c3f
Add the opts parameter to getFileStream and implement Range requests
2015-11-17 12:52:25 +01:00
Xavier Trochu
26523b011a
small fixes
2015-11-16 09:59:27 +01:00
Henry Oswald
253a99e780
added try catch around word count where a file is not created
2015-11-12 15:19:22 +00:00
James Allen
7185657f06
Use max_doc_length rather than max_doc_size to be consistent with other services
2015-11-09 15:24:21 +00:00
James Allen
e73890bfc2
Error if update would make document too long
2015-11-06 12:52:03 +00:00
James Allen
27d3ebc1fd
Add configurable max_doc_length
2015-11-06 12:43:53 +00:00
Xavier Trochu
63aef6b832
Fix postmerge issue
2015-11-05 12:11:02 +01:00
James Allen
a565939548
Add import script to populate contacts with existing collaborators
2015-11-04 16:26:25 +00:00
James Allen
33301871f2
Update logger version
2015-11-04 14:41:06 +00:00
Xavier Trochu
a367190a21
Merge remote-tracking branch 'sharelatex/master'
2015-11-04 15:20:15 +01:00
Winston Li
0156aa8c51
Update README.md
2015-10-25 13:58:40 +00:00
Winston Li
1872eba223
Implementation of OAuth2
2015-10-25 13:44:38 +00:00
Winston Li
c3db415ce7
Implement config changes and tests
2015-10-25 11:19:02 +00:00
Henry Oswald
069220dcc8
increased cache time to 1.5 days
2015-10-21 10:02:30 +01:00
Henry Oswald
29c812cece
moved the build opts down
2015-10-16 12:57:05 +01:00
Henry Oswald
4f5669591a
add timeout to health check requests and always try the delete
2015-10-16 12:30:53 +01:00
Henry Oswald
de9a24f7bb
pulled health check into its own file and use project_id from settings
2015-10-16 10:13:54 +01:00
Henry Oswald
491d4c69b1
Merge branch 'master' of https://github.com/sharelatex/docstore-sharelatex
2015-10-15 22:22:44 +01:00
Henry Oswald
9826d125e3
added basic health check to docstore
2015-10-15 22:22:20 +01:00
James Allen
5fef2a82b8
Acceptance tests no longer run on Travis
2015-10-07 18:40:12 +01:00