Bug #32492

Creating an admin with ./flow3 setup:createadministrator

Added by Markus Goldbeck over 3 years ago. Updated over 3 years ago.

Status:Resolved Start date:2011-12-13
Priority:Must have Due date:
Assigned To:- % Done:

100%

Category:-
Target version:-

Description

Currently it is not possible to create an admin.

./flow3 setup:createadministrator admin password
Created account "admin".
Uncaught Exception
  An instance of "TYPO3\TYPO3\Domain\Model\User" failed to pass validation
  with 1 error(s): 
  name:
  This property is required.

More Information
  Exception code      #1322585164
  File                /Applications/MAMP/htdocs/PhoenixCore/Data/Temporary/Development/Cache/Code/FLOW3_Object_Classes/TYPO3_FLOW3_Persistence_Doctrine_PersistenceManager_Original.php line 124
  Exception reference #201112131023183a7577

After deleting the Annotation * @FLOW3\Validate(type="NotEmpty") in /TYPO3.Party/Classes/Domain/Model/Person.php it worked.

So it seems something to do with Validation

Associated revisions

Revision e5d8e3d4
Added by Christian Müller over 3 years ago

[BUGFIX] Add first name and last name to setup command

Persons are validated to have a name, that should be reflected
in the setup command controller. The command has now 4 required
parameters. identifier, password, firstName and lastName.

Fixes: #32492

Change-Id: I7ad96716010574fef5d5b1a0e47ecdb20f79ce38

History

#1 Updated by Karsten Dambekalns over 3 years ago

  • Priority changed from Should have to Must have

Yes, with that validation rule in place the command needs to set a name on that user.

#2 Updated by Gerrit Code Review over 3 years ago

Patch set 1 for branch master has been pushed to the review server.
It is available at http://review.typo3.org/7240

#3 Updated by Christian Müller over 3 years ago

  • Status changed from New to Resolved
  • % Done changed from 0 to 100

Also available in: Atom PDF