Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F15401277
D20042.id47856.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
713 B
Referenced Files
None
Subscribers
None
D20042.id47856.diff
View Options
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
Details
Attached
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)
Attached To
Mode
D20042: Don't put "spacePHID IN (...)" constraints in queries which will raise policy exceptions
Attached
Detach File
Event Timeline
Log In to Comment