Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Posts are successful even when there's no correspoding form. #3543

Timtech4u opened this issue Jun 2, 2019 · 0 comments


None yet
2 participants
Copy link

commented Jun 2, 2019

Describe the bug
I am able to make posts to the api/v3/posts endpoint even when there's no corresponding form.

Where was the bug observed
Bug was found on the api/v3/posts endpoint, I made a post request using the API without having any survey(forms) and it was successful.

To Reproduce
Steps to reproduce the behavior:

  1. Make a POST request to the following endpoint <domain_url>/api/v3/posts
  2. Specify an invalid form id in your body, mine was:
    "title": "Test",
    "content": "Post get saved",
    "form": {
        "id": 999,
        "url": "",
    "status": "published"
  1. Check the Data on your Ushahid Platform, you'll see the submitted posts as mine below:

Screenshot from 2019-06-02 10-50-51

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.