Commit Graph

78 Commits (e0ae0fcd9185d28ff9d391aa093fcfad61192ed4)

Author SHA1 Message Date
ansuz a28a59abf0 harden server further against bad channel ids
ansuz a756faf818 lint compliance
ansuz eeb2ee2d17 add clear channel rpc
ansuz 63fd7b4dde implement EXPIRE_SESSION rpc
ansuz cb7efeebe1 don't require admins to explicitly enable uploads
ansuz 9bf9130b9d fix error in pin reset
ansuz 708d5ae35f remove noisy log calls
ansuz 6ac056e314 make explicit file size RPCs unauthenticated
ansuz d2085c1269 enable logging of rpc calls
ansuz 9d83214158 forbid cache poisoning via botched reset calls
ansuz 100cc1792a non-existent files have size 0
ansuz 278125747c only log errors if there is an error
ansuz 977faee40b expose more debugging information from rpc errors
ansuz 8bee45d0f4 don't try to replace undefined
ansuz 52975a2f09 allow users to pin the first time, even if they are over their limit
ansuz 192a517e64 handle nonexistent files in getUploadSize
ansuz 5bd7e19ddd guard against invalid channels, make session expiration time configurable
ansuz aa296eadff pass correct argument into getFileSize
ansuz f6e443aeb2 put cookie requests back on authenticated rpc list
ansuz f631973f1f optimize file upload
ansuz 82f5d3c96f abstract checks for authenticated RPCs
ansuz 8507f77116 throw if adminEmail and allowSubscriptions are not compatible
ansuz 605377cf31 update default configuration file with new attributes and comments
ansuz c4f8286be6 add timestamp to rpc error logs
Caleb James DeLisle 66520b6041 cleaned up the accounts, limits and revenue sharing and unified the config in one place
ansuz 91ba41b8e8 hotfix for account ids
ansuz ff8701b6ba send note along with limit
ansuz 5179252d3b fix merge conflicts
ansuz 6e7fe87974 WIP debug file upload errors. use better error strings
yflory 0c2f84058b Improve css for the file app
yflory 67a04a16ec Merge branch 'staging' of github.com:xwiki-labs/cryptpad into staging
yflory 1ab6eb3c5d Add a queue for multiple uploads in the file app
ansuz 7d369fb5e0 move rpc warnings out of server and into rpc
ansuz d9f128e923 send appropriate responses to upload rpc calls
ansuz d71e12713a handle empty arrays when reducing
ansuz df1433b53f don't pin if users don't have space.
better validation of rpc calls
ansuz 98828730b4 refactor more
ansuz 24eb928ef8 simplify rpc function signatures
ansuz c381e85384 correctly identify users' limits by unescaped public key
yflory 87fa28180a Display an upgrade button in the settings page
ansuz dfe3eac606 big rpc refactor:
* support pinning files
* include pinned files in usage calculation
* safer session handling
* fix bugs in limit update code
ansuz 591c5a7844 add TODOs, integrate upload size checks
ansuz fa4b17e2bc use callback in 'getLimit'
ansuz a249435003 refactor limit handling a bit
yflory d2ba8f1c27 Use the new format for the storage limits
yflory e123ad0333 Use a POST request to get the storage limits
yflory 57ee7de7d4 Update and return the storage limit
ansuz db2f7a5e36 add todos and change file id size
ansuz 3ad99be1ef restrict uploads to authenticated users
ansuz f329726fa4 fix undefined reference