Page MenuHomePhabricator
Feed Advanced Search

Apr 18 2017

amckinley closed T10828: File deletion should be queued up and run by daemons as Resolved by committing rPbe00264ae74b: Make daemons perform file deletion.
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 rPb54adc6161c2: Kick off indexing for File objects on creation.
Apr 18 2017, 3:38 PM · Contributor Onboarding, Files
amckinley added a revision to T8788: Allow querying for files by name: D17718: Kick off indexing for File objects on creation.
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: D17702: Implement ngram search for File objects.
Apr 18 2017, 12:37 AM · Contributor Onboarding, Files

Apr 17 2017

epriestley added a revision to T8788: Allow querying for files by name: D17704: Extend "fulltext" and "ngrams" interfaces from "indexable" interface.
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 rPa7a068f84cd0: Correct two parameter strictness issues with file uploads.
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: D17651: Correct two parameter strictness issues with file uploads.
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 rP49132b884b6f: Sell Yellow! Buy Indigo!.
Apr 10 2017, 10:01 PM · Files, PHUI
epriestley added a revision to T12504: Files "Temporary" badge is white-on-grey: D17649: Sell Yellow! Buy Indigo!.
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: D17629: Provide "bin/files integrity" for debugging, maintaining and backfilling integrity hashes.
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: D17627: When requesting file data, make "Range: bytes=0-" work correctly.
Apr 5 2017, 6:34 PM · Files
epriestley added a revision to T12219: Some MP4 videos do not play in Chrome: D17626: Support "Range: bytes=123-" requests.
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 rP45fc4f6f6407: Iterate over ranges correctly for encryped files.
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: D17625: Store and verify content integrity checksums for files.
Apr 5 2017, 4:56 PM · Files
epriestley added a revision to T8266: Some audio isn't streaming correctly in Safari: D17624: Correct an issue where the wrong "Content-Length" was set for partial content responses.
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: D17623: Iterate over ranges correctly for encryped files.
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 rARCa59cfca5f190: Upgrade "arc upload" to use SHA256.
Apr 4 2017, 11:56 PM · Files
epriestley closed T8348: `arc download` doesn't support chunked downloads as Resolved by committing rARC82b7cd778a28: Make "arc download" use "file.search" if available.
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: D17622: Upgrade "arc upload" to use SHA256.
Apr 4 2017, 10:54 PM · Files
epriestley added a revision to T12464: Move away from SHA1 in Files: D17621: Allow "arc upload" to work correctly if it can not hash content.
Apr 4 2017, 10:49 PM · Files
epriestley added a revision to T12464: Move away from SHA1 in Files: D17620: Upgrade File content hashing to SHA256.
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: D17619: Remove SHA1 file content hashing and make Files work without any hashing.
Apr 4 2017, 10:24 PM · Files
epriestley added a revision to T12464: Move away from SHA1 in Files: D17618: Deprecate "file.uploadhash".
Apr 4 2017, 9:40 PM · Files
epriestley added a revision to T12464: Move away from SHA1 in Files: D17617: Remove PhabricatorFile::buildFromFileDataOrHash().
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: D17616: Make the Files "TTL" API more structured.
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: D17614: Make "arc download" use "file.search" if available.
Apr 4 2017, 4:53 PM · Restricted Project, Files, Arcanist
epriestley added a revision to T11357: Move Files to EditEngine and modern APIs: D17613: Only require POST to fetch file data if the viewer is logged in.
Apr 4 2017, 4:10 PM · Restricted Project, Files
epriestley added a revision to T11357: Move Files to EditEngine and modern APIs: D17612: Provide a modern ("v3") API for querying files ("file.search").
Apr 4 2017, 3:50 PM · Restricted Project, Files
epriestley added a revision to T11357: Move Files to EditEngine and modern APIs: D17611: Move Files editing and commenting to EditEngine.
Apr 4 2017, 3:04 PM · Restricted Project, Files
epriestley added a revision to T11357: Move Files to EditEngine and modern APIs: D17610: Move Files to ModularTransactions.
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
epriestley moved T12464: Move away from SHA1 in Files from Backlog to vNext on the Files board.
Mar 29 2017, 7:06 AM · Files
epriestley created T12464: Move away from SHA1 in Files.
Mar 29 2017, 7:06 AM · Files

Mar 27 2017

chad moved T8200: Upload File explanation dialog displays behind fullscreen editor from Backlog to Fullscreen Editor on the Remarkup board.
Mar 27 2017, 3:47 PM · Restricted Project, Remarkup, Files

Mar 20 2017

epriestley closed T12408: Security: "Show Raw File" in Differential generated files with overbroad permissions as Resolved.

We don't plan to take any other upstream actions here, but let us know if anyone has further questions.

Mar 20 2017, 2:16 PM · Differential, Files, Security

Mar 18 2017

hach-que added a comment to T7789: Support Git Large File Storage.

So our only option is to convert all our LFS objects into normal Git objects, increasing both our download times, and increasing your storage and bandwidth costs? Like our Git LFS objects for the entire repository total around 800MB, and without Git LFS, our build server will have to download that from Phacility every single time it does a build.

Mar 18 2017, 5:04 AM · Customer Impact, Restricted Project, Files, Diffusion
epriestley added a comment to T7789: Support Git Large File Storage.

We have no plans to move this forward or enable it in the Phacility cluster in the near future.

Mar 18 2017, 4:56 AM · Customer Impact, Restricted Project, Files, Diffusion
hach-que added a comment to T7789: Support Git Large File Storage.

Is this going to be enabled in Phacility soon? We just realised that Phacility doesn't appear to have it on, and this is a major blocker for us moving from our own instance to Phacility:

Mar 18 2017, 4:52 AM · Customer Impact, Restricted Project, Files, Diffusion

Mar 16 2017

epriestley added a comment to T12408: Security: "Show Raw File" in Differential generated files with overbroad permissions.

(You could also pipe the list into bin/remove destroy --force, equivalently.)

Mar 16 2017, 8:22 PM · Differential, Files, Security
epriestley added a comment to T12408: Security: "Show Raw File" in Differential generated files with overbroad permissions.

You can re-run the migration explicitly with:

Mar 16 2017, 8:22 PM · Differential, Files, Security