Page MenuHomePhabricator

Fix an issue where Phriction moves to new locations would fail with a "content required" error
ClosedPublic

Authored by epriestley on Jun 2 2017, 11:14 PM.
Tags
None
Referenced Files
F19303256: D18069.id.diff
Tue, Dec 23, 9:58 PM
F18836770: D18069.diff
Oct 27 2025, 3:36 AM
F18766443: D18069.id.diff
Oct 7 2025, 4:43 PM
F18740269: D18069.diff
Oct 2 2025, 1:32 AM
F18658171: D18069.id43460.diff
Sep 23 2025, 5:10 AM
F18656146: D18069.diff
Sep 22 2025, 9:33 PM
F18618919: D18069.diff
Sep 15 2025, 1:19 AM
F18566356: D18069.id.diff
Sep 9 2025, 2:31 PM
Subscribers
None

Details

Summary

Ref T12793. I'd like to understand exactly when we broke this, but this seems to be a minimal fix that shouldn't do anything surprising.

When you move document /a/ to /a/b/ and that path doesn't exist yet, the Content transaction currently fails because there's "no content". The content gets added later by the "move" transaction but this is implicit.

To make this work, just ignore the "missing field" error. This is a little roundabout but unlikely to break anything in weird ways.

Test Plan
  • Moved document /a/b/ to /a/b/c/.
  • Before patch: error about missing content.
  • After patch: move worked properly.

Diff Detail

Repository
rP Phabricator
Lint
Lint Not Applicable
Unit
Tests Not Applicable