stable

Clone or download

Read-only

request #24157: Displaying document history can crash when the date of a version has been incorrectly set

Reproduction steps: 1. Upload a file into the document manager 2. Create a new version of the document and set manually the date to something like 'foo' (can be done through SOAP or by manipulating the form) 3. Display the history of this document This contribution also prevents saving new invalid values for those fields. Change-Id: Ibfb49beab518abdaa836fb0a2a393f0e03055a8b

Modified Files

Name
M plugins/docman/include/Docman_Actions.class.php +25 −18 Go to diff View file
M plugins/hudson_git/tests/unit/HudsonGit/Git/Administration/AdministrationControllerTest.php +2 −0 Go to diff View file
M plugins/pullrequest/tests/unit/Label/LabeledItemCollectorTest.php +2 −0 Go to diff View file
M plugins/tracker/tests/unit/Tracker/Artifact/Changeset/ChangesetFromXmlDisplayerTest.php +2 −0 Go to diff View file
M plugins/tracker/tests/unit/Tracker/Artifact/Changeset/PostCreation/EmailNotificationTaskTest.php +13 −7 Go to diff View file
M plugins/tracker/tests/unit/Tracker/Artifact/Changeset/PostCreation/NotifierCustomSenderTest.php +2 −2 Go to diff View file
M plugins/tracker/tests/unit/Tracker_Artifact_Changeset_CommentTest.php +2 −0 Go to diff View file
M src/common/date/DateHelper.class.php +4 −6 Go to diff View file
M src/www/include/utils.php +5 −3 Go to diff View file
M tests/unit/common/User/Account/DisplayAccountInformationControllerTest.php +4 −1 Go to diff View file
M tests/unit/common/User/Account/DisplaySecurityControllerTest.php +4 −2 Go to diff View file
M tests/unit/common/User/Account/UpdateAccountInformationControllerTest.php +4 −1 Go to diff View file