There are many places where we convert PublicError to string with unicode(PublicError()). However, this may cause conversion when Gettext is used:
PublicError
unicode(PublicError())
Gettext
# 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.
PublicError().strerror
git grep "unicode(e)"
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
Login to comment on this ticket.