Page MenuHomePhabricator

Cannot Edit Comment on Files
Closed, ResolvedPublic

Description

Every time I try to edit or delete my own comment on a File, I get an error:

#1062: Duplicate entry 'PHID-USER-e4345xf2rzjrcqcpwefc-PHID-XACT-FILE-63l2duvntgluzd5' for key 'key_draft'

On my own installation (updated each morning to latest stable) , this just quietly fails with a grayed out screen,, which doesn't go away until one refreshes. I suspect the same error in the background.

Steps to Duplicate:

  1. Create a comment on a File object.
  2. Edit the comment.
  3. Note the error message, and that the edit does not save.
  4. Try to delete your own comment.
  5. Note the error message again, and that the comment is not deleted.

Revisions and Commits

Event Timeline

We are also able to reproduce this on our installation.
Currently we are using Version 05699388804fc6ae1df5a17559917d218c4ec26d of phabricator.

Note that you need to bin/storage upgrade after picking up D16312 for this change to take effect. You should normally be doing this anyway, just mentioning it since it's not obvious that this would require database adjustments.

Awesome, thanks @epriestley. The update cron script runs that bin/storage upgrade every time.