#2874 Pythonish error message
Closed: Fixed None Opened 11 years ago by pvoborni.

When executing in Web UI:

{ 
  "method":"hbacrule_mod",
  "params":[["aa"],{"all":true,"rights":true,"usercategory":"all"
}

And user category contained some user and group. Following result was returned to Web UI.

{
   "error": "Gettext(\"user category cannot be set to 'all' while there are allowed users\", domain='ipa', localedir=None)"
}

The error attribute doesn't contain message itself but a python call which should get the message. Fortunately the call text contains the message so user can understand something.

Error attribute should contain only the error message itself.


This is actually a problem in the Batch command, we don't handle errors well there.

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

7 years ago

Login to comment on this ticket.

Metadata