Commit Graph

972 Commits

Author SHA1 Message Date
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
Alin Moldovean ea1d78a515 Merge pull request #854 from AlinMoldovean/master
ComplexTypes fix for using shared EncodableFactory in UA Sample Client
2019-11-21 14:49:42 +02:00
dependabot[bot] 1b11fb68b0 Bump Microsoft.NETCore.UniversalWindowsPlatform (#853)
Bumps [Microsoft.NETCore.UniversalWindowsPlatform](https://github.com/Microsoft/dotnet) from 5.4.0 to 5.4.2.
- [Release notes](https://github.com/Microsoft/dotnet/releases)
- [Commits](https://github.com/Microsoft/dotnet/commits)

Signed-off-by: dependabot[bot] <support@github.com>
2019-11-21 13:18:39 +01:00
AlinMoldovean 095dc40680 ComplexTypes fix for using shared EncodableFactory in UA Sample Client 2019-11-21 13:54:43 +02:00
Alin Moldovean 131f53811f Merge pull request #851 from MilosKonecny/master
Stability in BinaryDecoder improved.
2019-11-21 13:40:42 +02:00
Martin Regen 39dca2c103 Complex Types client library (#849)
Adds a complex type system client library extension for custom enumerations and structure types based on a server dictionary or DataTypeDefinition using emitted classes at runtime. 

- Custom types are added to the session factory, not to the global factory. Types are loaded when the session connects by adding 
`                var complexTypeSystem = new ComplexTypeSystem(session);
                await complexTypeSystem.Load();
`
- Custom type properties can be accessed with an accessor [propertyname] or [index]. Direct access through the properties is possible, but some cases do not update the optional or union flags correctly.
- Support includes V1.03 dictionaries and V1.04 DataTypeDefinitions (--> known issues).
- NetCoreComplexClient can be used for quick testing servers. It prints out all custom types with content and subscribes to all. Also includes sample how to write back complex type variables and how to output JSON.
- The UA Sample Client and the Quickstart Data Type client can be used for testing with UI. Many issues were adressed to be able to read and write complex types, however some support is limited, e.g. only editing simple fields is currently working (help wanted).
- Caveat: The complex type libaries for .Net Core must be built for .netcoreapp, so it needs a seperate nuget package for the complex type client extension.
- Support for a factory type builder class to allow to plugin other type builder methods (e.g. Codedom etc...)
- Added JSON test case and include the complex types client in the testing shell script, so the complex types lib is tested on mac/linux too.
- Few fixes in the JSON encoder.

Finding enough servers with custom types is an issue, so if you find servers with unsupported custom types please provide feedback.

Known limitations:
- Only V1.03 OPC binary dictionaries are supported (no XML Schema dictionaries).
- V1.03 dictionary structure definitions are only supported if they can be mapped to a V1.04 DataTypeDefinition. Nested types and cross dictionary refs should work.
- OptionSet is only partially implemented. Only shows the byte arrays, not the flags.
- Opaque Types in dictionaries are ignored.
2019-11-20 16:05:24 +01:00
Alin Moldovean 49f14cf8ff Merge pull request #852 from AlinMoldovean/master
Length validation in user token decryption.
2019-11-20 11:29:16 +02:00
AlinMoldovean 13cba2baf7 Length validation in user token decryption. 2019-11-19 16:01:28 +02:00
Miloš Konečný 110ab6b5c0 BinaryDecoder: Stability improved, exception ArgumentOutOfRangeException is avoided. 2019-11-18 21:22:09 +01:00
Alin Moldovean dd06f4fe22 Merge pull request #846 from AlinMoldovean/master
Add server nonce validation in Client session.
2019-11-14 13:38:28 +02:00
AlinMoldovean 8504055a83 Add server nonce validation in Client session. 2019-11-12 17:00:07 +02:00
Sebastian Bäumler c9a20988e5 Removed duplicated code. (#844)
Same Code will be called by static function "RequireEncryption()"
2019-11-11 16:44:23 +02:00
Alin Moldovean dc9fa85a38 Fixes #822 - Certificate Validation fix. (#843)
* Remove BadCertificateUriInvalid from list of certificate validation errors that may be suppressed.
2019-11-06 09:49:08 +02:00
Andrew Field d7130a97d4 Spelling (#840) 2019-11-05 10:07:52 +02:00
Alin Moldovean f015ece891 Fixes #832 - Avoid deep recursion in TcpMessageSocket.ReadNextBlock() (#836)
* Fixes #832 - Avoid deep recursion in TcpMessageSocket.ReadNextBlock()
2019-10-30 09:52:46 +02:00
Martin Regen ef06464776 fix schema validator and dictionary loader (only binary) (#833)
* fix schema validator and dictionary loader (only binary scheme)
# include some .bsd files for validation
* add check for some configuration fields, to return a meaningful error.
2019-10-29 18:16:37 +01:00
Alin Moldovean 056dfaa8db Merge pull request #835 from AlinMoldovean/master
Fixes #780. ExpandedNodeId.CompareTo() fix.
2019-10-29 12:16:46 +02:00
AlinMoldovean 089bcd0e6f Fixes #780. ExpandedNodeId.CompareTo() fix. 2019-10-29 10:11:44 +02:00
Martin Regen 6971c76d88 Improve Data Type Quickstart Server (#831)
- add a few more dependent complex types for testing
- fix UI issue which prevents dialogs from showing data
* workaround for dialogs with imagestream, always throwing exceptions
* rebuild with v1.04 modelcompiler
2019-10-25 15:57:34 +02:00
Andrew Field 933244cc15 Add quote marks to workdir in test shell script. (#819)
* Update testclientserver.sh
* Update testmonoclientserver.sh

Add quote marks. "cd" will fail without quote marks if the workdir has any blank spaces.
2019-10-10 11:51:58 +02:00
Alin Moldovean 28614a037c Merge pull request #817 from AlinMoldovean/master
Client keep-alive fix
1.4.357.28
2019-10-03 16:57:44 +03:00
AlinMoldovean 14869582e4 Client Session KeepAlive fix - outstanding publish requests should not stop keep alive reads. 2019-10-03 16:55:44 +03:00
Alin Moldovean 15eab5e6dd Merge pull request #816 from AlinMoldovean/master
Update UA NodeSets and generated code - #791
2019-10-03 10:36:18 +03:00
AlinMoldovean df0cc4287d #791 - Update UA NodeSets and generated code with the latest updates for V1.04.3 Errata. 2019-10-02 17:44:53 +03:00
Sebastian Bäumler f6a70031e1 Improvements to enable UANodeSet to import/export AccessLevelEx as uint32 (#815) 2019-10-02 16:39:04 +03:00
Alin Moldovean a1e26bf849 Interoperability fixes for HTTPS (#814)
* Fixes #709 - Allow HTTPS clients to send the certificate for servers that require TLS client authentication

* Fixes #692 - HTTPS Server listener - Use the first configured policy for HTTPS
2019-10-02 15:38:59 +03:00
Martin Regen 23b9c37b48 Make the SQL Db ApplicationNames locale nullable (#812)
App registration for push servers from GDS client stopped working, maybe due to new db version in VS. But nulling the locale fixes the issue.
Note: DB should be recreated or the locale column must be manually set to nullable in the SQL Db.
#811 fixed
2019-10-01 08:27:53 +02:00
Alin Moldovean efd66a2acb Save server certificate in ClientSession if no encryption is required. (#813)
* Fix build order in UA Quickstart Applications.sln

* Fixes #800. Save server certificate in client Session even if no encryption is required.
2019-10-01 06:47:51 +03:00
Martin Regen 550ed0a45f renew Universal Windows package certs (#810)
* renew certs
* update csproj with new hash
2019-09-30 08:35:34 +02:00
Alin Moldovean 50b60d0380 Merge pull request #809 from AlinMoldovean/master
Fixes #805
2019-09-27 16:41:03 +03:00
AlinMoldovean 099a003144 Fixes #805 2019-09-27 16:11:33 +03:00
Alin Moldovean 82b0b56bb7 Merge pull request #808 from AlinMoldovean/master
Fix #751 - possible handle leak in stress test
2019-09-26 15:33:18 +03:00
AlinMoldovean f10151507b Fix #751 - possible handle leak in stress test 2019-09-26 10:55:41 +03:00
Alin Moldovean b33765c294 Merge pull request #802 from AlinMoldovean/master
Fix for #796
2019-09-19 17:57:15 +03:00
AlinMoldovean b1c0293fb4 Fixes #796 2019-09-19 17:55:07 +03:00
jlorek fad62ed965 Fixes #771 (#781)
Fixes a copy & paste bug discovered by @hevgen
2019-08-14 14:52:29 +03:00
Alin Moldovean 30c8768ec8 Merge pull request #768 from AlinMoldovean/master
Copy invalid certificate to rejected store for all validation errors.
1.4.356.27
2019-07-23 17:19:24 +03:00
AlinMoldovean b53ec37199 Copy invalid certificate to rejected store for all validation errors. 2019-07-23 17:17:39 +03:00
ejoseca de838b727a Fixes saving client session to XML. (#757)
Fixed bug in Opc.Ua.Client.Save method.
2019-07-22 16:08:50 +03:00
Alin Moldovean 07e2b807fb Fixes #748. CertificateValidation event not fired for BadCertificateChainIncomplete. (#752) 2019-07-10 10:25:54 +03:00
Alin Moldovean 5c0d86873b Merge pull request #747 from AlinMoldovean/master
Fixes in UaSCUaBinaryTransportChannel and Client.Subscription
2019-06-20 08:14:29 +03:00
AlinMoldovean e257ba07df Fix to avoid timer interval higher than Int32.MaxValue in ClientSubscription.StartKeepAliveTimer() 2019-06-19 16:19:02 +03:00
AlinMoldovean 76cd3953ed Fix for abandoned socket connection in UaSCUaBinaryTransportChannel.Reconnect() 2019-06-19 15:38:14 +03:00
Chris Law 92fa5182ae Change to catch error from validating the server certificate. Fixing #710 and #678. (#739) 2019-06-10 15:58:24 +03:00