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

WindowsCommon signing doesn't properly handle case when signer isn't there #276

Open
1 of 4 tasks
StCyr opened this issue Jul 4, 2023 · 0 comments
Open
1 of 4 tasks
Assignees

Comments

@StCyr
Copy link

StCyr commented Jul 4, 2023

Issue type

  • Defect - Crash/memory corruption.
  • Defect - Non-compliance with a standards document or incorrect OS API usage.
  • Defect - Unexpected behaviour (obvious or has been verified by a project member).
  • New feature request.

Defect/Feature description

In WindowsCOmmon, the failure code path is not taken when $this->sign doesn't exist:

        // are actually signing
        $outputFromSigning = system($this->sign . " installer.exe '$fileName' > /dev/null");
        if ($outputFromSigning === false) {
            $this->loggerInstance->debug(2, "Signing the WindowsCommon installer $fileName FAILED!\n");
        }

How to reproduce issue

With a default config, without having created the ms_windows_sign-template script (it's a scenario when an administrator has set up the CAT service but hasn't configured it for signing yet), as a regular user, using the web interface, create a Windows installer.

The web interface reports an issue but the line "Signing the WindowsCommon installer $fileName FAILED!\n" is not written in the logs, though, after my analysis, the error does come from this line of code

Another way of reproducing this issue should be to have a proper CAT setup and rename the ms_windows_sign-template script

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

No branches or pull requests

2 participants