Project

General

Profile

Bug #17388

Updated by Vincent MEMBRÉ over 4 years ago

The return JSON is missing the array of rules, contrary to what is documented and what is done for directives/groups. 
 It is also displaying @ruleCategories@ in place of @rule@: 

 Actual:  
 <pre> 
 { 
   "action": "createRule", 
   "id": "e12b9720-66c0-4887-8026-f72cdc423a69", 
   "result": "success", 
   "data": { 
     "ruleCategories": { 
       "id": "e12b9720-66c0-4887-8026-f72cdc423a69", 
       "displayName": "RTF generated rule", 
       "shortDescription": "", 
       "longDescription": "", 
       "directives": [ 
         "b078d18e-7a99-4bd5-8386-43eaf4f3669f" 
       ], 
       "targets": [ 
         "policyServer:root" 
       ], 
       "enabled": true, 
       "system": false, 
       "tags": [] 
     } 
   } 
 } 
 </pre> 

 VS (should):  
 <pre> 
 { 
   "action": "createRule", 
   "id": "e12b9720-66c0-4887-8026-f72cdc423a69", 
   "result": "success", 
   "data": { 
     "rules": [ 
     "rule": { 
       "id": "e12b9720-66c0-4887-8026-f72cdc423a69", 
       "displayName": "RTF generated rule", 
       "shortDescription": "", 
       "longDescription": "", 
       "directives": [ 
         "b078d18e-7a99-4bd5-8386-43eaf4f3669f" 
       ], 
       "targets": [ 
         "policyServer:root" 
       ], 
       "enabled": true, 
       "system": false, 
       "tags": [] 
     } 
     ] 
   } 
 } 
 </pre> 

Back