1
0
Fork 0
mirror of https://we.phorge.it/source/phorge.git synced 2025-02-27 05:59:08 +01:00
phorge-phorge/src/applications/files
epriestley 4f933d34f5 Improve S3 integration
Summary:
  - Fixes T2257. We wrote a 0-length file (erroneously?) and currently throw when retrieving it. This also happens if you intentionally upload an empty file. I'm not sure what happened with the image: we check for errors during the write, so its existence implies S3 told us the write was successful and then lost the data. Since this is a one-off, I'm not too worried about it. The indistinguishable case of an actually empty file is fixed, at least.
  - Writes to a directory like "phabricator/ab/cd/efgh" instead of "phabricator/abcdefgh". When I had to go look for the file on S3 it took a few minutes of scrolling since the web interface isn't very fast. Make it so a file can be located by navigating through pieces of the hash.

Test Plan: Viewed an empty file, no fatal. Viewed the file from T2257 locally, no fatal (no data either, but it's gone). Uploaded a file, saw a nice path.

Reviewers: btrahan

Reviewed By: btrahan

CC: aran

Maniphest Tasks: T2257

Differential Revision: https://secure.phabricator.com/D4303
2012-12-30 13:44:37 -08:00
..
application Use application icons for "Eye" menu and Crumbs 2012-12-07 13:37:28 -08:00
conduit Move Conduit methods inside applications 2012-12-21 12:21:59 -08:00
controller Rename setViewer() to setUser() in views 2012-12-21 12:18:55 -08:00
engine Improve S3 integration 2012-12-30 13:44:37 -08:00
engineselector Delete license headers from files 2012-11-05 11:16:51 -08:00
exception Delete license headers from files 2012-11-05 11:16:51 -08:00
management Delete license headers from files 2012-11-05 11:16:51 -08:00
query Modernize Files lists 2012-12-16 16:33:02 -08:00
storage Delete PhabricatorRemarkupRuleProxyImage 2012-11-07 14:31:43 -08:00
view Modernize file uploads 2012-12-16 16:34:01 -08:00
PhabricatorImageTransformer.php Delete license headers from files 2012-11-05 11:16:51 -08:00