Project

General

Profile

Actions

Bug #10225

closed

Fix behavior of directive API and make api more consistent

Added by Dmitry Svyatogorov about 7 years ago. Updated almost 7 years ago.

Status:
Released
Priority:
1
Category:
API
Target version:
Severity:
UX impact:
User visibility:
Effort required:
Priority:
0
Name check:
Fix check:
Regression:

Description

The following json passes ok to 4.0.2, but in latest 4.1.0 beta 3 it fails with HTTPError = 500
"Could not create Group e9d994a4-1bc3-4069-8d67-4aa329a3bbe6 cause is: Missing expected 'select' query parameter."

{
  "category": "GroupRoot",
  "displayName": "#TEST#",
  "description": "New directives must be tested against members of this group.",
  "enabled": true,
  "dynamic": false,
  "query": {
    "where": [
      {
        "attribute": "nodeHostname",
        "value": "xxx-test.tld",
        "comparator": "eq",
        "objectType": "node" 
      }
    ],
    "composition": "Or",
    "select": "node" 
  }
}

Actions

Also available in: Atom PDF