Commit graph

178 commits

Author SHA1 Message Date
yflory
2a95127aee Fix custom limits not applied when adminEmail is set to false 2019-01-21 17:42:04 +01:00
ansuz
6922bc1e08 lint compliance 2018-07-19 11:14:52 +02:00
ansuz
fcc54a3c34 Merge branch 'docker-fix-rename' into staging 2018-07-19 10:33:23 +02:00
ansuz
a090dc52db flow compliance 2018-07-19 10:33:01 +02:00
mcrosson
3a6f7d9b36 Fixup docker rename calls (addresses #244) 2018-07-16 17:02:55 +00:00
ansuz
848a918eda remove out of date comments 2018-07-16 15:45:19 +02:00
ansuz
ab04a7cb46 fix the bug I caused while trying to silence the linter 2018-07-02 17:43:39 +02:00
ansuz
12cf1993b9 flow compliance for loginBlock RPCs 2018-06-28 16:52:23 +02:00
ansuz
d03339f20b check for the presence of a blockHash in localStorage when logging in 2018-06-20 14:27:44 +02:00
ansuz
cb5fa72dba implement removeLoginBlock rpc 2018-06-19 17:17:56 +02:00
ansuz
577dea4c75 clientside implementation of block signing and encryption 2018-06-19 16:38:49 +02:00
ansuz
9d3d8c3ba2 initial implementation of serverside password change RPCs 2018-06-19 11:31:15 +02:00
yflory
b87e7c003b Fix flow errors... 2018-06-04 15:19:24 +02:00
yflory
8ce539a89e lint compliance 2018-05-30 18:49:48 +02:00
yflory
68fb534d25 Flow... 2018-05-30 15:27:36 +02:00
yflory
85e5c495d9 Remove owned file 2018-05-30 14:36:29 +02:00
yflory
93ecc06964 Upload owned files 2018-05-29 19:42:20 +02:00
yflory
586193d6a1 Password-protected files: upload files with hashes V2 2018-05-28 15:31:18 +02:00
yflory
bf520c2cb4 Flow compliance 2018-04-10 16:46:01 +02:00
yflory
9cba630700 lint compliance 2018-03-21 18:53:11 +01:00
yflory
a718603b36 Automatic account deletion 2018-03-21 18:27:20 +01:00
yflory
632e6c2e6c Merge branch 'metadata' into staging 2018-03-20 15:36:25 +01:00
yflory
99712ec2f0 getMetadata RPC 2018-03-20 15:33:12 +01:00
ansuz
7c072aeccb add remove-pins rpc 2018-03-20 11:16:18 +01:00
ansuz
ed8f9e4e3f remove XXX after review 2018-03-20 11:15:44 +01:00
ansuz
5b21911341 pass flow tests 2018-03-16 12:26:39 +01:00
ansuz
b2df2ba341 prototype owned file upload 2018-03-12 17:50:47 +01:00
yflory
037a6ccc35 Fix INVALID_RESPONSE error in the file app 2018-02-16 12:02:20 +01:00
yflory
f004c4d701 lint compliance 2018-02-14 19:42:00 +01:00
yflory
e83e589cf0 Kick from pad when an owned channel is deleted + whiteboard and poll 2018-02-14 19:41:07 +01:00
Caleb James DeLisle
e78cc4ce7e manual merge 2018-02-06 11:41:57 +01:00
Caleb James DeLisle
cac5e75a99 Add a repl to improve debugging on the prod server 2018-02-06 11:35:24 +01:00
ansuz
8e2c9ebfa3 lint compliance or something 2018-01-29 14:26:24 +01:00
ansuz
f134f11b73 new getDeletedPads rpc 2018-01-29 12:40:09 +01:00
Caleb James DeLisle
4de6bd6195 Merge branch 'staging' of github.com:xwiki-labs/cryptpad into staging 2018-01-23 16:32:05 +01:00
Caleb James DeLisle
014aacc76a Added a new RPC to get file offsets of messages by hash or of last 2 checkpoints, also improved checking of valid channel names and fixed a pull-stream bug and exposed async-store to the window 2018-01-23 16:31:59 +01:00
ansuz
3c1779a667 give function a more sensible name 2018-01-19 10:27:16 +01:00
ansuz
5114292b43 implement 'removeOwnedChannel' rpc and...
additional checks for rpc permissions
2018-01-19 10:26:21 +01:00
ansuz
544a26f6b3 fix a typo 2018-01-19 10:25:29 +01:00
ansuz
02dbe9e458 enforce maxUploadSize 2018-01-18 12:19:58 +01:00
ansuz
869909b101 implement more reliable check for whether a channel on the server is new 2017-12-22 16:24:17 +01:00
Caleb James DeLisle
bd6cb98c1e e is an error and not a string, stops stack traces in the server log 2017-12-19 18:32:53 +01:00
Caleb James DeLisle
0aae61f72e Anonymous RPC GET_FILE_SIZE does not work correctly unless at least one authenticated RPC has been called first. Also RPC failures (throw error) are silent in the logs 2017-12-12 14:18:48 +01:00
Caleb James DeLisle
7a09bf43eb Fix a truly silly mistake in rpc.js and make the pad-not-pinned message get removed if a registered user joins 2017-12-08 14:46:32 +01:00
Caleb James DeLisle
ba74f9d37a Merge branch 'staging' of github.com:xwiki-labs/cryptpad into staging 2017-12-05 18:32:29 +01:00
Caleb James DeLisle
c702a23c77 Initial work on the 'pad will expire' logic 2017-12-05 17:48:30 +01:00
ansuz
1613b1c086 flow compliance 2017-12-05 15:15:49 +01:00
ansuz
c3e3da4948 allow administrators to increase limits for friends 2017-12-05 15:07:09 +01:00
Caleb James DeLisle
7544bb1ced Fix a few issues with RPC which I managed to verschlumbesserung 2017-11-30 18:48:19 +01:00
Caleb James DeLisle
5187b3f26c Flow compliance and fix a few bugs in rpc.js 2017-11-30 18:32:20 +01:00
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