Given a document added to the Tuleap Default Template project, then an error is raised:
FastCGI sent in stderr : PHP warning : undefined array key 0 in (...)/Docman_MetadataListOfValuesElementFactory.class.php on line 355
PHP Fatal error : Uncaught Error: Call to a member function getId() on null in /usr/share/tuleap/plugins/docman/include/REST/v1/Metadata/MetadataRepresentationBuilder.php:114
This occurs because the install.sql
initiates this docman with a status set to 0, which is an unknown value. Having this particular value must return the None status.