mirror of
https://salsa.debian.org/freeipa-team/freeipa.git
synced 2024-12-28 01:41:14 -06:00
646a4ccde3
When an error which caused calling of report_error occurt, the content of a facet got replaced by error message. There was no way how to force the facet to recreate its content and the facet became unusable. This patch creates a containter for an error message. On error, report_error writes its content to error container, content container is hidden and error container is shown. Older comment in a code suggested to move the error message to facet's footer. A message in a footer could be missed by the user and on top of that a footer is sometimes used by various facet and we would have to solve the same problem again. From experience the cause of an error is usually a missing pkey in a path. Therefore error information suggests user to navigate to top level. It causes to load default facets with default values so errors in navigation state shouldn't happen. Facet content is displayed back on facet_show. If user tries to display same object as before facet's need_update() would return false, therefore need_update was modified to always return true if error is displayed. Reproduction: 1) display any nested entity - ie DNS record 2) delete its parent pkey from path - &dnszone-pkey=example.com 3) reload the page with this path https://fedorahosted.org/freeipa/ticket/2449 |
||
---|---|---|
.. | ||
__init__.py | ||
aci.py | ||
automember.py | ||
automount.py | ||
baseldap.py | ||
batch.py | ||
cert.py | ||
config.py | ||
delegation.py | ||
dns.py | ||
entitle.py | ||
group.py | ||
hbacrule.py | ||
hbacsvc.py | ||
hbacsvcgroup.py | ||
hbactest.py | ||
host.py | ||
hostgroup.py | ||
internal.py | ||
kerberos.py | ||
krbtpolicy.py | ||
migration.py | ||
misc.py | ||
netgroup.py | ||
passwd.py | ||
permission.py | ||
ping.py | ||
pkinit.py | ||
privilege.py | ||
pwpolicy.py | ||
role.py | ||
selfservice.py | ||
selinuxusermap.py | ||
service.py | ||
sudocmd.py | ||
sudocmdgroup.py | ||
sudorule.py | ||
user.py | ||
virtual.py | ||
xmlclient.py |