Page MenuHomePhabricator

Conduit API "project.create" return error with ERR-CONDUIT-CORE when only "name" passed as parameter
Closed, WontfixPublic

Description

Conduit API for creating project state that only "name" field is required [1]. After calling project.create with "name" only passed as parameter using conduit API with curl, it return ERR-CONDUIT-CORE.

The patch for this bug is already prepared and will be submitted.

Version Information

PHP 5.6.24 (cli) (built: Jul 21 2016 07:42:08)
Copyright (c) 1997-2016 The PHP Group
Zend Engine v2.6.0, Copyright (c) 1998-2016 Zend Technologies
    with Zend OPcache v7.0.6-dev, Copyright (c) 1999-2016, by Zend Technologies
  • uname -a
Linux phabricator.localdomain 2.6.32-642.3.1.el6.x86_64 #1 SMP Tue Jul 12 18:30:56 UTC 2016 x86_64 x86_64 x86_64 GNU/Linux

Reproduction Steps

  • Create and get conduit token
  • Create new project using curl,
$ curl http://phabricator.localdomain:10010/api/project.create \
-d api.token=api-pcbhtiluxuarqcvg44a4vfkyikw5 \
-d name=Test2

Expected Result

Conduit API return project ID

Actual result

  • curl output,
{"result":null,"error_code":"ERR-CONDUIT-CORE","error_info":"Argument 1 passed to array_fuse() must be of the type array, null given, called in \/data\/phabricator\/phabricator\/src\/applications\/project\/conduit\/ProjectCreateConduitAPIMethod.php on line 68 and defined"}

[1] https://secure.phabricator.com/conduit/method/project.create/