miztake / freeipa

Forked from freeipa 5 years ago
Clone

2c362c9 Host page fixed to work with disabled DNS support

Authored and Committed by pvoborni 12 years ago
    Host page fixed to work with disabled DNS support
    
    When DNS support was disabled there were following errors in Web UI:
     1) Host details page was not filled with data
     2) Host adder dialog was broken -> unusable
     3) DNS tab was displayed in navigation
    
    The bugs were fixed by:
    
    1) Was caused by entity_link_widget. The widget was modified to do not show link if other_entity (in this case dnsrecord) is not present.
    
    2) Was caused by host_fqdn_widget. The widget is unusable becouse withou DNS support it doesn't have access to DNS zone entity. The section with this widget was removed. Also IP address field was removed because it shouln't be used without DNS support. New 'fqdn' text box was added for specifying hostname.
    
    3) New DNS config entity was initialized but it wasn't shown because it caused some JavaScript error. The dnsconfig's init method was modified to throw expected exception. Now no dns entity is initialized and therefore DNS tab in navigation is not displayed.
    
    https://fedorahosted.org/freeipa/ticket/2728
    
        
file modified
+7 -0
file modified
+8 -0
file modified
+12 -0