Commit Graph

178 Commits (fccd1d5cc0b557d7fc5ed7b3399366a5146924ff)

Author SHA1 Message Date
ansuz a28a59abf0 harden server further against bad channel ids 2017-07-17 16:34:47 +02:00
ansuz a756faf818 lint compliance 2017-07-13 08:36:55 +02:00
ansuz eeb2ee2d17 add clear channel rpc 2017-07-12 18:55:29 +02:00
ansuz 63fd7b4dde implement EXPIRE_SESSION rpc 2017-07-05 16:00:54 +02:00
ansuz cb7efeebe1 don't require admins to explicitly enable uploads 2017-07-05 11:54:27 +02:00
ansuz 9bf9130b9d fix error in pin reset 2017-07-04 17:02:29 +02:00
ansuz 708d5ae35f remove noisy log calls 2017-07-03 16:43:49 +02:00
ansuz 6ac056e314 make explicit file size RPCs unauthenticated 2017-07-03 11:38:39 +02:00
ansuz d2085c1269 enable logging of rpc calls 2017-06-30 11:19:12 +02:00
ansuz 9d83214158 forbid cache poisoning via botched reset calls 2017-06-28 11:36:34 +02:00
ansuz 100cc1792a non-existent files have size 0 2017-06-13 11:47:22 +02:00
ansuz 278125747c only log errors if there is an error 2017-06-13 11:18:14 +02:00
ansuz 977faee40b expose more debugging information from rpc errors 2017-06-13 11:14:01 +02:00
ansuz 8bee45d0f4 don't try to replace undefined 2017-06-08 15:27:28 +02:00
ansuz 52975a2f09 allow users to pin the first time, even if they are over their limit 2017-06-08 15:26:51 +02:00
ansuz 192a517e64 handle nonexistent files in getUploadSize 2017-06-08 14:02:26 +02:00
ansuz 5bd7e19ddd guard against invalid channels, make session expiration time configurable 2017-06-08 14:02:06 +02:00
ansuz aa296eadff pass correct argument into getFileSize 2017-06-08 14:00:48 +02:00
ansuz f6e443aeb2 put cookie requests back on authenticated rpc list 2017-06-02 11:45:07 +02:00
ansuz f631973f1f optimize file upload 2017-06-01 18:16:02 +02:00
ansuz 82f5d3c96f abstract checks for authenticated RPCs 2017-05-31 12:51:26 +02:00
ansuz 8507f77116 throw if adminEmail and allowSubscriptions are not compatible 2017-05-30 16:27:42 +02:00
ansuz 605377cf31 update default configuration file with new attributes and comments 2017-05-30 15:35:51 +02:00
ansuz c4f8286be6 add timestamp to rpc error logs 2017-05-29 17:35:13 +02:00
Caleb James DeLisle 66520b6041 cleaned up the accounts, limits and revenue sharing and unified the config in one place 2017-05-26 18:09:31 +02:00
ansuz 91ba41b8e8 hotfix for account ids 2017-05-23 11:46:59 +02:00
ansuz ff8701b6ba send note along with limit 2017-05-22 15:56:24 +02:00
ansuz 5179252d3b fix merge conflicts 2017-05-22 12:11:24 +02:00
ansuz 6e7fe87974 WIP debug file upload errors. use better error strings 2017-05-22 12:06:29 +02:00
yflory 0c2f84058b Improve css for the file app 2017-05-22 11:16:01 +02:00
yflory 67a04a16ec Merge branch 'staging' of github.com:xwiki-labs/cryptpad into staging 2017-05-19 18:44:46 +02:00
yflory 1ab6eb3c5d Add a queue for multiple uploads in the file app 2017-05-19 18:41:34 +02:00
ansuz 7d369fb5e0 move rpc warnings out of server and into rpc 2017-05-19 14:37:00 +02:00
ansuz d9f128e923 send appropriate responses to upload rpc calls 2017-05-19 09:12:39 +02:00
ansuz d71e12713a handle empty arrays when reducing 2017-05-19 09:11:28 +02:00
ansuz df1433b53f don't pin if users don't have space.
better validation of rpc calls
2017-05-18 12:45:40 +02:00
ansuz 98828730b4 refactor more 2017-05-16 18:08:59 +02:00
ansuz 24eb928ef8 simplify rpc function signatures 2017-05-16 17:07:53 +02:00
ansuz c381e85384 correctly identify users' limits by unescaped public key 2017-05-16 15:11:20 +02:00
yflory 87fa28180a Display an upgrade button in the settings page 2017-05-16 10:34:50 +02:00
ansuz dfe3eac606 big rpc refactor:
* support pinning files
* include pinned files in usage calculation
* safer session handling
* fix bugs in limit update code
2017-05-15 18:12:10 +02:00
ansuz 591c5a7844 add TODOs, integrate upload size checks 2017-05-15 11:59:36 +02:00
ansuz fa4b17e2bc use callback in 'getLimit' 2017-05-12 15:39:55 +02:00
ansuz a249435003 refactor limit handling a bit 2017-05-12 14:19:36 +02:00
yflory d2ba8f1c27 Use the new format for the storage limits 2017-05-11 18:07:29 +02:00
yflory e123ad0333 Use a POST request to get the storage limits 2017-05-11 16:31:14 +02:00
yflory 57ee7de7d4 Update and return the storage limit 2017-05-11 16:12:44 +02:00
ansuz db2f7a5e36 add todos and change file id size 2017-05-10 15:36:14 +02:00
ansuz 3ad99be1ef restrict uploads to authenticated users 2017-05-05 11:17:55 +02:00
ansuz f329726fa4 fix undefined reference 2017-05-05 09:12:16 +02:00
ansuz d923fd1b76 close writeStreams before expiring a stream 2017-05-05 09:00:54 +02:00
ansuz 78b11584f8 remove unused variables 2017-05-04 16:16:09 +02:00
ansuz 5f700c7451 cleanup and jshint compliance 2017-05-04 11:46:11 +02:00
ansuz ca7b76a812 prototype of encypted file uploads 2017-05-04 11:36:56 +02:00
ansuz 28e4ef1b13 WIP RPC code 2017-04-28 17:11:50 +02:00
ansuz 4d48c88807 create blob and blobstage stores if not exists 2017-04-28 12:49:08 +02:00
ansuz fe93da8817 get ready to implement blob storage 2017-04-28 11:46:13 +02:00
Caleb James DeLisle 211113fb1a little flowey 2017-04-25 16:04:17 +02:00
ansuz 81c5e26a0a validate rpc messages more carefully 2017-04-24 12:10:12 +02:00
ansuz 9e749b7cd8 handle invalid channels 2017-04-24 11:40:13 +02:00
ansuz c51073f211 support batch getFileSize calls 2017-04-21 14:51:20 +02:00
ansuz a14bb1480a progress for implicit pinning 2017-04-10 17:42:35 +02:00
ansuz a2f692b9a3 clean up serverside and clientside pinning logic 2017-04-07 15:20:30 +02:00
ansuz e87992c7ec implement atomic pin reset rpc 2017-04-07 11:37:19 +02:00
ansuz 89bca1606b remove debugging code 2017-04-07 10:34:03 +02:00
ansuz 7acf52405d return new hash when pinning a channel 2017-04-07 10:30:40 +02:00
ansuz 3380cf0348 implement getTotalSize rpc 2017-04-07 10:09:59 +02:00
ansuz 64089c5f6b implement pad pinning 2017-04-05 17:28:04 +02:00
ansuz 212baeb3a6 better cookie schema. expire old sessions 2017-04-05 12:24:01 +02:00
ansuz a5e5ddae08 rpc all the things 2017-04-03 19:24:57 +02:00
ansuz a0c17d7c9b latest rpc code 2017-03-27 18:15:15 +02:00
ansuz 98027dad27 jshint compliance 2017-03-20 18:02:11 +01:00
ansuz 7ab65367c5 don't try to verify messages if you can't decode base64 2017-03-16 17:01:53 +01:00
ansuz dc350caff7 return NOT_IMPLEMENTED for all planned rpc calls 2017-03-16 14:43:05 +01:00
ansuz ac08c9f3d9 rpc should only respond to signed messages 2017-03-16 13:07:42 +01:00
ansuz 15a67afc75 jshint compliance 2017-03-15 16:04:52 +01:00
ansuz 61fc4a3f86 respond to GET_FILE_SIZE rpc calls 2017-03-15 15:55:25 +01:00
ansuz 612a00b484 implement serverside RPC infrastructure 2017-03-10 18:03:15 +01:00