Project

General

Profile

Bug #18257

Updated by Alexis Mousset over 3 years ago

6.0.6. has massive problems when cloning a technique and createing directive from this (see associated reports, e.g. for missplaced resources, ...). 
 After update from 6.0.6 -> 6.0.9 problems are the same. 

 I cloned a technique which contains no resources and no parameters. 
 Creating a directive from this results in a disabled directive. 
 After enabling I created an instance from this, which results in "Error during policy updates", 
 details: 

 <pre> 
 " 
 Policy update process was stopped due to an error: 
 ⇨ Policy update error for process '4094' at 2020-09-28 14:37:09  
 ⇨    Cannot write nodes configuration  
 ⇨    Accumulated: Unexpected: Error when trying to open resource 'techniques/ncf_techniques/Stage_ALL_01_LDAP_Auth/1.0/resources/whitelist.acl'. Check that the file exists is correctly commited in Git, or that the metadata for the technique are corrects. ; Unexpected: Error when trying to open resource 'techniques/ncf_techniques/Stage_ALL_01_LDAP_Auth/1.0/resources/haproxy.cfg'. Check that the file exists is correctly commited in Git, or that the metadata for the technique are corrects. ; Unexpected: Error when trying to open resource 'techniques/ncf_techniques/Stage_ALL_01_LDAP_Auth/1.0/resources/bad-user-agents.list'. Check that the file exists is correctly commited in Git, or that the metadata for the technique are corrects. ; Unexpected: Error when trying to open resource 'techniques/ncf_techniques/Stage_ALL_01_LDAP_Auth/1.0/resources/crt-list.txt'. Check that the file exists is correctly commited in Git, or that the metadata for the technique are corrects. ; Unexpected: Error when trying to open resource 'techniques/ncf_techniques/Stage_ALL_01_LDAP_Auth/1.0/resources/blacklist.acl'. Check that the file exists is correctly commited in Git, or that the metadata for the technique are corrects. ; Unexpected: Error when trying to open resource 'techniques/ncf_techniques/Stage_ALL_01_LDAP_Auth/1.0/resources/whitelist.acl'. Check that the file exists is correctly commited in Git, or that the metadata for the technique are corrects. ; Unexpected: Error when trying to open resource 'techniques/ncf_techniques/Stage_ALL_01_LDAP_Auth/1.0/resources/haproxy.cfg'. Check that the file exists is correctly commited in Git, or that the metadata for the technique are corrects. ; Unexpected: Error when trying to open resource 'techniques/ncf_techniques/Stage_ALL_01_LDAP_Auth/1.0/resources/bad-user-agents.list'. Check that the file exists is correctly commited in Git, or that the metadata for the technique are corrects. ; Unexpected: Error when trying to open resource 'techniques/ncf_techniques/Stage_ALL_01_LDAP_Auth/1.0/resources/crt-list.txt'. Check that the file exists is correctly commited in Git, or that the metadata for the technique are corrects. ; Unexpected: Error when trying to open resource 'techniques/ncf_techniques/Stage_ALL_01_LDAP_Auth/1.0/resources/blacklist.acl'. Check that the file exists is correctly commited in Git, or that the metadata for the technique are corrects. ; Unexpected: Error when trying to open resource 'techniques/ncf_techniques/Stage_ALL_01_LDAP_Auth/1.0/resources/whitelist.acl'. Check that the file exists is correctly commited in Git, or that the metadata for the technique are corrects. ; Unexpected: Error when trying to open resource 'techniques/ncf_techniques/Stage_ALL_01_LDAP_Auth/1.0/resources/haproxy.cfg'. Check that the file exists is correctly commited in Git, or that the metadata for the technique are corrects. ; Unexpected: Error when trying to open resource 'techniques/ncf_techniques/Stage_ALL_01_LDAP_Auth/1.0/resources/bad-user-agents.list'. Check that the file exists is correctly commited in Git, or that the metadata for the technique are corrects. ; Unexpected: Error when trying to open resource 'techniques/ncf_techniques/Stage_ALL_01_LDAP_Auth/1.0/resources/crt-list.txt'. Check that the file exists is correctly commited in Git, or that the metadata for the technique are corrects. ; Unexpected: Error when trying to open resource 'techniques/ncf_techniques/Stage_ALL_01_LDAP_Auth/1.0/resources/blacklist.acl'. Check that the file exists is correctly commited in Git, or that the metadata for the technique are corrects. 
 </pre> corrects." 

 To bypass this bug: 

 
 - deleted the cloned directive and technique 
 - put a dummy-file in technique, clone it again 
 - from this cloned technique you can instantiate a directive 
 - after this you can delete the dummy-file from technique. 

Back