[AMOS commit] MDL-59544 forms: Implicit validation of the filemanager and filepicker Committed into Git: 2017-07-14 12:48 UTC

[AMOS commit] MDL-59544 forms: Implicit validation of the filemanager and filepicker Committed into Git: 2017-07-14 12:48 UTC

by AMOS bot -
Number of replies: 0
Author: David Mudrák
MDL-59544 forms: Implicit validation of the filemanager and filepicker
The patch adds an extra validation step against accepted file types.
Even if the repository checks are bypassed (as illustrated in the
Behat), the invalid file is still caught by the element's validation
rules.

It turns out there is no way to test the filepicker element easily via
Behat. Additionally, it provides the renaming features only with
disabled javascript. So the Behat tests are provided for the filemanager
only.

AMOS BEGIN
CPY [err_wrongfileextension,mod_workshop],[err_wrongfileextension,core_form]
AMOS END


http://git.moodle.org/gw?p=moodle.git;a=commit;h=1661204a6c27de6fdfbdc89809455417f72a42e0
http://github.com/moodle/moodle/commit/1661204a6c27de6fdfbdc89809455417f72a42e0

+ 3.4 en [err_wrongfileextension,core_form]