Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Creating an area with only weird characters breaks the front #1527

Open
2 tasks done
MartinBelthle opened this issue May 22, 2023 · 1 comment
Open
2 tasks done

Creating an area with only weird characters breaks the front #1527

MartinBelthle opened this issue May 22, 2023 · 1 comment
Labels
bug Something isn't working front-end

Comments

@MartinBelthle
Copy link
Contributor

MartinBelthle commented May 22, 2023

Description

When creating an area with only weird characters such as %, the front is broken : it only shows a white screen.

Steps to Reproduce

  1. Create a study
  2. Create a new area named "%%%"
  3. See that you broke the view

Expected Behavior

It shouldn't be possible to create an area with such a name and a red pop up should appear on the bottom left of the screen

Environment

  • Production
  • Staging
@MartinBelthle MartinBelthle added bug Something isn't working front-end labels May 22, 2023
@MartinBelthle MartinBelthle changed the title Creating an aera with weird characters only breaks the front Creating an area with only weird characters breaks the front May 22, 2023
@MartinBelthle MartinBelthle assigned skamril and hdinia and unassigned skamril and hdinia May 23, 2023
@MartinBelthle MartinBelthle pinned this issue May 23, 2023
@MartinBelthle MartinBelthle unpinned this issue May 23, 2023
@MartinBelthle
Copy link
Contributor Author

This issue will be treated in 2 phases:
1- Forbid such area creation in the back office : fix/create-a-study-with-forbidden-character-is-now-impossible
2- Forbid such creation in the front office or raise a pop up when the exception is caught in the back office.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working front-end
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants