-
Bug
-
Resolution: Fixed
-
Critical
-
2.1.4, 2.2.1
-
MOODLE_21_STABLE, MOODLE_22_STABLE
-
MOODLE_21_STABLE, MOODLE_22_STABLE
-
MDL-25027_stable_consistency_fix -
Users can be added with leading/trailing spaces in firstname and lastname via the GUI form. However, the same values submitted via web services will cause an exception to be thrown.
This appears to be because the create_users service runs the data through truncate_userinfo() and throws an exception if it is returned modified in anyway. truncate_userinfo() has a call to trim() which strips the spaces. The fields are of type PARAM_NOTAGS which allows the spaces.
- has a non-specific relationship to
-
MDL-29374 Exceptions returned by moodle_user_create_users are not explicit
- Closed
- has a QA test
-
MDL-31714 Core needs centralized data validations for use by core and web services too. truncate_userinfo() not good enough.
- Closed
- has been marked as being related by
-
MDL-29582 missing validation error in web UIs when entering names with leading/trailling spaces.
- Closed
- will help resolve
-
MDL-29276 META- Web service improvements for 2.2
- Closed