Skip to content

Leading whitespace in user's first name breaks extension manager for that particular user. #931

@pcbouman-eur

Description

@pcbouman-eur

Recently we had a case where we were unable to provide an extension to a student who has a first name field in the database containing a leading space (e.g. " P. Bouman"). While the user shows up in the user-search field in the Extension Manager, an attempt to create the extension results in a "No student with id was found for this course." error message. I was able to provide an extension by manually inserting the relevant records into the database, after which the extension did show up in the extension manager.

The problem turned out to be reproducible for all students who have a leading whitespace in their first name field. I recorded the POST data submitted by the browser for such a student, an noticed the "extension[course_user_datum_id]" part of the form data is empty. This suggest something goes wrong in creating the POST request in the browser for such students.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions