stable

Clone or download

Read-only

XML import of dropped attachments

Drag 'n drop (or copy image/paste) an image in a text field (in html mode). XML export the artifact/tracker/project[0] XML import the project => In the new project, the imported artifact has an image embedded in the text field and the url of this image is the one of the imported attachment. Follow-up comments will have their own commit. Part of story #13453: finish drag'n drop images in tracker text areas [0] https://docs.tuleap.org/administration-guide/projects-management/project-export-import.html Change-Id: Ibb0914d77ba9663b4945729643d19bbf6b93e625

Modified Files

Name
M plugins/agiledashboard/include/AgileDashboard/FormElement/Burnup.php +4 −1 Go to diff View file
M plugins/tracker/include/Tracker/Artifact/Changeset/InitialChangesetAtGivenDateCreator.class.php +14 −2 Go to diff View file
M plugins/tracker/include/Tracker/Artifact/Changeset/InitialChangesetCreator.class.php +40 −6 Go to diff View file
M plugins/tracker/include/Tracker/Artifact/Changeset/InitialChangesetCreatorBase.class.php +5 −2 Go to diff View file
M plugins/tracker/include/Tracker/Artifact/Changeset/NewChangesetAtGivenDateCreator.class.php +25 −4 Go to diff View file
M plugins/tracker/include/Tracker/Artifact/Changeset/NewChangesetCreator.class.php +49 −11 Go to diff View file
M plugins/tracker/include/Tracker/Artifact/Changeset/NewChangesetCreatorBase.class.php +41 −10 Go to diff View file
M plugins/tracker/include/Tracker/Artifact/XMLImport/XMLImportFieldStrategyAttachment.class.php +19 −3 Go to diff View file
M plugins/tracker/include/Tracker/FormElement/Field/File/AttachmentCreator.php +2 −1 Go to diff View file
M plugins/tracker/include/Tracker/FormElement/Field/File/AttachmentForRestCreator.php +20 −4 Go to diff View file
M plugins/tracker/include/Tracker/FormElement/Field/File/AttachmentForTraditionalUploadCreator.php +10 −1 Go to diff View file
M plugins/tracker/include/Tracker/FormElement/Field/File/AttachmentForTusUploadCreator.php +3 −2 Go to diff View file
M plugins/tracker/include/Tracker/FormElement/Field/File/ChangesetValueFileSaver.php +8 −2 Go to diff View file
A plugins/tracker/include/Tracker/FormElement/Field/File/CreatedFileURLMapping.php +46 −0 Go to diff View file
A plugins/tracker/include/Tracker/FormElement/Field/File/FileURLSubstitutor.php +98 −0 Go to diff View file
A plugins/tracker/include/Tracker/FormElement/Field/File/IdForXMLImportExportConvertor.php +43 −0 Go to diff View file
A plugins/tracker/include/Tracker/FormElement/Field/File/Upload/FileToDownload.php +45 −0 Go to diff View file
M plugins/tracker/include/Tracker/FormElement/Field/File/Upload/FileToUpload.php +1 −1 Go to diff View file
M plugins/tracker/include/Tracker/FormElement/Tracker_FormElement_Field.class.php +11 −3 Go to diff View file
M plugins/tracker/include/Tracker/FormElement/Tracker_FormElement_Field_Alphanum.class.php +9 −11 Go to diff View file
M plugins/tracker/include/Tracker/FormElement/Tracker_FormElement_Field_ArtifactLink.class.php +7 −12 Go to diff View file
M plugins/tracker/include/Tracker/FormElement/Tracker_FormElement_Field_Burndown.class.php +9 −1 Go to diff View file
M plugins/tracker/include/Tracker/FormElement/Tracker_FormElement_Field_Computed.class.php +8 −5 Go to diff View file
M plugins/tracker/include/Tracker/FormElement/Tracker_FormElement_Field_CrossReferences.class.php +10 −12 Go to diff View file
M plugins/tracker/include/Tracker/FormElement/Tracker_FormElement_Field_Date.class.php +10 −12 Go to diff View file
M plugins/tracker/include/Tracker/FormElement/Tracker_FormElement_Field_File.class.php +5 −12 Go to diff View file
M plugins/tracker/include/Tracker/FormElement/Tracker_FormElement_Field_LastModifiedBy.class.php +11 −3 Go to diff View file
M plugins/tracker/include/Tracker/FormElement/Tracker_FormElement_Field_LastUpdateDate.class.php +10 −12 Go to diff View file
M plugins/tracker/include/Tracker/FormElement/Tracker_FormElement_Field_List.class.php +8 −11 Go to diff View file
M plugins/tracker/include/Tracker/FormElement/Tracker_FormElement_Field_OpenList.class.php +8 −11 Go to diff View file
M plugins/tracker/include/Tracker/FormElement/Tracker_FormElement_Field_PermissionsOnArtifact.class.php +3 −9 Go to diff View file
M plugins/tracker/include/Tracker/FormElement/Tracker_FormElement_Field_String.class.php +14 −5 Go to diff View file
M plugins/tracker/include/Tracker/FormElement/Tracker_FormElement_Field_SubmittedBy.class.php +11 −13 Go to diff View file
M plugins/tracker/include/Tracker/FormElement/Tracker_FormElement_Field_SubmittedOn.class.php +10 −12 Go to diff View file
M plugins/tracker/include/Tracker/FormElement/Tracker_FormElement_Field_Text.class.php +13 −11 Go to diff View file
M plugins/tracker/include/Tracker/XML/Exporter/ChangesetValue/ChangesetValueFileXMLExporter.class.php +5 −5 Go to diff View file
M plugins/tracker/phpunit/Tracker/FormElement/Field/File/AttachmentForRestCreatorTest.php +30 −9 Go to diff View file
M plugins/tracker/phpunit/Tracker/FormElement/Field/File/AttachmentForTraditionalUploadCreatorTest.php +70 −6 Go to diff View file
M plugins/tracker/phpunit/Tracker/FormElement/Field/File/AttachmentForTusUploadCreatorTest.php +44 −7 Go to diff View file
M plugins/tracker/phpunit/Tracker/FormElement/Field/File/ChangesetValueFileSaverTest.php +70 −14 Go to diff View file
A plugins/tracker/phpunit/Tracker/FormElement/Field/File/CreatedFileURLMappingTest.php +40 −0 Go to diff View file
A plugins/tracker/phpunit/Tracker/FormElement/Field/File/FileURLSubstitutorTest.php +131 −0 Go to diff View file
A plugins/tracker/phpunit/Tracker/FormElement/Field/File/IdForXMLImportExportConvertorTest.php +51 −0 Go to diff View file
M plugins/tracker/tests/Artifact/Changeset/InitialChangesetCreatorTest.php +3 −3 Go to diff View file
M plugins/tracker/tests/Tracker/FormElement/Field/ArtifactLink/ArtifactLinkValueSaverTest.php +8 −16 Go to diff View file
M plugins/tracker/tests/Tracker/XML/Exporter/ChangesetValue/ChangesetValueFileXMLExporterTest.php +6 −7 Go to diff View file
M plugins/tracker/tests/Tracker_ArtifactTest.php +10 −1 Go to diff View file
M plugins/tracker/tests/Tracker_FileInfoTest.php +2 −2 Go to diff View file
M plugins/tracker/tests/Tracker_FormElement_Field_ArtifactLinkTest.php +68 −19 Go to diff View file
M plugins/tracker/tests/Tracker_FormElement_Field_ComputedTest.php +37 −3 Go to diff View file
M plugins/tracker/tests/Tracker_FormElement_Field_OpenListTest.php +6 −3 Go to diff View file
M plugins/tracker/tests/rest/TrackerBase.php +5 −0 Go to diff View file
A plugins/tracker/tests/rest/XMLImportAndFileURLs/XMLImportAndFileURLsTest.php +105 −0 Go to diff View file
A plugins/tracker/tests/rest/_fixtures/XMLImportAndFileURLs/data/Artifact132 +0 −0 Go to diff View file
A plugins/tracker/tests/rest/_fixtures/XMLImportAndFileURLs/project.xml +111 −0 Go to diff View file
A plugins/tracker/tests/rest/_fixtures/XMLImportAndFileURLs/user_map.csv +1 −0 Go to diff View file
A plugins/tracker/tests/rest/_fixtures/XMLImportAndFileURLs/users.xml +10 −0 Go to diff View file
M plugins/tracker_encryption/include/Tracker_FormElement_Field_Encrypted.class.php +8 −2 Go to diff View file