Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

refactor: Move dfmplugin-disk-encrypt from dde-filemanager-extensions #2466

Merged
merged 2 commits into from
Dec 5, 2024

Conversation

Johnson-zs
Copy link
Contributor

Move dfmplugin-disk-encrypt from dde-filemanager-extensions

Log:

Copy link

github-actions bot commented Dec 5, 2024

  • 检测到debian目录文件有变更: debian/control,debian/dde-file-manager-services-plugins.install,debian/dde-file-manager.install

  • 检测到敏感词export变动

详情
    {
    "export": {
        "src/plugins/filemanager/dfmplugin-disk-encrypt-entry/gui/encryptparamsinputdialog.cpp": {
            "b": [
                "    exportRecKeyEnabled = config_utils::exportKeyEnabled();",
                "    params.exportPath = keyExportInput->text();",
                "                                 \"you can decrypt the encrypted partition with the recovery key, please export it to \"",
                "    keyExportInput->setPlaceholderText(tr(\"Please select a non-encrypted partition as the key file export path.\"));",
                "        setMsg(tr(\"Recovery key export path cannot be empty!\"));",
                "        setMsg(tr(\"Recovery key export path is not exists!\"));",
                "        setMsg(tr(\"Please export to an external device such as a non-encrypted partition or USB flash drive.\"));",
                "        setMsg(tr(\"This partition is read-only, please export to a writable partition\"));",
                "            setMsg(tr(\"The partition is encrypted, please export to a non-encrypted \"",
                "        if (exportRecKeyEnabled) {",
                "        exportRecKeyEnabled ? addButton(tr(\"Next\")) : addButton(tr(\"Confirm encrypt\"));"
            ]
        },
        "src/plugins/filemanager/dfmplugin-disk-encrypt-entry/gui/encryptparamsinputdialog.h": {
            "b": [
                "    bool exportRecKeyEnabled { false };"
            ]
        },
        "src/plugins/filemanager/dfmplugin-disk-encrypt-entry/gui/encryptprogressdialog.cpp": {
            "b": [
                "    addButton(tr(\"Re-export the recovery key\"));",
                "    if (btnTxt != tr(\"Re-export the recovery key\"))",
                "        setMsg(tr(\"Recovery key export path cannot be empty!\"));",
                "        setMsg(tr(\"Recovery key export path is not exists!\"));",
                "        setMsg(tr(\"This partition is read-only, please export to a writable \"",
                "            setMsg(tr(\"The partition is encrypted, please export to a non-encrypted \""
            ]
        },
        "src/plugins/filemanager/dfmplugin-disk-encrypt-entry/menu/diskencryptmenuscene.cpp": {
            "b": [
                "            { encrypt_param_keys::kKeyRecoveryExportPath, param.exportPath },",
                "            { encrypt_param_keys::kKeyRecoveryExportPath, param.exportPath },"
            ]
        }
    }
}

Copy link

github-actions bot commented Dec 5, 2024

  • 敏感词检查失败, 检测到5个文件存在敏感词
详情
{
    "examples/dfmplugin-encrypt-manager-demo/mainwindow.cpp": [
        {
            "line": "        const QString password = \"Qwer@1234\";",
            "line_number": 104,
            "rule": "S106",
            "reason": "Var naming | cafae82bb6"
        }
    ],
    "src/plugins/filemanager/dfmplugin-disk-encrypt-entry/diskencryptentry.json": [
        {
            "line": "    \"UrlLink\" : \"https://www.uniontech.com\",",
            "line_number": 11,
            "rule": "S35",
            "reason": "Url link | 3c9a9fccb6"
        }
    ],
    "src/plugins/filemanager/dfmplugin-disk-encrypt-entry/events/eventshandler.cpp": [
        {
            "line": "            *pwd = acquirePassphraseByRec(dev, *cancelled);",
            "line_number": 335,
            "rule": "S28",
            "reason": "Suspicious password declaration | c7753508fa"
        },
        {
            "line": "        *pwd = acquirePassphraseByPIN(dev, *cancelled);",
            "line_number": 342,
            "rule": "S28",
            "reason": "Suspicious password declaration | 4cdcd2dd34"
        },
        {
            "line": "        *pwd = acquirePassphraseByTPM(dev, *cancelled);",
            "line_number": 345,
            "rule": "S28",
            "reason": "Suspicious password declaration | 1db15c632e"
        },
        {
            "line": "        *pwd = acquirePassphraseByRec(dev, *cancelled);",
            "line_number": 366,
            "rule": "S28",
            "reason": "Suspicious password declaration | c7753508fa"
        }
    ],
    "src/plugins/filemanager/dfmplugin-encrypt-manager/encryptmanager.json": [
        {
            "line": "    \"UrlLink\" : \"https://www.uniontech.com\",",
            "line_number": 11,
            "rule": "S35",
            "reason": "Url link | 3c9a9fccb6"
        }
    ],
    "debian/control": [
        {
            "line": "Homepage: http://www.deepin.org",
            "line_number": 68,
            "rule": "S35",
            "reason": "Url link | 6fe814dfb7"
        }
    ]
}

Copy link

github-actions bot commented Dec 5, 2024

  • 检测到debian目录文件有变更: debian/control,debian/dde-file-manager-services-plugins.install,debian/dde-file-manager.install

  • 检测到敏感词export变动

详情
    {
    "export": {
        "src/plugins/filemanager/dfmplugin-disk-encrypt-entry/gui/encryptparamsinputdialog.cpp": {
            "b": [
                "    exportRecKeyEnabled = config_utils::exportKeyEnabled();",
                "    params.exportPath = keyExportInput->text();",
                "                                 \"you can decrypt the encrypted partition with the recovery key, please export it to \"",
                "    keyExportInput->setPlaceholderText(tr(\"Please select a non-encrypted partition as the key file export path.\"));",
                "        setMsg(tr(\"Recovery key export path cannot be empty!\"));",
                "        setMsg(tr(\"Recovery key export path is not exists!\"));",
                "        setMsg(tr(\"Please export to an external device such as a non-encrypted partition or USB flash drive.\"));",
                "        setMsg(tr(\"This partition is read-only, please export to a writable partition\"));",
                "            setMsg(tr(\"The partition is encrypted, please export to a non-encrypted \"",
                "        if (exportRecKeyEnabled) {",
                "        exportRecKeyEnabled ? addButton(tr(\"Next\")) : addButton(tr(\"Confirm encrypt\"));"
            ]
        },
        "src/plugins/filemanager/dfmplugin-disk-encrypt-entry/gui/encryptparamsinputdialog.h": {
            "b": [
                "    bool exportRecKeyEnabled { false };"
            ]
        },
        "src/plugins/filemanager/dfmplugin-disk-encrypt-entry/gui/encryptprogressdialog.cpp": {
            "b": [
                "    addButton(tr(\"Re-export the recovery key\"));",
                "    if (btnTxt != tr(\"Re-export the recovery key\"))",
                "        setMsg(tr(\"Recovery key export path cannot be empty!\"));",
                "        setMsg(tr(\"Recovery key export path is not exists!\"));",
                "        setMsg(tr(\"This partition is read-only, please export to a writable \"",
                "            setMsg(tr(\"The partition is encrypted, please export to a non-encrypted \""
            ]
        },
        "src/plugins/filemanager/dfmplugin-disk-encrypt-entry/menu/diskencryptmenuscene.cpp": {
            "b": [
                "            { encrypt_param_keys::kKeyRecoveryExportPath, param.exportPath },",
                "            { encrypt_param_keys::kKeyRecoveryExportPath, param.exportPath },"
            ]
        }
    }
}

Copy link

github-actions bot commented Dec 5, 2024

  • 敏感词检查失败, 检测到5个文件存在敏感词
详情
{
    "examples/dfmplugin-encrypt-manager-demo/mainwindow.cpp": [
        {
            "line": "        const QString password = \"Qwer@1234\";",
            "line_number": 104,
            "rule": "S106",
            "reason": "Var naming | cafae82bb6"
        }
    ],
    "src/plugins/filemanager/dfmplugin-disk-encrypt-entry/diskencryptentry.json": [
        {
            "line": "    \"UrlLink\" : \"https://www.uniontech.com\",",
            "line_number": 11,
            "rule": "S35",
            "reason": "Url link | 3c9a9fccb6"
        }
    ],
    "src/plugins/filemanager/dfmplugin-disk-encrypt-entry/events/eventshandler.cpp": [
        {
            "line": "            *pwd = acquirePassphraseByRec(dev, *cancelled);",
            "line_number": 335,
            "rule": "S28",
            "reason": "Suspicious password declaration | c7753508fa"
        },
        {
            "line": "        *pwd = acquirePassphraseByPIN(dev, *cancelled);",
            "line_number": 342,
            "rule": "S28",
            "reason": "Suspicious password declaration | 4cdcd2dd34"
        },
        {
            "line": "        *pwd = acquirePassphraseByTPM(dev, *cancelled);",
            "line_number": 345,
            "rule": "S28",
            "reason": "Suspicious password declaration | 1db15c632e"
        },
        {
            "line": "        *pwd = acquirePassphraseByRec(dev, *cancelled);",
            "line_number": 366,
            "rule": "S28",
            "reason": "Suspicious password declaration | c7753508fa"
        }
    ],
    "src/plugins/filemanager/dfmplugin-encrypt-manager/encryptmanager.json": [
        {
            "line": "    \"UrlLink\" : \"https://www.uniontech.com\",",
            "line_number": 11,
            "rule": "S35",
            "reason": "Url link | 3c9a9fccb6"
        }
    ],
    "debian/control": [
        {
            "line": "Homepage: http://www.deepin.org",
            "line_number": 68,
            "rule": "S35",
            "reason": "Url link | 6fe814dfb7"
        }
    ]
}

Move dfmplugin-disk-encrypt from dde-filemanager-extensions

Log:
Copy link

github-actions bot commented Dec 5, 2024

  • 检测到debian目录文件有变更: debian/control,debian/dde-file-manager-services-plugins.install,debian/dde-file-manager.install

  • 检测到敏感词export变动

详情
    {
    "export": {
        "src/plugins/filemanager/dfmplugin-disk-encrypt-entry/gui/encryptparamsinputdialog.cpp": {
            "b": [
                "    exportRecKeyEnabled = config_utils::exportKeyEnabled();",
                "    params.exportPath = keyExportInput->text();",
                "                                 \"you can decrypt the encrypted partition with the recovery key, please export it to \"",
                "    keyExportInput->setPlaceholderText(tr(\"Please select a non-encrypted partition as the key file export path.\"));",
                "        setMsg(tr(\"Recovery key export path cannot be empty!\"));",
                "        setMsg(tr(\"Recovery key export path is not exists!\"));",
                "        setMsg(tr(\"Please export to an external device such as a non-encrypted partition or USB flash drive.\"));",
                "        setMsg(tr(\"This partition is read-only, please export to a writable partition\"));",
                "            setMsg(tr(\"The partition is encrypted, please export to a non-encrypted \"",
                "        if (exportRecKeyEnabled) {",
                "        exportRecKeyEnabled ? addButton(tr(\"Next\")) : addButton(tr(\"Confirm encrypt\"));"
            ]
        },
        "src/plugins/filemanager/dfmplugin-disk-encrypt-entry/gui/encryptparamsinputdialog.h": {
            "b": [
                "    bool exportRecKeyEnabled { false };"
            ]
        },
        "src/plugins/filemanager/dfmplugin-disk-encrypt-entry/gui/encryptprogressdialog.cpp": {
            "b": [
                "    addButton(tr(\"Re-export the recovery key\"));",
                "    if (btnTxt != tr(\"Re-export the recovery key\"))",
                "        setMsg(tr(\"Recovery key export path cannot be empty!\"));",
                "        setMsg(tr(\"Recovery key export path is not exists!\"));",
                "        setMsg(tr(\"This partition is read-only, please export to a writable \"",
                "            setMsg(tr(\"The partition is encrypted, please export to a non-encrypted \""
            ]
        },
        "src/plugins/filemanager/dfmplugin-disk-encrypt-entry/menu/diskencryptmenuscene.cpp": {
            "b": [
                "            { encrypt_param_keys::kKeyRecoveryExportPath, param.exportPath },",
                "            { encrypt_param_keys::kKeyRecoveryExportPath, param.exportPath },"
            ]
        }
    }
}

Copy link

github-actions bot commented Dec 5, 2024

  • 敏感词检查失败, 检测到5个文件存在敏感词
详情
{
    "examples/dfmplugin-encrypt-manager-demo/mainwindow.cpp": [
        {
            "line": "        const QString password = \"Qwer@1234\";",
            "line_number": 104,
            "rule": "S106",
            "reason": "Var naming | cafae82bb6"
        }
    ],
    "src/plugins/filemanager/dfmplugin-disk-encrypt-entry/diskencryptentry.json": [
        {
            "line": "    \"UrlLink\" : \"https://www.uniontech.com\",",
            "line_number": 11,
            "rule": "S35",
            "reason": "Url link | 3c9a9fccb6"
        }
    ],
    "src/plugins/filemanager/dfmplugin-disk-encrypt-entry/events/eventshandler.cpp": [
        {
            "line": "            *pwd = acquirePassphraseByRec(dev, *cancelled);",
            "line_number": 335,
            "rule": "S28",
            "reason": "Suspicious password declaration | c7753508fa"
        },
        {
            "line": "        *pwd = acquirePassphraseByPIN(dev, *cancelled);",
            "line_number": 342,
            "rule": "S28",
            "reason": "Suspicious password declaration | 4cdcd2dd34"
        },
        {
            "line": "        *pwd = acquirePassphraseByTPM(dev, *cancelled);",
            "line_number": 345,
            "rule": "S28",
            "reason": "Suspicious password declaration | 1db15c632e"
        },
        {
            "line": "        *pwd = acquirePassphraseByRec(dev, *cancelled);",
            "line_number": 366,
            "rule": "S28",
            "reason": "Suspicious password declaration | c7753508fa"
        }
    ],
    "src/plugins/filemanager/dfmplugin-encrypt-manager/encryptmanager.json": [
        {
            "line": "    \"UrlLink\" : \"https://www.uniontech.com\",",
            "line_number": 11,
            "rule": "S35",
            "reason": "Url link | 3c9a9fccb6"
        }
    ],
    "debian/control": [
        {
            "line": "Homepage: http://www.deepin.org",
            "line_number": 68,
            "rule": "S35",
            "reason": "Url link | 6fe814dfb7"
        }
    ]
}

Copy link

github-actions bot commented Dec 5, 2024

  • 检测到debian目录文件有变更: debian/control,debian/dde-file-manager-services-plugins.install,debian/dde-file-manager.install

  • 检测到敏感词export变动

详情
    {
    "export": {
        "src/plugins/filemanager/dfmplugin-disk-encrypt-entry/gui/encryptparamsinputdialog.cpp": {
            "b": [
                "    exportRecKeyEnabled = config_utils::exportKeyEnabled();",
                "    params.exportPath = keyExportInput->text();",
                "                                 \"you can decrypt the encrypted partition with the recovery key, please export it to \"",
                "    keyExportInput->setPlaceholderText(tr(\"Please select a non-encrypted partition as the key file export path.\"));",
                "        setMsg(tr(\"Recovery key export path cannot be empty!\"));",
                "        setMsg(tr(\"Recovery key export path is not exists!\"));",
                "        setMsg(tr(\"Please export to an external device such as a non-encrypted partition or USB flash drive.\"));",
                "        setMsg(tr(\"This partition is read-only, please export to a writable partition\"));",
                "            setMsg(tr(\"The partition is encrypted, please export to a non-encrypted \"",
                "        if (exportRecKeyEnabled) {",
                "        exportRecKeyEnabled ? addButton(tr(\"Next\")) : addButton(tr(\"Confirm encrypt\"));"
            ]
        },
        "src/plugins/filemanager/dfmplugin-disk-encrypt-entry/gui/encryptparamsinputdialog.h": {
            "b": [
                "    bool exportRecKeyEnabled { false };"
            ]
        },
        "src/plugins/filemanager/dfmplugin-disk-encrypt-entry/gui/encryptprogressdialog.cpp": {
            "b": [
                "    addButton(tr(\"Re-export the recovery key\"));",
                "    if (btnTxt != tr(\"Re-export the recovery key\"))",
                "        setMsg(tr(\"Recovery key export path cannot be empty!\"));",
                "        setMsg(tr(\"Recovery key export path is not exists!\"));",
                "        setMsg(tr(\"This partition is read-only, please export to a writable \"",
                "            setMsg(tr(\"The partition is encrypted, please export to a non-encrypted \""
            ]
        },
        "src/plugins/filemanager/dfmplugin-disk-encrypt-entry/menu/diskencryptmenuscene.cpp": {
            "b": [
                "            { encrypt_param_keys::kKeyRecoveryExportPath, param.exportPath },",
                "            { encrypt_param_keys::kKeyRecoveryExportPath, param.exportPath },"
            ]
        }
    }
}

Copy link

github-actions bot commented Dec 5, 2024

  • 敏感词检查失败, 检测到5个文件存在敏感词
详情
{
    "examples/dfmplugin-encrypt-manager-demo/mainwindow.cpp": [
        {
            "line": "        const QString password = \"Qwer@1234\";",
            "line_number": 104,
            "rule": "S106",
            "reason": "Var naming | cafae82bb6"
        }
    ],
    "src/plugins/filemanager/dfmplugin-disk-encrypt-entry/diskencryptentry.json": [
        {
            "line": "    \"UrlLink\" : \"https://www.uniontech.com\",",
            "line_number": 11,
            "rule": "S35",
            "reason": "Url link | 3c9a9fccb6"
        }
    ],
    "src/plugins/filemanager/dfmplugin-disk-encrypt-entry/events/eventshandler.cpp": [
        {
            "line": "            *pwd = acquirePassphraseByRec(dev, *cancelled);",
            "line_number": 335,
            "rule": "S28",
            "reason": "Suspicious password declaration | c7753508fa"
        },
        {
            "line": "        *pwd = acquirePassphraseByPIN(dev, *cancelled);",
            "line_number": 342,
            "rule": "S28",
            "reason": "Suspicious password declaration | 4cdcd2dd34"
        },
        {
            "line": "        *pwd = acquirePassphraseByTPM(dev, *cancelled);",
            "line_number": 345,
            "rule": "S28",
            "reason": "Suspicious password declaration | 1db15c632e"
        },
        {
            "line": "        *pwd = acquirePassphraseByRec(dev, *cancelled);",
            "line_number": 366,
            "rule": "S28",
            "reason": "Suspicious password declaration | c7753508fa"
        }
    ],
    "src/plugins/filemanager/dfmplugin-encrypt-manager/encryptmanager.json": [
        {
            "line": "    \"UrlLink\" : \"https://www.uniontech.com\",",
            "line_number": 11,
            "rule": "S35",
            "reason": "Url link | 3c9a9fccb6"
        }
    ],
    "debian/control": [
        {
            "line": "Homepage: http://www.deepin.org",
            "line_number": 68,
            "rule": "S35",
            "reason": "Url link | 6fe814dfb7"
        }
    ]
}

@deepin-ci-robot
Copy link

[APPROVALNOTIFIER] This PR is NOT APPROVED

This pull-request has been approved by: Clauszy, itsXuSt, Johnson-zs

The full list of commands accepted by this bot can be found here.

Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@Johnson-zs
Copy link
Contributor Author

/forcemerge

@deepin-bot
Copy link
Contributor

deepin-bot bot commented Dec 5, 2024

This pr force merged! (status: blocked)

@deepin-bot deepin-bot bot merged commit fc16275 into linuxdeepin:master Dec 5, 2024
16 of 20 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants