•  
      request #10439 Transition with file field not empty generates warnings in REST routes
    Infos
    #10439
    Yannis ROSSETTO (rossettoy)
    2017-07-11 13:45
    2017-07-11 13:45
    10682
    Details
    Transition with file field not empty generates warnings in REST routes
    The stack trace is the following:

    Warning: reset() expects parameter 1 to be array, null given in /usr/share/tuleap/plugins/tracker/include/Tracker/FormElement/Tracker_FormElement_Field_File.class.php on line 740
    Call Stack
    # Time Memory Function Location
    1 0.0001 660088 {main}( ) ../index.php:0
    2 0.0719 10392576 Luracast\Restler\Restler->handle( ) ../index.php:94
    3 0.0846 11008192 Luracast\Restler\Restler->call( ) ../Restler.php:304
    4 0.0916 11354984 ReflectionMethod->invokeArgs( ) ../Restler.php:1024
    5 0.0916 11355040 Tuleap\AgileDashboard\REST\v1\Kanban\KanbanResource->patchItems( ) ../Restler.php:1024
    6 0.1190 12630944 Tuleap\AgileDashboard\REST\v1\Kanban\KanbanResource->moveArtifactsInColumn( ) ../KanbanResource.php:820
    7 0.1222 12753000 Tracker_Artifact->createNewChangeset( ) ../KanbanResource.php:554
    8 0.1474 15724744 Tracker_Artifact_Changeset_NewChangesetCreatorBase->create( ) ../Tracker_Artifact.class.php:1124
    9 0.1477 15724872 Tracker_Artifact_Changeset_NewChangesetCreatorBase->validateNewChangeset( ) ../NewChangesetCreatorBase.class.php:91
    10 0.2238 18237592 Workflow->validate( ) ../NewChangesetCreatorBase.class.php:252
    11 0.2257 18240496 Transition->validate( ) ../Workflow.class.php:355
    12 0.2272 18279192 Workflow_Transition_ConditionsCollection->validate( ) ../Transition.class.php:211
    13 0.2297 18280152 Workflow_Transition_Condition_FieldNotEmpty->validate( ) ../ConditionsCollection.class.php:122
    14 0.2312 18280248 Tracker_FormElement_Field_File->isEmpty( ) ../FieldNotEmpty.class.php:141
    15 0.2312 18280248 Tracker_FormElement_Field_File->checkThatAtLeastOneFileIsUploaded( ) ../Tracker_FormElement_Field_File.class.php:1185
    16 0.2312 18281024 reset ( ) ../Tracker_FormElement_Field_File.class.php:740

    ( ! ) Warning: Variable passed to each() is not an array or object in /usr/share/tuleap/plugins/tracker/include/Tracker/FormElement/Tracker_FormElement_Field_File.class.php on line 741
    Call Stack
    # Time Memory Function Location
    1 0.0001 660088 {main}( ) ../index.php:0
    2 0.0719 10392576 Luracast\Restler\Restler->handle( ) ../index.php:94
    3 0.0846 11008192 Luracast\Restler\Restler->call( ) ../Restler.php:304
    4 0.0916 11354984 ReflectionMethod->invokeArgs( ) ../Restler.php:1024
    5 0.0916 11355040 Tuleap\AgileDashboard\REST\v1\Kanban\KanbanResource->patchItems( ) ../Restler.php:1024
    6 0.1190 12630944 Tuleap\AgileDashboard\REST\v1\Kanban\KanbanResource->moveArtifactsInColumn( ) ../KanbanResource.php:820
    7 0.1222 12753000 Tracker_Artifact->createNewChangeset( ) ../KanbanResource.php:554
    8 0.1474 15724744 Tracker_Artifact_Changeset_NewChangesetCreatorBase->create( ) ../Tracker_Artifact.class.php:1124
    9 0.1477 15724872 Tracker_Artifact_Changeset_NewChangesetCreatorBase->validateNewChangeset( ) ../NewChangesetCreatorBase.class.php:91
    10 0.2238 18237592 Workflow->validate( ) ../NewChangesetCreatorBase.class.php:252
    11 0.2257 18240496 Transition->validate( ) ../Workflow.class.php:355
    12 0.2272 18279192 Workflow_Transition_ConditionsCollection->validate( ) ../Transition.class.php:211
    13 0.2297 18280152 Workflow_Transition_Condition_FieldNotEmpty->validate( ) ../ConditionsCollection.class.php:122
    14 0.2312 18280248 Tracker_FormElement_Field_File->isEmpty( ) ../FieldNotEmpty.class.php:141
    15 0.2312 18280248 Tracker_FormElement_Field_File->checkThatAtLeastOneFileIsUploaded( ) ../Tracker_FormElement_Field_File.class.php:1185
    16 0.2315 18283200 each ( ) ../Tracker_FormElement_Field_File.class.php:741

    ( ! ) Fatal error: Call to a member function getFiles() on a non-object in /usr/share/tuleap/plugins/tracker/include/Tracker/FormElement/Tracker_FormElement_Field_File.class.php on line 1170
    Call Stack
    # Time Memory Function Location
    1 0.0001 660088 {main}( ) ../index.php:0
    2 0.0719 10392576 Luracast\Restler\Restler->handle( ) ../index.php:94
    3 0.0846 11008192 Luracast\Restler\Restler->call( ) ../Restler.php:304
    4 0.0916 11354984 ReflectionMethod->invokeArgs( ) ../Restler.php:1024
    5 0.0916 11355040 Tuleap\AgileDashboard\REST\v1\Kanban\KanbanResource->patchItems( ) ../Restler.php:1024
    6 0.1190 12630944 Tuleap\AgileDashboard\REST\v1\Kanban\KanbanResource->moveArtifactsInColumn( ) ../KanbanResource.php:820
    7 0.1222 12753000 Tracker_Artifact->createNewChangeset( ) ../KanbanResource.php:554
    8 0.1474 15724744 Tracker_Artifact_Changeset_NewChangesetCreatorBase->create( ) ../Tracker_Artifact.class.php:1124
    9 0.1477 15724872 Tracker_Artifact_Changeset_NewChangesetCreatorBase->validateNewChangeset( ) ../NewChangesetCreatorBase.class.php:91
    10 0.2238 18237592 Workflow->validate( ) ../NewChangesetCreatorBase.class.php:252
    11 0.2257 18240496 Transition->validate( ) ../Workflow.class.php:355
    12 0.2272 18279192 Workflow_Transition_ConditionsCollection->validate( ) ../Transition.class.php:211
    13 0.2297 18280152 Workflow_Transition_Condition_FieldNotEmpty->validate( ) ../ConditionsCollection.class.php:122
    14 0.2312 18280248 Tracker_FormElement_Field_File->isEmpty( ) ../FieldNotEmpty.class.php:141
    15 0.2320 18282472 Tracker_FormElement_Field_File->isPreviousChangesetEmpty( ) ../Tracker_FormElement_Field_File.class.php:1187
    API
    All
    Empty
    • [ ] enhancement
    • [ ] internal improvement
    Empty
    Stage
    Empty
    Verified
    Empty
    Attachments
    Empty
    References
    References list is empty