stable

Clone or download

Read-only

Decouple RESTCurrentUserMiddleware from the controllers

This is needed because we will need to expose a different authentication method to allow ONLYOFFICE to download documents. Decoupling the existing way will allow us to re-use the same controller. This is a technical changes, nothing is expected to be different from the end-user point of view. Part of story #27555: display Office documents stored in the Document plugin Change-Id: I8beed63f39c3f324be4eb147c92cb59f2074d369

Modified Files

Name
M plugins/docman/include/Download/DocmanFileDownloadController.php +7 −5 Go to diff View file
M plugins/docman/include/Upload/Document/DocumentBeingUploadedInformationProvider.php +7 −4 Go to diff View file
M plugins/docman/include/Upload/Version/VersionBeingUploadedInformationProvider.php +8 −5 Go to diff View file
M plugins/docman/include/docmanPlugin.php +14 −6 Go to diff View file
M plugins/docman/tests/unit/Download/DocmanFileDownloadControllerTest.php +29 −8 Go to diff View file
M plugins/docman/tests/unit/Upload/Document/DocumentBeingUploadedInformationProviderTest.php +33 −21 Go to diff View file
M plugins/docman/tests/unit/Upload/Version/VersionBeingUploadedInformationProviderTest.php +23 −15 Go to diff View file
M plugins/frs/include/FRS/Upload/Tus/FileBeingUploadedInformationProvider.php +6 −4 Go to diff View file
M plugins/frs/include/frsPlugin.php +8 −2 Go to diff View file
M plugins/frs/tests/unit/FRS/Upload/Tus/FileBeingUploadedInformationProviderTest.php +22 −11 Go to diff View file
M plugins/tracker/include/Tracker/FormElement/Field/File/AttachmentController.php +6 −3 Go to diff View file
M plugins/tracker/include/Tracker/FormElement/Field/File/Upload/Tus/FileBeingUploadedInformationProvider.php +6 −3 Go to diff View file
M plugins/tracker/include/Tracker/FormElement/Tracker_FormElement_Field_File.php +4 −1 Go to diff View file
M plugins/tracker/include/trackerPlugin.php +9 −4 Go to diff View file
M plugins/tracker/tests/unit/Tracker/FormElement/Field/File/AttachmentControllerTest.php +60 −127 Go to diff View file
M plugins/tracker/tests/unit/Tracker/FormElement/Field/File/Upload/Tus/FileBeingUploadedInformationProviderTest.php +22 −11 Go to diff View file
M src/common/FRS/FRSFileDownloadController.php +6 −4 Go to diff View file
M src/common/REST/RESTCurrentUserMiddleware.php +13 −1 Go to diff View file
M src/common/Request/RouteCollector.php +3 −1 Go to diff View file
M src/common/Upload/FileUploadController.php +2 −4 Go to diff View file
A src/common/User/ProvideCurrentRequestUser.php +30 −0 Go to diff View file
M tests/unit/common/FRS/FRSFileDownloadControllerTest.php +40 −20 Go to diff View file
M tests/unit/common/REST/RESTCurrentUserMiddlewareTest.php +3 −3 Go to diff View file
A tests/unit/tests/User/CurrentRequestUserProviderStub.php +39 −0 Go to diff View file