stable

Clone or download

Read-only

request #13377: Retrieval of the first transition of the current state can crash

It can happen when the artifact has no changeset or when there is no changeset value for the field. Both situations are not common but anyway the workflow code should handle all possible values returned by its dependencies. Change-Id: I0076c5c7c9080d585b8bb52de30b382cdb6f2a17

Modified Files

Name
M plugins/timetracking/include/Timetracking/REST/v1/ProjectResource.php +4 −2 Go to diff View file
M plugins/tracker/include/REST/v1/ArtifactsResource.class.php +2 −1 Go to diff View file
M plugins/tracker/include/REST/v1/ProjectTrackersResource.class.php +3 −1 Go to diff View file
M plugins/tracker/include/REST/v1/TrackersResource.class.php +2 −0 Go to diff View file
M plugins/tracker/include/Tracker/Artifact/Tracker_Artifact.class.php +7 −2 Go to diff View file
M plugins/tracker/include/Tracker/Artifact/Tracker_Artifact_Changeset.class.php +1 −1 Go to diff View file
M plugins/tracker/include/Tracker/FormElement/Tracker_FormElement_Field.class.php +2 −0 Go to diff View file
M plugins/tracker/include/Tracker/FormElement/Tracker_FormElement_Field_Computed.class.php +2 −0 Go to diff View file
M plugins/tracker/include/Tracker/FormElement/Tracker_FormElement_Field_PermissionsOnArtifact.class.php +2 −0 Go to diff View file
M plugins/tracker/include/Tracker/Tracker.class.php +3 −1 Go to diff View file
M plugins/tracker/include/Workflow/PostAction/FrozenFields/FrozenFieldDetector.php +11 −9 Go to diff View file
M plugins/tracker/include/Workflow/SimpleMode/TransitionRetriever.php +33 −3 Go to diff View file
M plugins/tracker/include/Workflow/Workflow.class.php +0 −18 Go to diff View file
M plugins/tracker/phpunit/Tracker/Workflow/PostAction/FrozenFields/FrozenFieldDetectorTest.php +30 −66 Go to diff View file
M plugins/tracker/phpunit/Tracker/Workflow/SimpleMode/TransitionRetrieverTest.php +140 −11 Go to diff View file