Skip to content

Search API request for "[]"square brackets in "Search Projects" results in to 400 HTTP Status Code #619

Open
@rprakash20

Description

@rprakash20

Describe the bug
Search API request for "[]"square brackets in "Search Projects" results in to 400 HTTP Status Code. So, the search fails and due to which it lists out all the projects in the left side pane.

To Reproduce / Actual Behavior
Steps to reproduce the behavior:

  1. login to https://challenges.topcoder-dev.com with credentials "jcori / appirio123"
  2. Check the left hand side pane containing "Challenge Editor" Heading.
  3. Open browser inspector and click on "Network" tab
  4. Search for "[]"(square brackets) in "Search Projects" text box
  5. Check the response code of API request for search in the "Network" tab of Inspector
  6. Check the Search results under the challenge Editor

Expected Behavior
Search API request should return a 200 status code without crashing and the search should list only project which contains square brackets in their name. If none of the project names have square brackets in their name then it must not show anything.

Screenshots
Screenshot 2020-05-09 at 5 01 46 PM
Screenshot 2020-05-09 at 5 02 42 PM

Desktop (please complete the following information):

  • OS: macOS Mojave Version 10.14.6
  • Browser : Chrome
  • Version 81.0.4044.138 (Official Build) (64-bit)

Additional context
Add any other context about the problem here.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions