Skip to content
This repository has been archived by the owner on May 19, 2020. It is now read-only.

Trying to save a post without title or with only number in title hangs #1230

Open
b4d opened this issue Nov 19, 2017 · 5 comments
Open

Trying to save a post without title or with only number in title hangs #1230

b4d opened this issue Nov 19, 2017 · 5 comments

Comments

@b4d
Copy link

b4d commented Nov 19, 2017

Summary

When adding new post, cursor is positioned in the body of the post and user can quickly forget to add title. If you try to save the post without title or just with numbers in title, you get "Saving..." and everything hangs

Expected Behaviour

  • Save the post without title or with number only, or tell me that I have to enter one

Actual Behaviour

  • Page hangs while saving

Context details (if applicable)

  • Anchor version: 0.12.3
  • Server setup: Apache 2.4.25
@b4d b4d changed the title Trying to save a post without title hangs Trying to save a post without title or with only number in title hangs Nov 19, 2017
@CraigChilds94
Copy link
Member

@b4d

I'll check this out for you!

@b4d
Copy link
Author

b4d commented Nov 22, 2017

@CraigChilds94

Cool, thanks! If you need more info, here I am!

@pixeldrift64
Copy link

Hey there.

I recently ran into this issue while using Anchor and trying to create a blog post titled "2017".

So I thought I'd do some investigating and found the following problems:

When adding a new post:

  • Validation is happening to check that both the title and slug are at least 3 characters long.
  • It also checks that the slug is not numeric

If these things happen, there doesn't seem to be any error handling, so the page hangs.

Potential ways to fix this would be to reduce the limit of a minimum 3 characters on title + slug, and remove the limit on no numeric characters in slug. Alternatively, we could introduce some message back to the user to correct the issues and comply with the current validation.

I'd like to help by making a contribution, but these limitations in the validation have obviously been added for a reason, so if anyone has any info on why they are in place and the best method to fix this issue, it would be greatly appreciated.

Thanks :)

@CraigChilds94
Copy link
Member

@pixeldrift64 @b4d Sorry I've not had a chance to get around to this yet, I'll look into why the validation is setup this way and see if we can lift the non-numeric or improve our validation errors messages so that the users have an idea of why it's not working :)

@rensite
Copy link

rensite commented Apr 2, 2019

Still have no fix for the bug. We need it =)

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

5 participants