Skip to content

Very Long String for Slug Field Leads to HTTP Error 414 #188

Open
@kmart-sgen

Description

@kmart-sgen

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:

  1. Sign in to Miniblog.Core
  2. Click on 'New post'
  3. Fill out all required fields, EXCEPT slug (save for last)
  4. Copy the very long string included in the attached file (very likely this string is much longer than necessary to trigger the bug)
  5. Paste the very long string in to the slug field
  6. Immediately start clicking on 'Save', keep clicking on it until the post is saved
  7. 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.
miniblog core-http414-bug

"Payload" for slug field (really long string)
miniblog-core_slug_http414-bug.txt

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions