[MDEV-33374] main.mysql_connector_net fails on new Windows 11 Created: 2024-02-02  Updated: 2024-02-02  Resolved: 2024-02-02

Status: Closed
Project: MariaDB Server
Component/s: Platform Windows, Tests
Affects Version/s: 10.11
Fix Version/s: 10.11.8, 11.0.6, 11.1.5, 11.2.4, 11.3.3

Type: Bug Priority: Major
Reporter: Vladislav Vaintroub Assignee: Vladislav Vaintroub
Resolution: Fixed Votes: 0
Labels: None


 Description   

After reinstall on Windows 11, got following error running

perl mysql-test-run.pl --suite=main main.mysql_connector_net

CURRENT_TEST: main.mysql_connector_net

File C:\work\10.11\mysql-test\main\mysql_connector_net.ps1 cannot be loaded because running scripts is disabled on
this system. For more information, see about_Execution_Policies at https:/go.microsoft.com/fwlink/?LinkID=135170.
    + CategoryInfo          : SecurityError: (:) [], ParentContainsErrorRecordException
    + FullyQualifiedErrorId : UnauthorizedAccess
mysqltest: At line 7: command "powershell -NoLogo -NoProfile -File main\mysql_connector_net.ps1" failed with wrong error: 1

There is a thing for powershell, called script execution policy. On most developers boxes local scripts won't be restricted, but on "virgin" client Windows it is is restricted, i.e interactive execution in powershell is allowed, while script execution is not.


Generated at Thu Feb 08 10:38:26 UTC 2024 using Jira 8.20.16#820016-sha1:9d11dbea5f4be3d4cc21f03a88dd11d8c8687422.