Skip to content

Fix #100: Validate ACL user IDs format#113

Open
a22405291LourencoMadeira wants to merge 12 commits intodrop-project-edu:masterfrom
a22405291LourencoMadeira:fix-acl-validation-spaces
Open

Fix #100: Validate ACL user IDs format#113
a22405291LourencoMadeira wants to merge 12 commits intodrop-project-edu:masterfrom
a22405291LourencoMadeira:fix-acl-validation-spaces

Conversation

@a22405291LourencoMadeira
Copy link
Copy Markdown

Please check if the PR fulfills these requirements:

  • Tests for the changes have been added/updated (if possible)
  • Documentation has been updated/added if relevant
  • Screenshots are attached to Github PR if visual/UI changes were made

What is the current behavior?

Fixes #100

When entering multiple teacher IDs in the "Other teachers (optional)" field without commas (e.g., using spaces like teacher1 teacher2), the system accepts the input as a single invalid user ID. No validation error is shown.

What is the new behavior?

The system now validates that each user ID does not contain spaces. If spaces are detected, a clear error message is shown:

"Error: User IDs must be comma-separated. 'teacher1 teacher2' appears to contain spaces."

Other information?

  • This is not a breaking change
  • How did you test: Manually tested by attempting to save an assignment with teacher1 teacher2 (space instead of comma) and verified the error message appears correctly. Also tested with valid comma-separated values to ensure normal functionality still works.

palves-ulht and others added 12 commits March 13, 2026 14:19
…configuration

This way it avoids bean conflicts related to having two userDetailsManager (the "normal" and the actuator)
…rface

Adds functionality to compute and display disk usage for assignments, including file system (submissions and mavenized folders) and database usage (junit_report and build_report), sorted by total size.
…rface

Adds functionality to compute and display disk usage for assignments, including file system (submissions and mavenized folders) and database usage (junit_report and build_report), sorted by total size.
…rface

Adds functionality to compute and display disk usage for assignments, including file system (submissions and mavenized folders) and database usage (junit_report and build_report), sorted by total size.
…rface

Adds functionality to compute and display disk usage for assignments, including file system (submissions and mavenized folders) and database usage (junit_report and build_report), sorted by total size.
Copy link
Copy Markdown
Collaborator

@palves-ulht palves-ulht left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice work! Please check the ; as well - teacher1;teacher2 should also give an error.

Also, add tests for these two cases.

@palves-ulht
Copy link
Copy Markdown
Collaborator

palves-ulht commented Apr 21, 2026

Nice work! Please check the ; as well - teacher1;teacher2 should also give an error.

Also, add tests for these two cases.

Also change the target branch, it should be drop-project:v1.0.0-beta.5

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Invalid format in "Other teachers (optional)" is accepted as a single invalid user ID

2 participants