Commit graph

  • 12b0cdde06 mediaapi/writers/upload: Explain the use of TeeReader Robert Swain 2017-05-19 11:01:44 +0200
  • f7d11f87c1 mediaapi/writers/upload: Add comment about why we hash the file data Robert Swain 2017-05-19 10:59:12 +0200
  • 3e5ac85ce1 mediaapi/writers/upload: Clarify TODO comment Robert Swain 2017-05-19 10:53:47 +0200
  • cdd4222e45 mediaapi/writers/fileutils: Return errors to log using request context Robert Swain 2017-05-19 10:46:50 +0200
  • df476010af Update version of gomatrixserverlib Mark Haines 2017-05-18 20:21:49 +0100
  • 5dd90fbff3 mediaapi/writers/fileutils: Make note of further file path validation todo Robert Swain 2017-05-18 18:00:56 +0200
  • 7af45e4664 mediaapi/writers/upload: Refactor Upload() into three new functions Robert Swain 2017-05-18 17:56:19 +0200
  • 00e8fed3a7 mediaapi/writers: Add validation and error handling to getPathFromMediaMetadata Robert Swain 2017-05-18 17:39:30 +0200
  • 10a2b2f8e6 mediaapi: Also rename all basePath variables to absBasePath for clarity Robert Swain 2017-05-18 17:37:32 +0200
  • 995e1f2c99 cmd/dendrite-media-api-server: Make base path absolute Robert Swain 2017-05-18 17:25:12 +0200
  • fa076d3a07 Use bcrypt correctly Kegan Dougal 2017-05-18 16:22:27 +0100
  • 9b48a67e14 Add AccountDatabase for storing user accounts Kegan Dougal 2017-05-18 15:48:58 +0100
  • f5422787a1 mediaapi/writers: Move single-value error return assignment into if Robert Swain 2017-05-18 16:02:43 +0200
  • 9fc5abdb3f mediaapi/writers: Rename utils.go to fileutils.go Robert Swain 2017-05-18 16:01:06 +0200
  • 2e795ed8aa mediaapi/storage: Improve GetMediaMetadata description Robert Swain 2017-05-18 15:57:07 +0200
  • 1f2ac60bee mediaapi/routing: Sync make() to makeAPI() as in clientapi Robert Swain 2017-05-18 15:53:48 +0200
  • 04c4a2d05a cmd/dendrite-media-api-server: Move os.Getenv() for consistency Robert Swain 2017-05-18 15:50:09 +0200
  • 426a0365cf Rename "make" to "makeAPI" and factor out some more common code into it (#109) Mark Haines 2017-05-18 13:47:23 +0100
  • 7c2c3a1216 Fix typo Mark Haines 2017-05-18 13:37:16 +0100
  • 0dce7f483d Rename "make" to "makeAPI" and factor out some more common code into it Mark Haines 2017-05-18 13:31:47 +0100
  • cf736d746d hook: Make go vet run all tests and fix warnings Kegan Dougal 2017-05-18 12:27:11 +0100
  • 1057e2e117 Merge branch 'master' into rob/media-upload Robert Swain 2017-05-18 12:47:41 +0200
  • e4a97d13b3 Merge pull request #108 from matrix-org/rob/golang-1.8 Robert Swain 2017-05-18 12:47:08 +0200
  • 4df470eab5 .travis.yml: Bump golang to 1.8 Robert Swain 2017-05-18 12:38:09 +0200
  • ec0d584fe7 cmd/dendrite-media-api-server: Log format string with Infof not Info Robert Swain 2017-05-18 12:23:17 +0200
  • 8085c1f863 mediaapi/types: Clarify what is ActiveRemoteRequests.Set's key Robert Swain 2017-05-18 12:19:03 +0200
  • 28ef35d36a mediaapi/storage: Rework GetMediaMetadata API to return new MediaMetadata Robert Swain 2017-05-18 12:09:33 +0200
  • 2fca4bbd65 mediaapi/config: Fix max_file_size_bytes YAML tag Robert Swain 2017-05-18 11:58:41 +0200
  • c5cd5a93b9 mediaapi: Use ServerName type from gomatrixserverlib Robert Swain 2017-05-18 11:57:44 +0200
  • bd9db7557a mediaapi/README: Add link to spec section Robert Swain 2017-05-18 11:50:24 +0200
  • 7727a8c61e cmd/dendrite-media-api-server: Add MAX_FILE_SIZE_BYTES configuration Robert Swain 2017-05-18 11:44:48 +0200
  • 846aece163 mediaapi: MaxFileSize -> MaxFileSizeBytes Robert Swain 2017-05-18 11:36:26 +0200
  • 35a0b5d2e9 cmd/dendrite-media-api-server: Add BASE_PATH configuration Robert Swain 2017-05-18 11:34:01 +0200
  • ff3009ffdd cmd/dendrite-media-api-server: Add SERVER_NAME configuration Robert Swain 2017-05-18 11:32:30 +0200
  • deee6f84c7 mediaapi/writers/upload: Move file first as db is source of truth Robert Swain 2017-05-18 11:10:41 +0200
  • 3f904e1cdb mediaapi/writer/upload: Remove unnecessary logic Robert Swain 2017-05-18 11:09:09 +0200
  • f28235c05d mediaapi/writers/upload: Factor out removeDir Robert Swain 2017-05-18 11:07:03 +0200
  • 5348b64edc mediaapi/writers/download: Reduce complexity of copyToActiveAndPassive Robert Swain 2017-05-18 10:17:11 +0200
  • b80d5ab919 cmd/mediaapi-integration-tests: Test downloading same file 100 times Robert Swain 2017-05-18 09:12:01 +0200
  • 8cf507f85f mediaapi/writers: Never return server errors to user but log them Robert Swain 2017-05-18 09:04:36 +0200
  • eddc3e0789 mediaapi/writers/download: Log warnings about why we return 404 Robert Swain 2017-05-18 08:57:29 +0200
  • c43aa20adc mediaapi/writers/download: Remove duplicate log message Robert Swain 2017-05-18 08:56:54 +0200
  • 917c433fd2 Minor refactoring (#106) Kegsay 2017-05-17 17:29:26 +0100
  • 5b468ec165 s/Roomserver/NewOutputRoomEvent/ Kegan Dougal 2017-05-17 17:19:55 +0100
  • 3c6a8e80c2 Minor refactoring Kegan Dougal 2017-05-17 16:47:20 +0100
  • c8c5a40ebd Update README.md Kegsay 2017-05-17 16:37:58 +0100
  • 0457a3bb69 State of the union update Kegsay 2017-05-17 16:36:17 +0100
  • ccd0eb2851 /sync bugfix: Check transitions to 'leave' do not leak events afterwards (#105) Kegsay 2017-05-17 16:21:27 +0100
  • 8603e16d73 /sync bugfix: Check transitions to 'leave' do not leak events afterwards Kegan Dougal 2017-05-17 16:06:09 +0100
  • a8b7130745 mediaapi/writers/download: Clean up copyToActiveAndPassive Robert Swain 2017-05-17 16:39:01 +0200
  • d5a44fd3e8 Only wake up /sync requests which the event is for (#101) Kegsay 2017-05-17 15:38:24 +0100
  • 9f8458716d mediaapi/writers/download: Pass config members to respondFromRemoteFile Robert Swain 2017-05-17 16:37:11 +0200
  • 19ffa4d75a mediaapi/writers/download: respondFromLocalFile only needs basePath Robert Swain 2017-05-17 16:30:01 +0200
  • 13b1051a3e mediaapi/writers/download: Add logger to downloadRequest and use it Robert Swain 2017-05-17 16:24:30 +0200
  • 6e24fb86cb mediaapi/writer/download: Make functions into methods and use MediaMetadata Robert Swain 2017-05-17 16:13:54 +0200
  • 3f334fac75 Fix race between Wait() and Broadcast() Kegan Dougal 2017-05-17 14:55:11 +0100
  • f641e7af14 Use a single lock for protecting currPos and userStreams Kegan Dougal 2017-05-17 13:44:17 +0100
  • 937162a722 mediaapi/routing: Pass pointer to config struct instead of copying Robert Swain 2017-05-17 13:29:35 +0200
  • 8e7297990c Merge branch 'master' into kegan/notify-relevant-requests Kegan Dougal 2017-05-17 10:26:23 +0100
  • 0a3d44a80a Handle room transitions to 'leave' in incremental /sync requests (#104) Kegsay 2017-05-17 10:25:59 +0100
  • 502a925781 Add named indices to tests for clarity Kegan Dougal 2017-05-16 17:54:59 +0100
  • 2cf37d1708 Add test for join/leave in the same /sync response Kegan Dougal 2017-05-16 17:38:22 +0100
  • 2f2a0d5940 Bugfix: Make sure you don't get events for rooms you've left Kegan Dougal 2017-05-16 15:29:56 +0100
  • 409f44c396 Add test for transition to leave Kegan Dougal 2017-05-16 13:50:54 +0100
  • aa3737a2d2 Handle room transitions to 'leave' in incremental /sync requests Kegan Dougal 2017-05-16 13:44:48 +0100
  • d7de6c3f33 Review comments Kegan Dougal 2017-05-16 12:27:40 +0100
  • 474e836b8b Merge branch 'master' into kegan/notify-relevant-requests Kegan Dougal 2017-05-16 11:01:55 +0100
  • 675759c192 Add invites to /sync responses (#103) Kegsay 2017-05-15 17:41:54 +0100
  • d488a56679 Add invites to /sync responses Kegan Dougal 2017-05-15 17:29:16 +0100
  • 94e1c62745 Remove intermediary /sync response struct (#102) Kegsay 2017-05-15 15:18:08 +0100
  • 258f1a604f Names Kegan Dougal 2017-05-15 15:17:06 +0100
  • a385241d3d Remove intermediary /sync response struct Kegan Dougal 2017-05-15 15:08:34 +0100
  • 2ff85d678d Finish notifier tests Kegan Dougal 2017-05-15 14:33:15 +0100
  • 5c9eb9c13a Tidy up tests and add invite test case Kegan Dougal 2017-05-15 11:59:55 +0100
  • 269cab118a Fix tests so they don't race Kegan Dougal 2017-05-15 11:51:04 +0100
  • 37ded4fe2f Use the pos returned by Wait() rather than re-querying Kegan Dougal 2017-05-15 11:36:17 +0100
  • baa47b5a71 Add UserStream type and unit test stub Kegan Dougal 2017-05-15 11:30:15 +0100
  • 1c7f9f929b Remove forceBlock flag Kegan Dougal 2017-05-15 10:02:54 +0100
  • 5fce7e23b0 Start adding tests Kegan Dougal 2017-05-12 17:56:33 +0100
  • cc7117392f Send the entire room state down when transitioning to 'join' on a /sync response (#100) Kegsay 2017-05-12 16:56:17 +0100
  • b3ad8475ac Add query for all joined users in all rooms. Glue everything together. Kegan Dougal 2017-05-12 16:27:46 +0100
  • aab28c2970 Implement selective /sync request wakeups Kegan Dougal 2017-05-12 16:15:03 +0100
  • b058c58a20 Send the entire room state down when transitioning to 'join' on a /sync response Kegan Dougal 2017-05-12 11:22:04 +0100
  • 2a9abefd92 Add more syncserver tests (#99) Kegsay 2017-05-11 15:51:35 +0100
  • 7677d031a9 Add more syncserver tests Kegan Dougal 2017-05-11 15:02:28 +0100
  • a821b9155f mediaapi/writers/utils: Reorder createFileWriter return parameters for consistency Robert Swain 2017-05-11 14:40:35 +0200
  • 074e899000 mediaapi/writers/utils: Move and reuse createTempFileWriter Robert Swain 2017-05-11 14:39:40 +0200
  • abcbb57aa1 mediaapi/writers/download: A bunch more refactoring Robert Swain 2017-05-11 14:31:24 +0200
  • 6c3dbb9b48 mediaapi/writers/download: Factor out createRemoteRequest Robert Swain 2017-05-11 10:36:32 +0200
  • ef7dc8c8c5 mediaapi/writers/download: Clarify log message that file is remote Robert Swain 2017-05-11 09:31:40 +0200
  • 5e66ad6d39 mediaapi/writers/download: Comment the flow of respondFromRemoteFile Robert Swain 2017-05-11 09:30:10 +0200
  • da28e4a3e2 mediaapi/writers/download: Update TODO comment that is done Robert Swain 2017-05-11 09:19:56 +0200
  • 9c29a31e7e mediaapi/writers/download: Factor out respondFromRemoteFile Robert Swain 2017-05-11 09:19:34 +0200
  • b6af021858 mediaapi/writers/download: Unlock activeRemoteRequests after too many tries Robert Swain 2017-05-11 09:18:02 +0200
  • f0c6ec23c9 mediaapi/writers/download: Move log messages to correct code paths Robert Swain 2017-05-11 09:17:37 +0200
  • 563330b82a mediaapi/writers/download: Rename attempts to tries Robert Swain 2017-05-11 09:16:20 +0200
  • a506985a66 Allow multiple sync server test requests (#98) Kegsay 2017-05-10 17:48:35 +0100
  • 1bad29d95d Review comments Kegan Dougal 2017-05-10 17:45:27 +0100
  • e6107a7b9e Comments Kegan Dougal 2017-05-10 15:15:50 +0100
  • 304a275e1b mediaapi/writers/download: Give remote files a placeholder UserID Robert Swain 2017-05-10 16:09:17 +0200