Page MenuHomePhabricator

"Argument 1 passed to AphrontView::setUser() must be an instance of PhabricatorUser, null given" on cloning a repository
Closed, InvalidPublic

Description

I'm trying to clone a repository over HTTP, but am getting a 500 (see also T9677).

2015/10/31 05:27:31 [error] 2162#0: *203 FastCGI sent in stderr: "PHP message: [2015-10-31 16:27:31] EXCEPTION: (InvalidArgumentException) Argument 1 passed to AphrontView::setUser() must be an instance of PhabricatorUser, null given, called in /usr/src/phabricator/src/aphront/response/Aphront404Response.php on line 14 and defined at [<phutil>/src/error/PhutilErrorHandler.php:200]
PHP message: arcanist(head=master, ref.master=baf5eb8a8795), phabricator(head=master, ref.master=98a301a59b1d), phutil(head=master, ref.master=59f5a8d2bb82)
PHP message:   #0 <#2> PhutilErrorHandler::handleError(integer, string, string, integer, array) called at [<phabricator>/src/view/AphrontView.php:19]
PHP message:   #1 <#2> AphrontView::setUser(NULL) called at [<phabricator>/src/aphront/response/Aphront404Response.php:14]
PHP message:   #2 <#2> Aphront404Response::buildResponseString() called at [<phabricator>/src/aphront/response/AphrontResponse.php:26]
PHP message:   #3 <#2> AphrontResponse::getContentIterator() called at [<phabricator>/src/aphront/sink/AphrontHTTPSink.php:102]
PHP message:   #4 <#2> AphrontHTTPSink::writeResponse(Aphront404Response) called at [<phabricator>/src/aphront/configuration/AphrontApplicationConfiguration.php:274]
PHP message:   #5 <#2> AphrontApplicationConfiguration::processRequest(AphrontRequest, PhutilDeferredLog, AphrontPHPHTTPSink, MultimeterControl) called at [<phabricator>/src/aphront/configuration/AphrontApplicationConfiguration.php:149]
PHP message:   #6 <#2> AphrontApplicationConfiguration::runHTTPRequest(AphrontPHPHTTPSink) called at [<phabricator>/webroot/index.php:17]
PHP message:   #7 phlog(InvalidArgumentException) called at [<phabricator>/src/aphront/response/AphrontUnhandledExceptionResponse.php:20]
PHP message:   #8 AphrontUnhandledExceptionResponse::setException(InvalidArgumentException) called at [<phabricator>/webroot/index.php:21]" while reading response header from upstream, client: 10.0.0.1, server: phabricator.local, request: "GET /diffusion/TEST/test.git/info/refs?service=git-

Event Timeline

joshuaspence raised the priority of this task from to Needs Triage.
joshuaspence updated the task description. (Show Details)
joshuaspence added a project: Diffusion.
joshuaspence added a subscriber: joshuaspence.
epriestley claimed this task.
epriestley added a subscriber: epriestley.

I can't reproduce this. Here's what I did:

  • Configured a repository in Diffusion to clone over HTTP.
  • Ran git clone ... on the repository.
$ git clone http://local.phacility.com/diffusion/TESTY/git-test.git
Cloning into 'git-test'...
remote: Counting objects: 197, done.
remote: Compressing objects: 100% (105/105), done.
remote: Total 197 (delta 51), reused 190 (delta 49)
Receiving objects: 100% (197/197), 48.89 KiB | 0 bytes/s, done.
Resolving deltas: 100% (51/51), done.
Checking connectivity... done.

The clone worked correctly and did not emit any errors.