omdbapi / OMDb-API

The Open Movie Database Bug Tracking
418 stars 21 forks source link

API request with uncommon characters obtains 403 status code #263

Open apibugsreporting opened 2 years ago

apibugsreporting commented 2 years ago

When making the following request: GET https://omdbapi.com/?r=y1T%40T3D_%27*ywoQWz%216%3Bd&s=%27mi%24.Fn%3B%7ByL&plot=PWKp7pU%20WJPeMS&i=%3E%23%21F5%29xf%28F%3FA%20n&y=&page=&type=%5C0

A 403 status code ("Forbidden") is obtained. In fact, an HTML page is returned, displaying the message "Sorry, you have been blocked". If returning this response cannot be avoided, at least the 403 status code should be documented in the Swagger definition of the API.

A test report revealing this issue is available at: http://apitesting.ddns.net/fse2022/restest/target/allure-reports/omdb__r_ft_/#behaviors/b1a8273437954620fa374b796ffaacdd/bcf9510ecfab2854/