phacility/phabricator · warning · Exception
Query does not match any objects you have permission to…
Error message
Query does not match any objects you have permission to edit.
What it means
The bulk engine loads the editable subset (objects the actor may edit) separately from the matched set. If not a single matched object is editable, it refuses with this permission error rather than presenting a dead editing UI.
Solutions
- Narrow the query to objects you can edit (for example 'owned by me')
- Ask an administrator to run the bulk edit or grant the edit capability
- Check the edit policies of representative matched objects to understand the restriction
Defensive patterns
Strategy: validation
Validate before calling
// Compute the editable subset up front, exactly as the bulk engine does.
$editable = id(new PhabricatorPolicyFilter())
->setViewer($viewer)
->requireCapabilities(array(PhabricatorPolicyCapability::CAN_EDIT))
->apply($objects);
if (!$editable) {
// no matched object can be edited; narrow the query or escalate
} Prevention
- Narrow bulk queries to objects you own or can edit
- Check edit policies on sample objects before launching large bulk edits
- Escalate to an administrator when the edit is legitimate but permission-blocked
When it happens
Trigger: Bulk-editing a query whose results are all policy-restricted against the acting user, for example a filter matching only other users' private objects.
Common situations: Non-admin users attempting bulk edits over broad queries; install-wide policy changes that revoked edit rights on the matched type.
Understand the failure class
Background: "You do not have permission" / 403 Forbidden errors: authenticated but not allowed — causes and fixes across open-source libraries — this error's family across 31 libraries.
Related errors
- 1044, 1142, 1143, 1227
- Configuration file " " exists, but could not be read.
- ERR_BAD_REVISION
- err:policy
- Expected a query key or a set of query constraints.
AI-assisted analysis of phacility/phabricator@5720a38cfe (2026-08-21).
Data as JSON: /api/errors/ce7e52545996f221.
Report an issue: GitHub.
Appendix: source
Thrown at src/applications/transactions/bulk/PhabricatorBulkEngine.php:394
),
'')))
->appendChild(
id(new AphrontFormSubmitControl())
->setValue(pht('Continue'))
->addCancelButton($cancel_uri));
}
private function buildEditResponse() {
$viewer = $this->getViewer();
$controller = $this->getController();
$request = $controller->getRequest();
if (!$this->objectList) {
throw new Exception(pht('Query does not match any objects.'));
}
if (!$this->editableList) {
throw new Exception(
pht(
'Query does not match any objects you have permission to edit.'));
}
// Restrict the selection set to objects the user can actually edit.
$objects = array_intersect_key($this->editableList, $this->targetList);
if (!$objects) {
throw new Exception(
pht(
'You have not selected any objects to edit.'));
}
$raw_xactions = $request->getStr('xactions');
if ($raw_xactions) {
$raw_xactions = phutil_json_decode($raw_xactions);
} else {
$raw_xactions = array();View on GitHub (pinned to 5720a38cfe)