Opened 7 years ago

Closed 7 years ago

#27787 closed Cleanup/optimization (fixed)

call_command() should validate the arguments it receives

Reported by: Tim Graham Owned by: Chandrakant Kumar
Component: Core (Management commands) Version: dev
Severity: Normal Keywords:
Cc: Triage Stage: Ready for checkin
Has patch: yes Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: no UI/UX: no

Description

In #27769 it was observed that call_command() doesn't reject unknown options. In that case, noinput=True was passed rather than interactive=False. It would be nice if such errors didn't pass silently.

Change History (10)

comment:1 by Srinivas Reddy Thatiparthy, 7 years ago

Owner: changed from nobody to Srinivas Reddy Thatiparthy
Status: newassigned

comment:3 by Claude Paroz, 7 years ago

Needs tests: set

comment:4 by Chandrakant Kumar, 7 years ago

Needs tests: unset

comment:5 by Tim Graham, 7 years ago

Patch needs improvement: set

The patch is still not ready for review given tests aren't passing and release notes about possible backwards incompatibilities are missing.

comment:6 by Chandrakant Kumar, 7 years ago

Patch needs improvement: unset

comment:7 by Chandrakant Kumar, 7 years ago

Owner: changed from Srinivas Reddy Thatiparthy to Chandrakant Kumar

comment:8 by Tim Graham <timograham@…>, 7 years ago

In f6800a08:

Refs #27787 -- Corrected or removed invalid call_command() options.

comment:9 by Tim Graham, 7 years ago

Triage Stage: AcceptedReady for checkin

comment:10 by Tim Graham <timograham@…>, 7 years ago

Resolution: fixed
Status: assignedclosed

In 2b09e4c8:

Fixed #27787 -- Made call_command() validate the options it receives.

Note: See TracTickets for help on using tickets.
Back to Top