Added request validation in storage API (issue #3471)