Project

General

Profile

Actions

action #31045

closed

Invalid URL gives 500 - should give 404

Added by coolo about 6 years ago. Updated about 6 years ago.

Status:
Resolved
Priority:
Low
Assignee:
Category:
Regressions/Crashes
Target version:
Start date:
2018-01-30
Due date:
% Done:

0%

Estimated time:

Description

Someone tried to be clever and guess URLs, but:

/api/v1/assets/iso results in

invalid input syntax for integer: "iso" [for Statement "SELECT me.id, me.type, me.name, me.size, me.checksum, me.last_use_job_id, me.fixed, me.t_created, me.t_updated FROM assets me WHERE ( id = ? )" with ParamValues: 1='iso'] at /usr/share/openqa/script/../lib/OpenQA/WebAPI/Controller/API/V1/Asset.pm line 62

The routes need to only match integers. Entrance level issue IMO

Actions #1

Updated by mitiao about 6 years ago

  • Assignee set to mitiao
Actions #2

Updated by mitiao about 6 years ago

  • Status changed from New to In Progress
  • Target version changed from Ready to Current Sprint
Actions #4

Updated by mitiao about 6 years ago

  • Status changed from In Progress to Resolved

PR merged

Actions #5

Updated by szarate about 6 years ago

  • Target version changed from Current Sprint to Done
Actions

Also available in: Atom PDF