Page MenuHomePhabricator

When creating a task with a non existing parent parameter, there is no warning the parent task doesn't exist
Closed, ResolvedPublic

Description

When creating a subtask, a check if the parent task exists, and a warning if not, would be nice.

e.g. https://secure.phabricator.com/maniphest/task/create/?parent=920000

I spotted this during a migration operation, where after a database reset, I clicked on the link of a cached task, not anymore present.

But that could also occur in regular create workflow, if someone tweaks the URL to quickly add a parameter not directly accessible in the create new task form.

Revisions and Commits

Restricted Differential Revision

Event Timeline

dereckson raised the priority of this task from to Low.
dereckson updated the task description. (Show Details)
dereckson added a project: Maniphest.
dereckson added a subscriber: dereckson.

Should 404 on edit? or on save?

On edit. Specifically, if you click a link similar to this one:

https://secure.phabricator.com/maniphest/task/create/?parent=920000

...you should get a 404 back, not an edit form.

lpriestley added a revision: Restricted Differential Revision.Jan 6 2015, 7:47 PM
epriestley closed this task as Resolved by committing Restricted Diffusion Commit.Jan 6 2015, 7:49 PM
epriestley added a commit: Restricted Diffusion Commit.