stable

Clone or download

Read-only

feat: Disable webdav if filename pattern is set

As soon as a filename pattern is set, we cannot use anymore WebDAV for the project Documents. (sabredav seems to not handle very well the on the fly renaming). If webdav is used by (and allowed for) the project, then a warning is displayed in filename pattern administration. Took the opportunity to redesign a little bit this page. Note: Update of webdav tests is to make sure we can run them in PHP8.1 Part of story #24166: apply a naming pattern on files to enforce a convention Change-Id: I30578b2f35b182f06997b965f509d40c3c483ed4

Modified Files

Name
M plugins/docman/include/docmanPlugin.php +18 −8 Go to diff View file
A plugins/docman/include/view/Admin/FilenamePatternWarningsCollector.php +60 −0 Go to diff View file
M plugins/docman/include/view/Docman_View_Admin_FilenamePattern.class.php +12 −5 Go to diff View file
M plugins/docman/templates/admin/pattern-filename.mustache +3 −0 Go to diff View file
M plugins/webdav/include/webdavPlugin.php +25 −0 Go to diff View file
M plugins/webdav/site-content/fr_FR/LC_MESSAGES/tuleap-webdav.po +20 −2 Go to diff View file
M plugins/webdav/tests/unit/WebDAVProjectTest.php +2 −0 Go to diff View file
M plugins/webdav/tests/unit/WebDAVRootTest.php +2 −0 Go to diff View file