#3445 Clean PublicError conversions
Opened 11 years ago by mkosek. Modified 7 years ago

There are many places where we convert PublicError to string with unicode(PublicError()). However, this may cause conversion when Gettext is used:

# ipa group-add-member group --external "AD\Administrator"
      member group: AD\Domain Admins: Insufficient access:
Gettext('communication
with trusted domains is allowed for Trusts administrator group members only',
domain='ipa', localedir=None)

We need to use PublicError().strerror to avoid it. Just by running git grep "unicode(e)" I saw many other potential places where this could happen.


As Ana is moving out of the team, I am moving her unresolved tickets to free-to-take pool.

Metadata Update from @mkosek:
- Issue assigned to someone
- Issue set to the milestone: Future Releases

7 years ago

Login to comment on this ticket.

Metadata