Page MenuHomePhabricator
Feed Advanced Search

Apr 20 2017

epriestley added a comment to T12606: Investigate browser-upload-to-S3 to reduce load on web pool during large file uploads.

I suspect this isn't worth the complexity. If you drag-and-drop, the maximum request size is 4MB (one chunk) and we get a nice progress bar, resumable uploads, and the bucket can remain completely private. And we can do encryption and deduplicate file blocks.

Apr 20 2017, 7:45 PM · Phacility, Files
amckinley created T12606: Investigate browser-upload-to-S3 to reduce load on web pool during large file uploads.
Apr 20 2017, 7:34 PM · Phacility, Files

Apr 18 2017

amckinley closed T12587: Migrate file deletion to modular transactions as Resolved by committing Restricted Diffusion Commit.
Apr 18 2017, 8:01 PM · Files
amckinley added a revision to T12587: Migrate file deletion to modular transactions: Restricted Differential Revision.
Apr 18 2017, 7:23 PM · Files
epriestley added a comment to T12587: Migrate file deletion to modular transactions.

We'd also have to add locking to prevent a race like this:

Apr 18 2017, 7:11 PM · Files
epriestley added a comment to T12587: Migrate file deletion to modular transactions.

My gut is to wait for users to hit those cases before building solutions for them since I think it's unlikely any of that will ever turn into a real problem.

Apr 18 2017, 7:07 PM · Files
amckinley added a comment to T12587: Migrate file deletion to modular transactions.

@epriestley should it be possible to un-delete a File, the same way it's possible to archive and then un-archive a Paste? The only benefit I can see is that in an emergency where someone accidentally kicked off a delete for a bunch of files they didn't intend to, someone could stop the daemons and perform an undelete operation before restarting the daemons (instead of flushing the worker queue). I actually mostly coded it this way already by following along with PhabricatorPasteStatusTransaction.

Apr 18 2017, 6:47 PM · Files
amckinley updated the task description for T12587: Migrate file deletion to modular transactions.
Apr 18 2017, 6:10 PM · Files
amckinley created T12587: Migrate file deletion to modular transactions.
Apr 18 2017, 6:10 PM · Files
amckinley closed T10828: File deletion should be queued up and run by daemons as Resolved by committing Restricted Diffusion Commit.
Apr 18 2017, 6:09 PM · Contributor Onboarding, Daemons, Files, Bug Report
amckinley closed T8788: Allow querying for files by name as Resolved by committing Restricted Diffusion Commit.
Apr 18 2017, 3:38 PM · Contributor Onboarding, Files
amckinley added a revision to T8788: Allow querying for files by name: Restricted Differential Revision.
Apr 18 2017, 3:24 PM · Contributor Onboarding, Files
epriestley added a comment to T8788: Allow querying for files by name.

For the migration, let me just publish "run this command if you want to search existing files" in the change log for now, and then we can do the real migration if we see confusion about it. I bet 99% of the time you want to search for something you recently uploaded so the index will be functionally useful in a week even if you miss the guidance in the changelog.

Apr 18 2017, 12:47 AM · Contributor Onboarding, Files
epriestley added a comment to T8788: Allow querying for files by name.

To make the indexing work for new stuff, I think you can do this:

Apr 18 2017, 12:42 AM · Contributor Onboarding, Files
amckinley added a comment to T8788: Allow querying for files by name.

@epriestley I just landed D17702, without really tackling the problem of files being created in non-standard code paths. I searched the codebase for PhabricatorFile::initializeNewFile() and didn't find anything scary-looking; do you have any specific examples that might need updating?

Apr 18 2017, 12:41 AM · Contributor Onboarding, Files
amckinley added a revision to T8788: Allow querying for files by name: Restricted Differential Revision.
Apr 18 2017, 12:37 AM · Contributor Onboarding, Files

Apr 17 2017

epriestley added a revision to T8788: Allow querying for files by name: Restricted Differential Revision.
Apr 17 2017, 7:47 PM · Contributor Onboarding, Files
amckinley claimed T10828: File deletion should be queued up and run by daemons.
Apr 17 2017, 7:26 PM · Contributor Onboarding, Daemons, Files, Bug Report
amckinley claimed T8788: Allow querying for files by name.
Apr 17 2017, 6:06 PM · Contributor Onboarding, Files

Apr 12 2017

epriestley removed a project from T4752: Daemons may not have permission to remove files from local disk storage engine: Support Impact.
Apr 12 2017, 2:49 PM · Files

Apr 10 2017

joshuaspence added a comment to T12531: Unable to upload file: failed to read 4583864320 bytes after offset 0.

This seems to have fixed the issue. Thanks for the quick fix.

Apr 10 2017, 11:07 PM · Arcanist, Files, Bug Report
epriestley added a comment to T12515: Upgrading: File Integrity Hashing and SHA1.

T12531: Unable to upload file: failed to read 4583864320 bytes after offset 0 discusses one side effect of these changes, it should be fixed in HEAD of master and stable now.

Apr 10 2017, 11:04 PM · Files, Guides, Security
epriestley closed T12531: Unable to upload file: failed to read 4583864320 bytes after offset 0 as Resolved by committing Restricted Diffusion Commit.
Apr 10 2017, 11:01 PM · Arcanist, Files, Bug Report
epriestley added a comment to T12531: Unable to upload file: failed to read 4583864320 bytes after offset 0.

Thanks for that catch in D17651, let me know if you're still seeing issues after updating. I'll cherry-pick that to stable too.

Apr 10 2017, 11:00 PM · Arcanist, Files, Bug Report
epriestley added a comment to T12531: Unable to upload file: failed to read 4583864320 bytes after offset 0.

Yeah, that looks like it's consistent with the hypothesis above. I expect:

Apr 10 2017, 10:58 PM · Arcanist, Files, Bug Report
joshuaspence added a comment to T12531: Unable to upload file: failed to read 4583864320 bytes after offset 0.

Not sure if this is useful:

Apr 10 2017, 10:52 PM · Arcanist, Files, Bug Report
epriestley added a comment to T12531: Unable to upload file: failed to read 4583864320 bytes after offset 0.

Yeah, pretty sure what's happening is:

Apr 10 2017, 10:52 PM · Arcanist, Files, Bug Report
epriestley added a revision to T12531: Unable to upload file: failed to read 4583864320 bytes after offset 0: Restricted Differential Revision.
Apr 10 2017, 10:49 PM · Arcanist, Files, Bug Report
epriestley added a comment to T12531: Unable to upload file: failed to read 4583864320 bytes after offset 0.

I think the first error is causing (maybe?) the chunk engine to fail, so we're falling back to the "upload the entire file in one shot" engine, which ain't great on 4GB files.

Apr 10 2017, 10:44 PM · Arcanist, Files, Bug Report
epriestley added a comment to T12531: Unable to upload file: failed to read 4583864320 bytes after offset 0.

Alright, let me take a look. That exception is pretty specific and it may be obvious from the code.

Apr 10 2017, 10:39 PM · Arcanist, Files, Bug Report
joshuaspence added a comment to T12531: Unable to upload file: failed to read 4583864320 bytes after offset 0.

Hmm, I got a different error with a 9MB file. But this looks like a problem on our end:

Apr 10 2017, 10:39 PM · Arcanist, Files, Bug Report
joshuaspence added a comment to T12531: Unable to upload file: failed to read 4583864320 bytes after offset 0.

I originally tried a 1GB file and wasn't able to reproduce...

Apr 10 2017, 10:38 PM · Arcanist, Files, Bug Report
epriestley added a comment to T12531: Unable to upload file: failed to read 4583864320 bytes after offset 0.

(Actually maybe you need a 9MB file.)

Apr 10 2017, 10:37 PM · Arcanist, Files, Bug Report
epriestley added a comment to T12531: Unable to upload file: failed to read 4583864320 bytes after offset 0.

Does this reproduce with a 5MB file?

Apr 10 2017, 10:37 PM · Arcanist, Files, Bug Report
joshuaspence added a comment to T12531: Unable to upload file: failed to read 4583864320 bytes after offset 0.

From the server-side error logs:

Apr 10 2017, 10:35 PM · Arcanist, Files, Bug Report
joshuaspence added a comment to T12531: Unable to upload file: failed to read 4583864320 bytes after offset 0.

Okay, I managed to reproduce it with non-sensitive data:

Apr 10 2017, 10:28 PM · Arcanist, Files, Bug Report
joshuaspence created T12531: Unable to upload file: failed to read 4583864320 bytes after offset 0.
Apr 10 2017, 10:21 PM · Arcanist, Files, Bug Report
epriestley closed T12504: Files "Temporary" badge is white-on-grey as Resolved by committing Restricted Diffusion Commit.
Apr 10 2017, 10:01 PM · Files, PHUI
epriestley added a revision to T12504: Files "Temporary" badge is white-on-grey: Restricted Differential Revision.
Apr 10 2017, 9:57 PM · Files, PHUI

Apr 9 2017

epriestley added a comment to T8788: Allow querying for files by name.

We ultimately built an "ngram index" for this task, see T9979 for discussion.

Apr 9 2017, 11:24 AM · Contributor Onboarding, Files
epriestley moved T8788: Allow querying for files by name from Backlog to Intermediate on the Contributor Onboarding board.
Apr 9 2017, 11:18 AM · Contributor Onboarding, Files
epriestley added a comment to T10828: File deletion should be queued up and run by daemons.
  • When you click "Delete File", we currently delete the file in the web process. Since we've supported enormous files and pluggable storage backends for a while, this could take an arbitrarily long amount of time to complete.
    • Instead, we want to flag the file as "deleted", hide it in the web UI, and queue up a task in the daemons to actually get rid of the data.
Apr 9 2017, 11:13 AM · Contributor Onboarding, Daemons, Files, Bug Report
epriestley moved T10828: File deletion should be queued up and run by daemons from Backlog to Intermediate on the Contributor Onboarding board.
Apr 9 2017, 10:56 AM · Contributor Onboarding, Daemons, Files, Bug Report

Apr 6 2017

epriestley closed T12470: Store integrity hashes for file blobs in Files as Resolved.

See T12515 for followup guidance.

Apr 6 2017, 11:25 PM · Files
epriestley created T12515: Upgrading: File Integrity Hashing and SHA1.
Apr 6 2017, 11:24 PM · Files, Guides, Security
epriestley added a revision to T12470: Store integrity hashes for file blobs in Files: Restricted Differential Revision.
Apr 6 2017, 2:01 PM · Files

Apr 5 2017

epriestley moved T8788: Allow querying for files by name from v3 to vNext on the Files board.
Apr 5 2017, 8:28 PM · Contributor Onboarding, Files
epriestley moved T10828: File deletion should be queued up and run by daemons from v3 to vNext on the Files board.
Apr 5 2017, 8:28 PM · Contributor Onboarding, Daemons, Files, Bug Report
epriestley closed T9979: Build support for ngram indexes for substring searches (e.g., file, paste, package, task titles) as Resolved.

I'm going to call this resolved; T9979 is the survivor for Files and the Maniphest case is probably more involved (T6721).

Apr 5 2017, 7:54 PM · Owners, Files, ApplicationSearch
epriestley added a project to T8788: Allow querying for files by name: Contributor Onboarding.
Apr 5 2017, 7:52 PM · Contributor Onboarding, Files
epriestley added a project to T10828: File deletion should be queued up and run by daemons: Contributor Onboarding.
Apr 5 2017, 7:52 PM · Contributor Onboarding, Daemons, Files, Bug Report
epriestley added a comment to T12470: Store integrity hashes for file blobs in Files.

The HackerOne issue for this is here:

Apr 5 2017, 7:29 PM · Files
epriestley added a comment to T12470: Store integrity hashes for file blobs in Files.

The security part of this is fixed by D17625, but I'm planning to write a support script like bin/files integrity or similar to do things like "compute hashes for existing files" and "check that a file or set of files match their integrity hashes".

Apr 5 2017, 7:28 PM · Files
epriestley closed T12219: Some MP4 videos do not play in Chrome as Resolved.

This appears to be resolved for me, now. Handling Range: bytes=123- and Range: bytes=0- (plus the fixes for the broader issues in T8266 and T12079) seemed to be the key issues.

Apr 5 2017, 6:59 PM · Files
epriestley added a revision to T12219: Some MP4 videos do not play in Chrome: Restricted Differential Revision.
Apr 5 2017, 6:34 PM · Files
epriestley added a revision to T12219: Some MP4 videos do not play in Chrome: Restricted Differential Revision.
Apr 5 2017, 6:05 PM · Files
epriestley closed T8266: Some audio isn't streaming correctly in Safari as Resolved.

F60036 now plays correctly for me in Safari.

Apr 5 2017, 5:13 PM · Safari, Files
epriestley added a comment to T12079: Files does not serve HTTP "Content-Range" requests correctly if the underlying blob data is encrypted.

The video in T12078 now plays correctly for me so I think this is, in fact, resolved.

Apr 5 2017, 5:12 PM · Files, Public & Media Relations, Bug Report
epriestley closed T12079: Files does not serve HTTP "Content-Range" requests correctly if the underlying blob data is encrypted as Resolved by committing Restricted Diffusion Commit.
Apr 5 2017, 4:56 PM · Files, Public & Media Relations, Bug Report
epriestley added a revision to T12470: Store integrity hashes for file blobs in Files: Restricted Differential Revision.
Apr 5 2017, 4:56 PM · Files
epriestley added a revision to T8266: Some audio isn't streaming correctly in Safari: Restricted Differential Revision.
Apr 5 2017, 1:53 PM · Safari, Files
epriestley added a revision to T12079: Files does not serve HTTP "Content-Range" requests correctly if the underlying blob data is encrypted: Restricted Differential Revision.
Apr 5 2017, 1:35 PM · Files, Public & Media Relations, Bug Report

Apr 4 2017

epriestley closed T12464: Move away from SHA1 in Files as Resolved by committing Restricted Diffusion Commit.
Apr 4 2017, 11:56 PM · Files
epriestley closed T8348: `arc download` doesn't support chunked downloads as Resolved by committing Restricted Diffusion Commit.
Apr 4 2017, 11:16 PM · Restricted Project, Files, Arcanist
epriestley closed T8348: `arc download` doesn't support chunked downloads, a subtask of T11357: Move Files to EditEngine and modern APIs, as Resolved.
Apr 4 2017, 11:16 PM · Restricted Project, Files
epriestley added a comment to T8348: `arc download` doesn't support chunked downloads.

After D17614, arc download uses file.search to retrieve a URI it can GET, then does a normal HTTP GET to that URI, retrieving the file content in the HTTP response body.

Apr 4 2017, 11:14 PM · Restricted Project, Files, Arcanist
epriestley added a revision to T12464: Move away from SHA1 in Files: Restricted Differential Revision.
Apr 4 2017, 10:54 PM · Files
epriestley added a revision to T12464: Move away from SHA1 in Files: Restricted Differential Revision.
Apr 4 2017, 10:49 PM · Files
epriestley added a revision to T12464: Move away from SHA1 in Files: Restricted Differential Revision.
Apr 4 2017, 10:38 PM · Files
epriestley updated the task description for T12464: Move away from SHA1 in Files.
Apr 4 2017, 10:34 PM · Files
epriestley added a revision to T12464: Move away from SHA1 in Files: Restricted Differential Revision.
Apr 4 2017, 10:24 PM · Files
epriestley added a revision to T12464: Move away from SHA1 in Files: Restricted Differential Revision.
Apr 4 2017, 9:40 PM · Files
epriestley added a revision to T12464: Move away from SHA1 in Files: Restricted Differential Revision.
Apr 4 2017, 9:32 PM · Files
chad added a comment to T12504: Files "Temporary" badge is white-on-grey.

1mon9v.jpg (400×600 px, 63 KB)

Apr 4 2017, 9:01 PM · Files, PHUI
epriestley added a revision to T11357: Move Files to EditEngine and modern APIs: Restricted Differential Revision.
Apr 4 2017, 7:28 PM · Restricted Project, Files
epriestley moved T12504: Files "Temporary" badge is white-on-grey from Backlog to vNext on the Files board.
Apr 4 2017, 6:56 PM · Files, PHUI
epriestley created T12504: Files "Temporary" badge is white-on-grey.
Apr 4 2017, 6:56 PM · Files, PHUI
epriestley added a revision to T8348: `arc download` doesn't support chunked downloads: Restricted Differential Revision.
Apr 4 2017, 4:53 PM · Restricted Project, Files, Arcanist
epriestley added a revision to T11357: Move Files to EditEngine and modern APIs: Restricted Differential Revision.
Apr 4 2017, 4:10 PM · Restricted Project, Files
epriestley added a revision to T11357: Move Files to EditEngine and modern APIs: Restricted Differential Revision.
Apr 4 2017, 3:50 PM · Restricted Project, Files
epriestley added a revision to T11357: Move Files to EditEngine and modern APIs: Restricted Differential Revision.
Apr 4 2017, 3:04 PM · Restricted Project, Files
epriestley added a revision to T11357: Move Files to EditEngine and modern APIs: Restricted Differential Revision.
Apr 4 2017, 2:47 PM · Restricted Project, Files

Apr 3 2017

epriestley moved T7501: Documentation for Files from vNext to Far Future on the Files board.
Apr 3 2017, 4:05 PM · Files, Documentation

Apr 2 2017

Grimeh added a comment to T7789: Support Git Large File Storage.

Some feedback on this for if it's ever prioritised and picked up again, we've been using this internally for an Unreal Engine 4 based game project's binary assets for about 7 months now, we haven't run into any issues. Works great for us.

Apr 2 2017, 11:16 PM · Customer Impact, Restricted Project, Files, Diffusion
epriestley merged T12492: Allow an admin to delete files from the Web interface into T7593: Allow administrators to disable files to prevent "l33t w4r3z" abuse cases.
Apr 2 2017, 5:37 PM · Abuse, Files

Mar 30 2017

epriestley moved T10828: File deletion should be queued up and run by daemons from Backlog to v3 on the Files board.
Mar 30 2017, 7:35 PM · Contributor Onboarding, Daemons, Files, Bug Report
epriestley moved T4752: Daemons may not have permission to remove files from local disk storage engine from vNext to v3 on the Files board.
Mar 30 2017, 7:35 PM · Files
epriestley moved T8266: Some audio isn't streaming correctly in Safari from Backlog to vNext on the Files board.
Mar 30 2017, 7:34 PM · Safari, Files
epriestley moved T12219: Some MP4 videos do not play in Chrome from Backlog to vNext on the Files board.
Mar 30 2017, 7:34 PM · Files
epriestley moved T4056: Enhance Pholio/Files for additional File Types from Backlog to Far Future on the Files board.
Mar 30 2017, 7:34 PM · Restricted Project, Pholio, Files
epriestley moved T5293: Respect orientation metadata in Pholio and/or allow images to be rotated from Backlog to Far Future on the Files board.
Mar 30 2017, 7:33 PM · Files, Pholio
epriestley closed T9005: Accessing Files via links should be more like the @userx mouseover dialog as Resolved.

Files now render with a download link, which I think was the core issue here:

Mar 30 2017, 7:32 PM · Files
epriestley moved T8788: Allow querying for files by name from Backlog to v3 on the Files board.
Mar 30 2017, 7:31 PM · Contributor Onboarding, Files
epriestley moved T9979: Build support for ngram indexes for substring searches (e.g., file, paste, package, task titles) from Backlog to v3 on the Files board.
Mar 30 2017, 7:31 PM · Owners, Files, ApplicationSearch
epriestley moved T12182: PhabricatorPeopleProfilePictureController (and maybe other photo upload controllers) can fatal from Backlog to vNext on the Files board.
Mar 30 2017, 7:29 PM · Files
epriestley closed T12294: File Extension Changes while Downloading as Resolved.

Sounds like this is resolved.

Mar 30 2017, 7:28 PM · Files, Bug Report
epriestley moved T12470: Store integrity hashes for file blobs in Files from Backlog to vNext on the Files board.
Mar 30 2017, 7:28 PM · Files

Mar 29 2017

epriestley created T12470: Store integrity hashes for file blobs in Files.
Mar 29 2017, 6:27 PM · Files
epriestley moved T12079: Files does not serve HTTP "Content-Range" requests correctly if the underlying blob data is encrypted from Backlog to vNext on the Files board.
Mar 29 2017, 7:07 AM · Files, Public & Media Relations, Bug Report
epriestley added a project to T12079: Files does not serve HTTP "Content-Range" requests correctly if the underlying blob data is encrypted: Files.
Mar 29 2017, 7:07 AM · Files, Public & Media Relations, Bug Report