Project

General

Profile

Actions

Bug #12355

closed

Tags in directives are ignored in POST API

Added by Dmitry Svyatogorov almost 6 years ago. Updated over 5 years ago.

Status:
Released
Priority:
N/A
Category:
API
Target version:
Severity:
Major - prevents use of part of Rudder | no simple workaround
UX impact:
User visibility:
Operational - other Techniques | Technique editor | Rudder settings
Effort required:
Very Small
Priority:
76
Name check:
Fix check:
Regression:

Description

Though "tags" array is present in the POST query for directive, e.g.

"tags": [{"ubuntu": "etc"}]

they are silently ignored. Problem presents till current Rudder 4.1.10.

Sample json containing tags (preformatted):

{
    "policyMode": "default",
    "displayName": "/etc/init.d/atop",
    "parameters": {
        "section": {
            "sections": [
                {
                    "section": {
                        "sections": [
                            {
                                "section": {
                                    "sections": [
                                        {
                                            "section": {
                                                "name": "Exclusion/Inclusion",
                                                "vars": [
                                                    {
                                                        "var": {
                                                            "name": "COPYFILE_EXCLUDE_INCLUDE",
                                                            "value": "" 
                                                        }
                                                    },
                                                    {
                                                        "var": {
                                                            "name": "COPYFILE_EXCLUDE_INCLUDE_OPTION",
                                                            "value": "none" 
                                                        }
                                                    }
                                                ]
                                            }
                                        }
                                    ],
                                    "name": "Copy file",
                                    "vars": [
                                        {
                                            "var": {
                                                "name": "COPYFILE_COMPARE_METHOD",
                                                "value": "digest" 
                                            }
                                        },
                                        {
                                            "var": {
                                                "name": "COPYFILE_DESTINATION",
                                                "value": "/etc/init.d/atop" 
                                            }
                                        },
                                        {
                                            "var": {
                                                "name": "COPYFILE_GROUP",
                                                "value": "root" 
                                            }
                                        },
                                        {
                                            "var": {
                                                "name": "COPYFILE_NAME",
                                                "value": "atop/etc/init.d/atop" 
                                            }
                                        },
                                        {
                                            "var": {
                                                "name": "COPYFILE_OWNER",
                                                "value": "root" 
                                            }
                                        },
                                        {
                                            "var": {
                                                "name": "COPYFILE_PERM",
                                                "value": "755" 
                                            }
                                        },
                                        {
                                            "var": {
                                                "name": "COPYFILE_PURGE",
                                                "value": "false" 
                                            }
                                        },
                                        {
                                            "var": {
                                                "name": "COPYFILE_RECURSION",
                                                "value": "0" 
                                            }
                                        },
                                        {
                                            "var": {
                                                "name": "COPYFILE_SGID",
                                                "value": "false" 
                                            }
                                        },
                                        {
                                            "var": {
                                                "name": "COPYFILE_STICKY_FOLDER",
                                                "value": "false" 
                                            }
                                        },
                                        {
                                            "var": {
                                                "name": "COPYFILE_SUID",
                                                "value": "false" 
                                            }
                                        }
                                    ]
                                }
                            },
                            {
                                "section": {
                                    "name": "Post-modification hook",
                                    "vars": [
                                        {
                                            "var": {
                                                "name": "COPYFILE_POST_HOOK_COMMAND",
                                                "value": "" 
                                            }
                                        },
                                        {
                                            "var": {
                                                "name": "COPYFILE_POST_HOOK_RUN",
                                                "value": "false" 
                                            }
                                        }
                                    ]
                                }
                            }
                        ],
                        "name": "Copy file and PostHook" 
                    }
                }
            ],
            "name": "sections" 
        }
    },
    "tags": [
        {
            "ubuntu": "etc" 
        }
    ],
    "enabled": true,
    "system": false,
    "techniqueVersion": "2.1",
    "longDescription": "",
    "priority": 5,
    "techniqueName": "copyGitFile",
    "shortDescription": "atop fixed init script" 
}


Subtasks 1 (0 open1 closed)

Bug #12796: Compilation is broken with #12355 upmergeReleasedVincent MEMBRÉActions

Related issues 1 (0 open1 closed)

Related to Rudder - Bug #13374: Tags in rules are ignored in POST APIReleasedVincent MEMBRÉActions
Actions

Also available in: Atom PDF