#4183 Consolidate use of cli_name vs. internal (API param/LDAP attribute) name in ValidationError
Closed: wontfix 5 years ago Opened 10 years ago by pviktori.

A comment in Param.get_param_name (used for ValidationError, ConversionError, RequirementError, and OverlapError exceptions) says:

        Normally errors should use cli_name, our "friendly" name. When
        using the API directly or *attr return the real name.

However, in most cases the server just returns cli_name every time.

I believe translating internal option names to cli_name this should be done entirely on the client side.

(But keeping the status quo would need some additions too: short of searching through the list of options, there's no mechanism to get cli_name by internal option name outside of validators, e.g. when validating in pre_callback because LDAP is needed.


I believe this is to keep consistent error messages between the CLI and the UI.

Metadata Update from @pviktori:
- Issue assigned to someone
- Issue set to the milestone: Ticket Backlog

7 years ago

Thank you taking time to submit this request for FreeIPA. Unfortunately this bug was not given priority and the team lacks the capacity to work on it at this time.

Given that we are unable to fulfil this request I am closing the issue as wontfix. To request re-consideration of this decision please reopen this issue and provide additional technical details about its importance to you.

Metadata Update from @rcritten:
- Issue close_status updated to: wontfix
- Issue status updated to: Closed (was: Open)

5 years ago

Login to comment on this ticket.

Metadata