Project

General

Profile

Actions

Bug #20278

closed

Error when creating a rule in 7.0

Added by Nicolas CHARLES 6 months ago. Updated 6 months ago.

Status:
Released
Priority:
N/A
Category:
Web - Config management
Target version:
Severity:
User visibility:
Effort required:
Priority:
0

Description

When creating a rule we get a big error notification that says

Error when Saving Rule,details: 
Invalid response: Problem with the value at json.data.rules[0]:

    {
        "id": "501659f0-f83c-42a0-93e1-504f4bcb73ef",
        "displayName": "dddddd",
        "categoryId": "rootRuleCategory",
        "shortDescription": "",
        "longDescription": "",
        "directives": [],
        "targets": [
            {
                "include": {
                    "or": []
                },
                "exclude": {
                    "or": []
                }
            }
        ],
        "enabled": true,
        "system": false,
        "tags": []
    }

Expecting an OBJECT with a field named `status`
Response Body: {"action":"createRule","id":"501659f0-f83c-42a0-93e1-504f4bcb73ef","result":"success","data":{"rules":[{"id":"501659f0-f83c-42a0-93e1-504f4bcb73ef","displayName":"dddddd","categoryId":"rootRuleCategory","shortDescription":"","longDescription":"","directives":[],"targets":[{"include":{"or":[]},"exclude":{"or":[]}}],"enabled":true,"system":false,"tags":[]}]}}

yet it works

Actions #1

Updated by Vincent MEMBRÉ 6 months ago

  • Status changed from New to In progress
  • Assignee set to Vincent MEMBRÉ
Actions #2

Updated by Vincent MEMBRÉ 6 months ago

  • Assignee changed from Vincent MEMBRÉ to François ARMAND
  • Pull Request set to https://github.com/Normation/rudder/pull/4001
Actions #3

Updated by Vincent MEMBRÉ 6 months ago

  • Status changed from In progress to Pending release
Actions #4

Updated by Vincent MEMBRÉ 6 months ago

  • Status changed from Pending release to Released

This bug has been fixed in Rudder 7.0.0~rc1 which was released today.

Actions

Also available in: Atom PDF