Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F13973465
D13489.id32637.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
827 B
Referenced Files
None
Subscribers
None
D13489.id32637.diff
View Options
diff --git a/src/applications/phid/query/PhabricatorHandleQuery.php b/src/applications/phid/query/PhabricatorHandleQuery.php
--- a/src/applications/phid/query/PhabricatorHandleQuery.php
+++ b/src/applications/phid/query/PhabricatorHandleQuery.php
@@ -37,6 +37,12 @@
->requireCapabilities($this->getRequiredObjectCapabilities())
->setViewer($this->getViewer());
+ // We never want the subquery to raise policy exceptions, even if this
+ // query is being executed via executeOne(). Policy exceptions are not
+ // meaningful or relevant for handles, which load in an "Unknown" or
+ // "Restricted" state after encountering a policy violation.
+ $object_query->setRaisePolicyExceptions(false);
+
$objects = $object_query->execute();
$filtered = $object_query->getPolicyFilteredPHIDs();
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Oct 19 2024, 1:01 AM (4 w, 4 d ago)
Storage Engine
blob
Storage Format
Encrypted (AES-256-CBC)
Storage Handle
6727123
Default Alt Text
D13489.id32637.diff (827 B)
Attached To
Mode
D13489: Fix infinite loop in renderAccessDenied()
Attached
Detach File
Event Timeline
Log In to Comment