When rejecting a project for containing one or more validation errors, populate the authors list with DisplayAuthors instead of Users, to fix this error:
[THYMELEAF][http-nio-8080-exec-1] Exception processing template "projects/new": Exception evaluating SpringEL expression: "author.imageUrl" (template: "projects/common" - line 23, col 11)
In general, this should not happen, as the browser should prevent form submission until all the required fields are filled in. However, if it does, we should handle it gracefully!
When rejecting a project for containing one or more validation errors, populate the authors list with
DisplayAuthor
s instead ofUser
s, to fix this error:In general, this should not happen, as the browser should prevent form submission until all the
required
fields are filled in. However, if it does, we should handle it gracefully!