Page MenuHomePhabricator

A user should not be able to create talk pages with a blank subject
Closed, ResolvedPublic


Steps to reproduce:

  1. Visit
  2. Click 'Add discussion'
  3. Type a space (' ') in the 'Topic subject' field and something else in the 'Whats is on your mind?' field.
  4. Click 'Save'
  5. You'll see that your talk page is added but you cannot click on it because the subject is empty.

When saving a discussion the backend (and front-end also?) should run a simple validation to check that the trimmed subject and discussion are not empty. This or some other validation check needs to run.

By the way, a similar validation should run when someone is replying to someone else's discussion.

Event Timeline

bmansurov raised the priority of this task from to Needs Triage.
bmansurov updated the task description. (Show Details)
bmansurov added a project: Readers-Web-Backlog.
bmansurov added a subscriber: bmansurov.
bmansurov set Security to None.
Jhernandez added a subscriber: Jhernandez.

This is probably just making the frontend JS validation since the backend is just using the normal edit api.

Change 223657 had a related patch set uploaded (by Sumit):
TalkSectionOverlay disallow empty fields

I'm still able to re-produce the issue. See

bmansurov claimed this task.

It was a cache issue.

Change 223657 merged by jenkins-bot:
TalkSectionOverlay disallow empty fields