.

Release Notes: CODESYS Scripting 4.1.0.0

Key Issue Type Summary Resolution Note
SCRIPT-109 Bug

Scripting: ScriptDeviceObject: Device with Invalid IEC name can be added

Cannot Reproduce [[GENERAL]]
Test with SP19 Patch 1. The function block instance is correct, the space is replaced by underscore and a valid IEC instance is created.
Therefore nothing to do!
SCRIPT-46 Improvement

Persistent Variables List, Scripting: Add Scripting API

Fixed [[GENERAL]]
Scripts can now create varpersistent objects (create_persistentvars).
Starting with V3.5 SP20 the command ("var_persistent", "addallinstpaths") can also be run without having the varpersistent object editor open. The batch commands are the project handle and the object guid of the varpersistent object
SCRIPT-45 Bug

LibMan: Exception while trying to edit parameter lists

Fixed [[COMPATIBLITY_INFORMATION]]
Starting from SP19 only library-parameters that were edited by the user are stored as part of the application project, parameters that have their default value are not stored and cannot be read with the scripting API. Parameters can still be written even if they don't show up in lib.parameters dictionary.
SCRIPT-44 Bug

Security: Arbitrary script execution via "Script Commands" interface

Fixed [[COMPATIBILITY_INFORMATION]]
For more details see Advisory 2022-09, which is available on the CODESYS website: https://customers.codesys.com/index.php?eID=dumpFile&t=f&f=17769&token=a1a34cd304aebfbc1e2619e401a9a6cb5d4dc117&download=

[[GENERAL]]
For more details see Advisory 2022-09, which is available on the CODESYS website: https://customers.codesys.com/index.php?eID=dumpFile&t=f&f=17769&token=a1a34cd304aebfbc1e2619e401a9a6cb5d4dc117&download=
SCRIPT-33 Improvement

ScriptEngine: Need for DeviceId properties: name, vendor, category and description

Won't Fix [[GENERAL]]
With CDS-23707 it is already possible since V3.5 SP9 to access the device repository and get the device_info as in AP with C#. With this IScriptDeviceInfo it is possible to get the name, vendor and all other data from the device description.
Therefore won't fix.
SCRIPT-32 Improvement

Scripting, Device: Allow reading IEC Objects name(s) of devices via Python

Fixed
SCRIPT-28 Improvement

Use nuget package for Newtonsoft.json and update to latest version 13.0.2

Fixed [[GENERAL]]
Updated Newtonsoft.JSON to 13.0.2
SCRIPT-21 Improvement

Update of IronPython.dll to V2.7.12

Fixed [[COMPATIBILITY_INFORMATION]]
CODESYS Scripting 4.1.0.0 now uses IronPython 2.7.12
SCRIPT-19 Bug

LibraryManager: ScriptEngine: Library CBML is not resolved

Fixed
SCRIPT-18 Bug

Scripting: create_boot_application (offline): Visu files are placed at wrong location

Fixed
SCRIPT-17 Bug

Add missing property "Empty" to dotNETs.pyi class "Guid"

Fixed
SCRIPT-12 Bug

Refactor ScriptExecutor to correctly cleanup temp files

Fixed
SCRIPT-8 Bug

Scripting: NullreferenceException in method 'by_id' if id does not exist

Fixed
SCRIPT-7 Bug

SonarLint: Fix wrong encoding in source files

Fixed
SCRIPT-4 Bug

IronPython: Remove PIP Packet Manager for security reasons

Fixed
SCRIPT-1 Bug

Documentation of ScriptEngine SVN needs adaption in dotNETs.pyi

Fixed