#2509 Unknown Command arguments are allowed (and ignored)
Closed: Fixed None Opened 12 years ago by pviktori.

Validation doesn't complain about extra command arguments, which means that misspelling an argument will cause it to be ignored.
This allows errors in custom RPC clients to go unnoticed. (The CLI and UI hopefully don't misspell names.)

One such custom client is our test suite: in test_sudorule_plugin we have

api.Command['sudorule_add_user'](self.rule_name, users=self.test_user)

That call does nothing: the parameter name should be user, not users.
(The test itself is passing so far due to an unrelated bug).


Moving to next month iteration.

automount plugin fix:

master: c45174d

Moving to next month iteration.

Metadata Update from @pviktori:
- Issue assigned to pviktori
- Issue set to the milestone: FreeIPA 3.0 Beta 1

7 years ago

Login to comment on this ticket.

Metadata