Page MenuHomePhabricator

D20042.id47856.diff
No OneTemporary

D20042.id47856.diff

diff --git a/src/infrastructure/query/policy/PhabricatorCursorPagedPolicyAwareQuery.php b/src/infrastructure/query/policy/PhabricatorCursorPagedPolicyAwareQuery.php
--- a/src/infrastructure/query/policy/PhabricatorCursorPagedPolicyAwareQuery.php
+++ b/src/infrastructure/query/policy/PhabricatorCursorPagedPolicyAwareQuery.php
@@ -2855,6 +2855,13 @@
}
}
+ // See T13240. If this query raises policy exceptions, don't filter objects
+ // in the MySQL layer. We want them to reach the application layer so we
+ // can reject them and raise an exception.
+ if ($this->shouldRaisePolicyExceptions()) {
+ return null;
+ }
+
$space_phids = array();
$include_null = false;

File Metadata

Mime Type
text/plain
Expires
Tue, Mar 18, 4:45 PM (1 w, 1 h ago)
Storage Engine
blob
Storage Format
Encrypted (AES-256-CBC)
Storage Handle
7710140
Default Alt Text
D20042.id47856.diff (713 B)

Event Timeline