Skip to content

API returns an error when searching for a single slash "/" character #34

@blairlearn

Description

@blairlearn

Issue description

Searching for a single / character (as opposed to a term containing a slash, e.g. 2/3) results in a status 400 return and a message that a search term must be supplied.

This appears to be related to IIS request filtering as running against the API directly (i.e. with no proxy) results in the expected output. Oddly, sitewide search does return search results, even though it has an identical web.config and similar route handling.

ESTIMATE 20

Steps to reproduce the issue

  1. Browse to https://webapis-dev.cancer.gov/bestbets/v1/BestBets/live/en/%2F
    collection = "live", language = "en", term = %2F (url encoded / character.)

What's the expected result?

  • Search results (likely an empty array).

What's the actual result?

  • A JSON element containing the message, "You must apply a search term."

Additional details / screenshot

  • Screenshot

Related Tickets

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions