Project

General

Profile

Actions

Bug #16306

open

Hammer should validate that --id options aren't blank

Added by Perry Gagne over 8 years ago. Updated almost 5 years ago.

Status:
New
Priority:
Normal
Assignee:
-
Category:
Hammer core
Target version:
-
Difficulty:
Triaged:
Yes
Team Backlog:
Marek
Fixed in Releases:
Found in Releases:
In Kanboard:

Description

This is the error printed when an deleting an architecture and giving it an id that does not exist

[root@host ~]# hammer -u admin  architecture delete --id="-1" 
Could not delete the architecture:
  Resource architecture not found by id '-1'

However, it seems when an empty string is used it prints a HTTP error

[root@host ~]# hammer -u admin  architecture delete --id="" 
Could not delete the architecture:
  404 Resource Not Found

Actions

Also available in: Atom PDF