You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Bug Description
When creating a new blog post the user/author can select a slug name that is very long, leading to HTTP error 414. Occasionally, during testing, this led to an unstable website. Please note that this instability may have been browser side as the string input to the slug field is... large.
To Reproduce
Steps to reproduce the behavior:
Sign in to Miniblog.Core
Click on 'New post'
Fill out all required fields, EXCEPT slug (save for last)
Copy the very long string included in the attached file (very likely this string is much longer than necessary to trigger the bug)
Paste the very long string in to the slug field
Immediately start clicking on 'Save', keep clicking on it until the post is saved
Once post is saved, HTTP Error 414 will show (see screenshot)
Expected behavior
The slug field should have a more reasonable character count enforcement/limitation. This restriction should be enforce both on the client side (the slug field itself) as well as server side (validation of the character count of the slug field).
Screenshots
Example screenshot of the error message displayed when a very long slug is provided.
hello! I try to figure out the problem and found some tips. If we put "[Route("/blog/{slug?:regex(^[[a-z0-9-]]+$)}")]" instead of "[Route("/blog/{slung?}]".. Does it work?
Bug Description
When creating a new blog post the user/author can select a slug name that is very long, leading to HTTP error 414. Occasionally, during testing, this led to an unstable website. Please note that this instability may have been browser side as the string input to the slug field is... large.
To Reproduce
Steps to reproduce the behavior:
Expected behavior
The slug field should have a more reasonable character count enforcement/limitation. This restriction should be enforce both on the client side (the slug field itself) as well as server side (validation of the character count of the slug field).
Screenshots
Example screenshot of the error message displayed when a very long slug is provided.
"Payload" for slug field (really long string)
miniblog-core_slug_http414-bug.txt
The text was updated successfully, but these errors were encountered: