Quantcast
Viewing all articles
Browse latest Browse all 291475

User Picture directory can't be corrected once set to an invalid path

The validity checking of variable user_picture_path takes place inside the form generation function user_admin_settings(), not in a validation hook. As a result, the validity of user_picture_path is not checked at form submission. Further, once user_picture_path is set to something invalid, it's not possible to correct it to something valid (since the form always fails to validate on submission).

Repeat by:

  1. On /admin/config/people/accounts, set the User Picture directory to something invalid, such as 'public://pictures'
  2. Submit the form
  3. Receive a validation error: The directory public://public://pictures does not exist or is not writable.
  4. Correct the User Picture directory value to something valid, such as 'pictures'
  5. Submit the form
  6. Continue to receive a validation error

Viewing all articles
Browse latest Browse all 291475

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>