gcivil-nyu-org / wed-fall24-team2

4 stars 2 forks source link

[BUG] Inputting large amount of combining characters for username on registration causes a 413 Error #193

Open omerfarukbasar opened 1 day ago

omerfarukbasar commented 1 day ago

Description On the registration page, if you create an account with a username with a large amount of combining character, it will cause a 413 Request Entity Too Large message to appear

Steps to Reproduce Steps to reproduce the behavior:

  1. Go to sign up page
  2. Input a username with a large amount of combining characters
  3. Fill in the rest and hit submit
  4. Observe the 413 Request Entity Too Large message appear

Expected Behavior It shouldn't lead to a request error. It should instead prompt the user that the username can't be accepted.

Screenshots or Code Snippets (required)

Screenshot 2024-11-15 at 1 19 19 AM Screenshot 2024-11-15 at 1 20 05 AM
grand1nqu1s1tor commented 1 day ago

Hi @omerfarukbasa, I tried testing this with up to 5000 characters and I get a disclaimer every time that the username can not be accepted due to it's size. How big of an input are you testing it with?

omerfarukbasar commented 1 day ago

Hi @grand1nqu1s1tor, I tested this using a much larger input. It was around 100,000 characters. I used this website to generate a text with a large amount of combining characters. First type in a text, set the craziness level to max. Copy the result and paste it multiple times into the username field. Please let me know if you are still unable to replicate the issue.