FortiManager
FortiManager supports network operations use cases for centralized management, best practices compliance, and workflow automation to provide better protection against breaches.
mvlasak
Staff
Staff
Article Id 394161
Description

This article describes how to resolve issues where the FortiManager GUI does not allow the user to delete a policy package folder that contains a forward slash (/) in its name. Such names may cause unexpected behavior, including the inability to view, rename, move, or delete the affected item via the GUI or API.

Scope FortiManager 7.6.3.
Solution

When a user creates a folder in Policy & Objects -> Policy Packages with a name that includes a forward slash ('/') — for example, 'test / test' — there is a known issue in FortiManager 7.6.3 where the GUI does not allow the user to delete the policy package folder. An error message is displayed: 'cannot get pkg path'.

 

Workaround:

 

As a workaround, it is possible to delete the policy package folder using the FortiManager JSON API instead of the GUI:



JSON API REQUEST policy package name: "test/test"

{{pp_name}}="test/test" and {{adom}}=root

{
    "method": "delete",
    "params": [
        {
            "url": "/pm/pkg/adom/{{adom}}/{{pp_name}}"
        }
    ],
    "session": "{{session}}",
    "verbose": 1,
    "id": 1
}

RESPONSE pp_name="test\\/test"
{
    "result": [
        {
            "status": {
                "code": 0,
                "message": "OK"
            },
            "url": "/pm/pkg/adom/root/test\\/test"
        }
    ],
    "id": 1
}

Contributors