Page MenuHomePhabricator

nonsensical conduit.query auth errors/busted on this install
Closed, ResolvedPublic

Assigned To
Authored By
cburroughs
Nov 16 2015, 4:29 PM
Referenced Files
F972814: c.q2.png
Nov 16 2015, 4:29 PM
F972809: c.q.png
Nov 16 2015, 4:29 PM
Subscribers

Description

Internal (rPecaa45521c0617f709b0d432fa84294811930f16):

echo '{}' | arc call-conduit conduit.query
{"error":"ERR-CONDUIT-CORE","errorMessage":"ERR-CONDUIT-CORE: [You Shall Not Pass: Restricted Application] (Can View) You do not have permission to view this object. \/\/ Logged in users can take this action.","response":null}

c.q.png (874×1 px, 76 KB)

This install:

c.q2.png (874×1 px, 47 KB)

Event Timeline

cburroughs updated the task description. (Show Details)
cburroughs added a project: Conduit.
cburroughs added a subscriber: cburroughs.
epriestley triaged this task as Normal priority.

This install is just a little out of date, second issue should be fixed at HEAD.

Do you have a stack trace in the error log offhand? I can't immediately reproduce this on this install after upgrading. I have a good idea what's going on, but if you have a stack handy that might be faster.

Never mind, this was straightforward to reproduce:

[Mon Nov 16 09:06:49.780821 2015] [:error] [pid 1341] [client 127.0.0.1:59431] [2015-11-16 09:06:49] EXCEPTION: (PhabricatorPolicyException) [You Shall Not Pass: Restricted Application] (Can View) You do not have permission to view this object. // admin (foo\xe5\xbf\xa0bar2x34) can take this action. at [<phabricator>/src/applications/policy/filter/PhabricatorPolicyFilter.php:590]
[Mon Nov 16 09:06:49.781594 2015] [:error] [pid 1341] [client 127.0.0.1:59431] arcanist(head=master, ref.master=66ab1c955d27), corgi(head=master, ref.master=279e45d4bdd9), instances(head=master, ref.master=eb7277a2dd6f), ledger(head=master, ref.master=4da4a24b8779), libcore(), phabricator(head=master, ref.master=5963c4c9e06d, custom=24), phutil(head=master, ref.master=e9ed72483a14), services(head=master, ref.master=ee889d4725ab)
[Mon Nov 16 09:06:49.781604 2015] [:error] [pid 1341] [client 127.0.0.1:59431]   #0 <#2> PhabricatorPolicyFilter::rejectObject(PhabricatorPasteApplication, string, string) called at [<phabricator>/src/applications/policy/filter/PhabricatorPolicyFilter.php:523]
[Mon Nov 16 09:06:49.781608 2015] [:error] [pid 1341] [client 127.0.0.1:59431]   #1 <#2> PhabricatorPolicyFilter::checkCapability(PhabricatorPasteApplication, string) called at [<phabricator>/src/applications/policy/filter/PhabricatorPolicyFilter.php:214]
[Mon Nov 16 09:06:49.781611 2015] [:error] [pid 1341] [client 127.0.0.1:59431]   #2 <#2> PhabricatorPolicyFilter::apply(array) called at [<phabricator>/src/infrastructure/query/policy/PhabricatorPolicyAwareQuery.php:244]
[Mon Nov 16 09:06:49.781631 2015] [:error] [pid 1341] [client 127.0.0.1:59431]   #3 <#2> PhabricatorPolicyAwareQuery::execute() called at [<phabricator>/src/infrastructure/query/policy/PhabricatorPolicyAwareQuery.php:167]
[Mon Nov 16 09:06:49.781634 2015] [:error] [pid 1341] [client 127.0.0.1:59431]   #4 <#2> PhabricatorPolicyAwareQuery::executeOne() called at [<phabricator>/src/applications/paste/storage/PhabricatorPaste.php:37]
[Mon Nov 16 09:06:49.781637 2015] [:error] [pid 1341] [client 127.0.0.1:59431]   #5 <#2> PhabricatorPaste::initializeNewPaste(PhabricatorUser) called at [<phabricator>/src/applications/paste/editor/PhabricatorPasteEditEngine.php:13]
[Mon Nov 16 09:06:49.781639 2015] [:error] [pid 1341] [client 127.0.0.1:59431]   #6 <#2> PhabricatorPasteEditEngine::newEditableObject() called at [<phabricator>/src/applications/transactions/editengine/PhabricatorEditEngine.php:969]
[Mon Nov 16 09:06:49.781642 2015] [:error] [pid 1341] [client 127.0.0.1:59431]   #7 <#2> PhabricatorEditEngine::getAllEditTypes() called at [<phabricator>/src/applications/transactions/editengine/PhabricatorEditEngineAPIMethod.php:41]
[Mon Nov 16 09:06:49.781645 2015] [:error] [pid 1341] [client 127.0.0.1:59431]   #8 <#2> PhabricatorEditEngineAPIMethod::getMethodDescription() called at [<phabricator>/src/applications/conduit/method/ConduitQueryConduitAPIMethod.php:29]
[Mon Nov 16 09:06:49.781648 2015] [:error] [pid 1341] [client 127.0.0.1:59431]   #9 <#2> ConduitQueryConduitAPIMethod::execute(ConduitAPIRequest) called at [<phabricator>/src/applications/conduit/method/ConduitAPIMethod.php:113]
[Mon Nov 16 09:06:49.781650 2015] [:error] [pid 1341] [client 127.0.0.1:59431]   #10 <#2> ConduitAPIMethod::executeMethod(ConduitAPIRequest) called at [<phabricator>/src/applications/conduit/call/ConduitCall.php:135]
[Mon Nov 16 09:06:49.781664 2015] [:error] [pid 1341] [client 127.0.0.1:59431]   #11 <#2> ConduitCall::executeMethod() called at [<phabricator>/src/applications/conduit/call/ConduitCall.php:85]
[Mon Nov 16 09:06:49.781676 2015] [:error] [pid 1341] [client 127.0.0.1:59431]   #12 <#2> ConduitCall::execute() called at [<phabricator>/src/applications/conduit/controller/PhabricatorConduitAPIController.php:82]
[Mon Nov 16 09:06:49.781679 2015] [:error] [pid 1341] [client 127.0.0.1:59431]   #13 phlog(PhabricatorPolicyException) called at [<phabricator>/src/applications/conduit/controller/PhabricatorConduitAPIController.php:102]
[Mon Nov 16 09:06:49.781681 2015] [:error] [pid 1341] [client 127.0.0.1:59431]   #14 PhabricatorConduitAPIController::handleRequest(AphrontRequest) called at [<phabricator>/src/aphront/configuration/AphrontApplicationConfiguration.php:237]
[Mon Nov 16 09:06:49.781684 2015] [:error] [pid 1341] [client 127.0.0.1:59431]   #15 AphrontApplicationConfiguration::processRequest(AphrontRequest, PhutilDeferredLog, AphrontPHPHTTPSink, MultimeterControl) called at [<phabricator>/src/aphront/configuration/AphrontApplicationConfiguration.php:149]
[Mon Nov 16 09:06:49.781698 2015] [:error] [pid 1341] [client 127.0.0.1:59431]   #16 AphrontApplicationConfiguration::runHTTPRequest(AphrontPHPHTTPSink) called at [<phabricator>/webroot/index.php:17]

My stacktrace:

[Mon Nov 16 12:07:00 2015] [error] [client 10.2.1.74] [2015-11-16 12:07:00] EXCEPTION: (PhabricatorPolicyException) [You Shall Not Pass: Restricted Application] (Can View) You do not have permission to view this object. // Logged in users can take this action. at [<phabricator>/src/applications/policy/filter/PhabricatorPolicyFilter.php:590]
[Mon Nov 16 12:07:00 2015] [error] [client 10.2.1.74] arcanist(head=ebb88c8c59a4e0400b06cb30eabbdc6424519d2a, ref.master=9e357d3fd0ca), phabricator(head=94761b2e2b4ff00c3313a16eecd77c033c578397, ref.master=d10e25098c67, custom=2), phutil(head=ab0520189071c31cef3e02b992066e7ab211d992, ref.master=702046d23645)
[Mon Nov 16 12:07:00 2015] [error] [client 10.2.1.74]   #0 <#2> PhabricatorPolicyFilter::rejectObject(PhabricatorPasteApplication, string, string) called at [<phabricator>/src/applications/policy/filter/PhabricatorPolicyFilter.php:489]
[Mon Nov 16 12:07:00 2015] [error] [client 10.2.1.74]   #1 <#2> PhabricatorPolicyFilter::checkCapability(PhabricatorPasteApplication, string) called at [<phabricator>/src/applications/policy/filter/PhabricatorPolicyFilter.php:214]
[Mon Nov 16 12:07:00 2015] [error] [client 10.2.1.74]   #2 <#2> PhabricatorPolicyFilter::apply(array) called at [<phabricator>/src/infrastructure/query/policy/PhabricatorPolicyAwareQuery.php:244]
[Mon Nov 16 12:07:00 2015] [error] [client 10.2.1.74]   #3 <#2> PhabricatorPolicyAwareQuery::execute() called at [<phabricator>/src/infrastructure/query/policy/PhabricatorPolicyAwareQuery.php:167]
[Mon Nov 16 12:07:00 2015] [error] [client 10.2.1.74]   #4 <#2> PhabricatorPolicyAwareQuery::executeOne() called at [<phabricator>/src/applications/paste/storage/PhabricatorPaste.php:37]
[Mon Nov 16 12:07:00 2015] [error] [client 10.2.1.74]   #5 <#2> PhabricatorPaste::initializeNewPaste(PhabricatorUser) called at [<phabricator>/src/applications/paste/editor/PhabricatorPasteEditEngine.php:7]
[Mon Nov 16 12:07:00 2015] [error] [client 10.2.1.74]   #6 <#2> PhabricatorPasteEditEngine::newEditableObject() called at [<phabricator>/src/applications/transactions/editengine/PhabricatorApplicationEditEngine.php:770]
[Mon Nov 16 12:07:00 2015] [error] [client 10.2.1.74]   #7 <#2> PhabricatorApplicationEditEngine::getAllEditTypes() called at [<phabricator>/src/applications/transactions/editengine/PhabricatorApplicationEditEngineAPIMethod.php:41]
[Mon Nov 16 12:07:00 2015] [error] [client 10.2.1.74]   #8 <#2> PhabricatorApplicationEditEngineAPIMethod::getMethodDescription() called at [<phabricator>/src/applications/conduit/method/ConduitQueryConduitAPIMethod.php:29]
[Mon Nov 16 12:07:00 2015] [error] [client 10.2.1.74]   #9 <#2> ConduitQueryConduitAPIMethod::execute(ConduitAPIRequest) called at [<phabricator>/src/applications/conduit/method/ConduitAPIMethod.php:113]
[Mon Nov 16 12:07:00 2015] [error] [client 10.2.1.74]   #10 <#2> ConduitAPIMethod::executeMethod(ConduitAPIRequest) called at [<phabricator>/src/applications/conduit/call/ConduitCall.php:135]
[Mon Nov 16 12:07:00 2015] [error] [client 10.2.1.74]   #11 <#2> ConduitCall::executeMethod() called at [<phabricator>/src/applications/conduit/call/ConduitCall.php:85]
[Mon Nov 16 12:07:00 2015] [error] [client 10.2.1.74]   #12 <#2> ConduitCall::execute() called at [<phabricator>/src/applications/conduit/controller/PhabricatorConduitAPIController.php:82]
[Mon Nov 16 12:07:00 2015] [error] [client 10.2.1.74]   #13 phlog(PhabricatorPolicyException) called at [<phabricator>/src/applications/conduit/controller/PhabricatorConduitAPIController.php:102]
[Mon Nov 16 12:07:00 2015] [error] [client 10.2.1.74]   #14 PhabricatorConduitAPIController::handleRequest(AphrontRequest) called at [<phabricator>/src/aphront/configuration/AphrontApplicationConfiguration.php:237]
[Mon Nov 16 12:07:00 2015] [error] [client 10.2.1.74]   #15 AphrontApplicationConfiguration::processRequest(AphrontRequest, PhutilDeferredLog, AphrontPHPHTTPSink, MultimeterControl) called at [<phabricator>/src/aphront/configuration/AphrontApplicationConfiguration.php:149]
[Mon Nov 16 12:07:00 2015] [error] [client 10.2.1.74]   #16 AphrontApplicationConfiguration::runHTTPRequest(AphrontPHPHTTPSink) called at [<phabricator>/webroot/index.php:17]