Commit Graph
1015 Commits
Author SHA1 Message Date
Martin Regen 8b201f7fb9 Add public key for build (#927)
- signed assemblies need a public key if 'InternalsVisibleTo' is being used. Add a define in such a case to provide a key. .Net Core 3.0 doesn't accept the dummy key, here is the real thing.
1.4.360.33
2020-03-24 10:00:44 +01:00
Alin Moldovean 0ec6d33164 Merge pull request #926 from AlinMoldovean/master
Add dummy PublicKey in Core.InternalsVisibleTo for Nuget build test
2020-03-20 16:28:43 +02:00
AlinMoldovean 971d2c7f53 Add dummy PublicKey in Core.InternalsVisibleTo for Nuget build test 2020-03-20 15:44:01 +02:00
Alin Moldovean 81832f71a3 Update UA-Nodesets and generated code (#925)
* Update generated code and UA-nodeset files for 1.04.5 Errata

* Update UA-Nodeset files and generated code of Sample projects with latest version of ModelCompiler
2020-03-20 14:43:25 +02:00
Martin Regen 1ff1ae7e52 IOP 2020: Workshop fixes (#916)
- fix to validate structuredefinition if servers do not fill out the DataTypeDefinition correctly
- The GDS creates the CRL cert with its own CA serial number, invalidating the CA by default on some stacks
- complex structuretype must be virtual, non reversible union encoding could not be detected 
- fix binary schema validation, allow the \" character in a qualified name
- support use of simple subtypes in a complex type. For custom and standard subtypes.
- only support structure objects with valuerank scalar or onedimension
2020-03-18 18:49:53 +01:00
Alin Moldovean 5c9f136c58 Merge pull request #917 from AlinMoldovean/master
Fix for CertificateUpdate
2020-03-12 17:04:42 +02:00
AlinMoldovean 926b5915da Fix for CertificateUpdate during application runtime. 2020-03-11 17:55:05 +02:00
Alin Moldovean f617c2aaae Merge pull request #915 from AlinMoldovean/master
CTT compliance fixes for Audit events.
2020-03-10 17:26:11 +02:00
AlinMoldovean ab5d93fa60 CTT compliance fixes for Audit events. 2020-03-10 16:47:05 +02:00
Martin Regen 0d01fbba64 Fix Variant init with enum array (#912)
* fix variant constructor for enum
* fix behaviour change for guid, can cause cast error
* minor warnings
2020-03-07 06:36:58 -06:00
Alin Moldovean 970593beb0 Compliance fixes for latest CTT (#913) 2020-03-06 16:36:17 +02:00
Martin Regen b6e8aaaedb Fix Test cases with DateTime which fail in US timezone
Implement a common way to convert DateTime to Universaltime and keep boundary values as they are
2020-03-05 10:42:43 -06:00
Martin Regen e908555216 Add schema tests for well known dictionaries (#909)
* add schema validation tests for well known type dictionaries
* comment duplicate test runs
2020-03-04 09:31:41 -06:00
Martin Regen 32e0660a7a Enable Azurepipelines build (#907)
-Starter for Azure pipelin builds, a bunch of tests in appveyor and travis can be disabled once this is working
-fix Opc.Ua.Core rootnamespace
-a few minor changes due to Ctrl-K,D refactoring, removal of dead code
2020-02-28 07:51:48 +01:00
opcfoundation-org 9a26bf6190 Set up CI with Azure Pipelines
[skip ci]
2020-02-22 07:54:38 -08:00
Martin Regen e606f3aa8c Stabilize TCP receive (#904)
- Various issues found during server testing with ref server
- Take a different approach on the nesting issue
- Fix a duplicate buffer free issue 
- stabilize binary decoder
2020-02-19 13:34:55 +01:00
Martin Regen 9f015128f0 Fix for non reversible encoding of Unions/Structures (#905)
* fix for non reversible encoding of Unions and structures
* handle exception when server returns null terminated dictionary bytestring
2020-02-18 17:11:11 +01:00
Martin Regen c39b1e3623 Tests and fixes for encoders and decoders (#897)
- Unit test project for Core, so far only types and cert validator
- CertValidator test moved to Core.Tests
- ComplexTypes client tests for encode / decode
- bug fixes for issues found in encoders/decoders and complex types tests

** breaking change for JSON encoding of NodeId **

encoding was not according to spec. see #874.

#874, #892 fixed
2020-02-06 17:38:00 +01:00
Martin Regen f56a810f74 Validate for spec compliant subscription defaults (#898)
Fix #894.
2020-02-06 08:21:08 +01:00
Alin Moldovean fbc88c8ec0 Fix in .editorconfig - put brace on new line for properties and accessors (#899) 2020-02-06 08:15:19 +01:00
Alin Moldovean 3e640bf702 Update UA NodeSets and generated code (#895)
* Update UA NodeSets and generated code with the latest updates for 1.04.04 Errata Release.

* Revert error in generated code.
1.4.359.31
2020-01-30 16:08:19 +02:00
Alin Moldovean 636f5c03f9 Implement validation for duplicate nonces (#893)
* - Add Server nonce validation for duplicate nonces.
- Add configuration flag to bypass validation exceptions

* Add ITransportChannel.CurrentToken interface for nonce validation.
2020-01-30 15:06:13 +02:00
Martin Regen a1faa0f7a1 Remove netstandard1.3 (#887)
* remove netstandard1.3 and unify csproj settings
* switch tests to silent mode
2020-01-23 07:22:26 +01:00
Karl Deiretsbacher dc880584de Update ClientPage.xaml.cs
Replaced the dual license with MIT to make it consistent with all other sample source files.
2020-01-22 09:53:03 +01:00
Karl Deiretsbacher b19158b260 Update Program.cs
Replaced the dual license with MIT to make it consistent with all other sample source files.
2020-01-22 09:52:22 +01:00
Karl Deiretsbacher 3cc8373900 Update Program.cs
Replaced the dual license with MIT to make it consistent with all other sample source files.
2020-01-22 09:51:32 +01:00
Karl Deiretsbacher d6aa3f6300 Update ServerDiagnosticsCtrl.xaml.cs
Replaced the dual license with MIT to make it consistent with all other sample source files.
2020-01-22 09:49:51 +01:00
Karl Deiretsbacher 1ccd0f2880 Update ServerPage.xaml.cs
Replaced dual license with MIT. Only stack files have dual license.
2020-01-22 09:41:25 +01:00
Karl Deiretsbacher 6a4e3a6154 Update CustomTransportChannel.cs
Replaced dual license with MIT. Only stack files have dual license.
2020-01-22 09:40:36 +01:00
Karl Deiretsbacher ddec44102e Update Program.cs
Replaced the dual license with MIT to make it consistent with all other sample source files.
2020-01-22 09:27:26 +01:00
Alin Moldovean 1b4a7398df Merge pull request #885 from AlinMoldovean/master
Fix for handling of AccessLevel and AccessLevelEx attributes.
2020-01-15 09:39:24 +02:00
AlinMoldovean bcccd718a4 Fix for handling of AccessLevel and AccessLevelEx attributes. 2020-01-14 18:00:23 +02:00
Wadjet-Informatics e9ebd49350 Prevent deep recursion and excessive thread creation in TcpMessageSocket (#845)
- instead of creating task or nested calls to get message packets uses a loop which is more efficent and stack safe.
2020-01-13 13:27:54 +01:00
ondraco 3f0bb8c83c Allow relative URI as module name and fix nested load issue (#884)
* Allow relative URI as module name
* If a complex type contains another complex type which was not loaded yet add it to the 'retry list' instead of not loading it at all.
2020-01-13 13:25:00 +01:00
SebZar ae3234a86d Dependency Problem when using HTTPS (#883) 2020-01-10 12:37:09 +01:00
Martin Regen f7ab80d304 Update kestrel nuget version (#882)
* update kestrel nuget version
* update nuspec
2020-01-10 12:28:23 +01:00
Kurt 300d9ffd62 Minor analyzer (roslynator) fixes (#880)
* Use nameof() where applicable

Category: Maintainability
https://github.com/JosefPihrt/Roslynator/blob/master/docs/analyzers/RCS1015.md

* Rethrow original exception

Preserves original stack trace of the exception, easier to diagnose
Category: Maintainability
https://github.com/JosefPihrt/Roslynator/blob/master/docs/analyzers/RCS1044.md
https://stackoverflow.com/a/178464

Remove variable from the catch if not logged (compiler warning).

* Combine Where->FirstOrDefault, use Find if applicable

Category: Performance
https://github.com/JosefPihrt/Roslynator/blob/master/docs/analyzers/RCS1077.md

In ApplicationConfiguration:
ServerSecurityPolicyCollection inherits from List<T>, so use List.Find (better performance than FirstOrDefault)

* Use List.Count rather than LINQ Any()

Category: Performance
https://github.com/JosefPihrt/Roslynator/blob/master/docs/analyzers/RCS1080.md
refsToRemove is a List<T>, which we know the count of (no need to iterate).

* Add [Flags] Attribute for OpenFileMode

Each enum is a bitflag here
Just noticed this is in the "Generated" folder... some prior commits had touched other "Generated" files -- see nameof commit.

* Minor performance behavior

- EventArgs.Empty instead of allocating a new blank EventArgs

It only really happens on Connect/Disconnect so it's not like a single allocation really matters

- Use array[0] instead of First()
https://stackoverflow.com/a/25607951
- Use !Any() instead of Count() == 0
If a dependent field is found, it will stop evaluating the rest and Add instead of Insert. Count() == 0 required evaluation of all

- Use All() instead of FirstOrDefault(any) == null
Clearer intent (all are not matching the group BrowseName => clear default)
Slightly faster as the first match found doesn't have to be compared against null

* Revert changes to generated files

* Fix mistake

fixes compile error
2020-01-09 09:28:37 +02:00
Martin Regen 368049d188 Improvements to complex types client (#879)
- allow for loading of single types with dependencies from DataTypeDefinitions only
- introduce a type dictionary to match xml qualified names with type ids.
breaking change (internally):
- simplify JSON encoding by providing a UseReversibleEncoding flag 
- add also JSON and XML encoding ids to type factory if supported
- follow coding conventions for test sample, add single type loading use case (before/after)
- fix a bug when a JSON extension object cannot be decoded when the namespace uri is encoded
2020-01-08 16:29:22 +01:00
Martin Regen 73d91d6e97 Bump up dependencies of UWP apps to use netstandard2.0 (#873)
- this is part of an effort to deprecate netstandard1.3 support (#761)
- as a result Windows 10 minimal version is now >= 16299 (Fall Creators Update 2017)
2020-01-07 17:34:38 +01:00
Martin Regen 0a1f7b71ae add .editorconfig (#872)
Press Ctrl-K, Ctrl-D to format according to specification.
2019-12-20 21:51:36 +01:00
Alin Moldovean 736214de9d Merge pull request #871 from AlinMoldovean/master
Nonce validation update in Client library
2019-12-19 14:34:48 +02:00
AlinMoldovean f87ea2839d Skip server nonce validation in ClientSession if the nonce is not used for encryption. 2019-12-18 17:01:21 +02:00
Alin Moldovean c68b345362 Merge pull request #865 from AlinMoldovean/master
Implement import of DataTypeDefinition attribute from NodeSet files.
2019-12-09 13:43:16 +02:00
AlinMoldovean ba620f2a08 Implement import of DataTypeDefinition attribute from NodeSet files. 2019-12-06 10:24:32 +02:00
Martin Regen d31c8cc6e4 - implement a few TODO (#859)
- bugfixes found in testing
1.4.358.30
2019-12-02 16:29:25 +01:00
Alin Moldovean f1a16df2e2 Merge pull request #860 from AlinMoldovean/master
Nonce validation fix in Client Session
2019-12-02 16:08:34 +02:00
AlinMoldovean 77a183ec6b Nonce validation fix in Client Session. The minimum nonce length should be 32 in CreateSession and ActivateSession responses. 2019-11-28 19:10:07 +02:00
Martin Regen de9872320c Fixtravis & nuget auto dependency (#857)
- urgent commit to test nuget build system
2019-11-21 19:58:05 +01:00
Alin Moldovean c6ee113030 Merge pull request #856 from AlinMoldovean/master
Fixes #847 - Fix in DiscoveryClient.Create()
2019-11-21 17:39:34 +02:00
AlinMoldovean 2d2c108a68 Fixes #847 - Fix in DiscoveryClient.Create() 2019-11-21 15:35:51 +02:00