stable
Clone or download
Read-only
Using REST API, create a file in an existing release: POST /frs_files { "release_id": int, "name": "string", "file_size": int } The route will return the upload href to be used later (in dedicated changeset) by tus.io client. If file size is 0, then upload href is null since there is nothing to create (however the file is not created yet). Part of story #12813: upload files with FRS REST API Change-Id: I0a0ae7df40b550bdd533cf0cd55cf8e647d5ecb8
Modified Files
Name | ||||
---|---|---|---|---|
M | plugins/frs/db/install.sql | +12 | −1 | Go to diff View file |
A | plugins/frs/db/mysql/updates/2019/201903051612_create_plugin_frs_file_upload.php | +49 | −0 | Go to diff View file |
M | plugins/frs/db/uninstall.sql | +1 | −0 | Go to diff View file |
A | plugins/frs/include/FRS/REST/v1/CreatedFileRepresentation.php | +34 | −0 | Go to diff View file |
A | plugins/frs/include/FRS/REST/v1/FileCreator.php | +94 | −0 | Go to diff View file |
A | plugins/frs/include/FRS/REST/v1/FilePOSTRepresentation.php | +40 | −0 | Go to diff View file |
M | plugins/frs/include/FRS/REST/v1/FileResource.php | +80 | −4 | Go to diff View file |
M | plugins/frs/include/FRS/REST/v1/ReleaseRepresentation.php | +2 | −2 | Go to diff View file |
A | plugins/frs/include/FRS/Upload/FileOngoingUploadDao.php | +55 | −0 | Go to diff View file |
A | plugins/frs/include/FRS/Upload/FileToUpload.php | +40 | −0 | Go to diff View file |
A | plugins/frs/include/FRS/Upload/FileToUploadCreator.php | +161 | −0 | Go to diff View file |
A | plugins/frs/include/FRS/Upload/UploadCreationConflictException.php | +30 | −0 | Go to diff View file |
A | plugins/frs/include/FRS/Upload/UploadCreationException.php | +25 | −0 | Go to diff View file |
A | plugins/frs/include/FRS/Upload/UploadCreationFileMismatchException.php | +29 | −0 | Go to diff View file |
A | plugins/frs/include/FRS/Upload/UploadFileMarkedToBeRestoredException.php | +27 | −0 | Go to diff View file |
A | plugins/frs/include/FRS/Upload/UploadFileNameAlreadyExistsException.php | +27 | −0 | Go to diff View file |
A | plugins/frs/include/FRS/Upload/UploadMaxSizeExceededException.php | +33 | −0 | Go to diff View file |
M | plugins/frs/include/frsPlugin.class.php | +27 | −12 | Go to diff View file |
A | plugins/frs/phpunit/.simpletest_skip | +0 | −0 | Go to diff View file |
A | plugins/frs/phpunit/FRS/Upload/FileToUploadCreatorTest.php | +323 | −0 | Go to diff View file |
A | plugins/frs/phpunit/bootstrap.php | +22 | −0 | Go to diff View file |
M | plugins/frs/site-content/fr_FR/LC_MESSAGES/tuleap-frs.po | +5 | −2 | Go to diff View file |
M | plugins/frs/tests/rest/FRS/FileTest.php | +26 | −1 | Go to diff View file |
M | plugins/webdav/tests/WebDAVFRSPackageTest.php | +6 | −7 | Go to diff View file |
M | plugins/webdav/tests/WebDAVFRSReleaseTest.php | +65 | −67 | Go to diff View file |
M | plugins/webdav/tests/WebDAVTreeTest.php | +2 | −2 | Go to diff View file |
M | site-content/fr_FR/LC_MESSAGES/tuleap-core.po | +5 | −1 | Go to diff View file |
M | src/common/dao/FRSFileDao.class.php | +52 | −50 | Go to diff View file |
M | src/common/frs/FRSFileFactory.class.php | +12 | −5 | Go to diff View file |
A | src/common/frs/FRSFileOngoingUploadException.php | +41 | −0 | Go to diff View file |
A | src/common/frs/FRSOngoingUploadChecker.php | +55 | −0 | Go to diff View file |
M | src/common/frs/FRSRelease.class.php | +30 | −29 | Go to diff View file |
M | src/www/admin/show_pending_documents.php | +2 | −2 | Go to diff View file |
M | tests/simpletest/common/frs/FRSFileFactoryTest.php | +14 | −15 | Go to diff View file |
M | tests/simpletest/common/frs/FRSReleasePermissionManagerTest.php | +6 | −6 | Go to diff View file |
M | tests/simpletest/common/frs/FRSXMLImporterTest.php | +9 | −9 | Go to diff View file |