1
0
mirror of https://github.com/FreeOpcUa/opcua-asyncio synced 2025-10-29 17:07:18 +08:00

2351 Commits

Author SHA1 Message Date
Olivier
1004f153a9 run CI on newer python version 2025-03-31 21:16:21 +02:00
Olivier
95ef9f0d56 some formatting 2025-03-31 16:34:50 +02:00
Olivier
f38d7da0e6 stupid ruff formatting 2025-03-31 16:34:50 +02:00
Olivier
d59a037f3d some ruff things 2025-03-31 16:34:50 +02:00
Olivier
a7c7efed28 remove a test which has been failing for years without anyone finding out how it works 2025-03-31 16:34:50 +02:00
Olivier
e882441d36 disable test broken by 1.0.5 2025-03-31 16:34:50 +02:00
Olivier
50aaee2600 shelv cannot be created in another thread 2025-03-31 16:34:50 +02:00
Olivier
83a47ea7e5 fixes to code generate after nodeset update 2025-03-31 16:34:50 +02:00
Olivier
7924d98cc0 automatic nodeset update 2025-03-31 16:34:50 +02:00
Olivier
6815371933 fix tests for nodeset update 2025-03-31 16:34:50 +02:00
matt-williams
3f5d491721 Parse ExtensionObjects with missing length (= -1) (#1803)
* Parse ExtensionObjects with missing length (= -1)

Some old OPC/UA implementations omit the length when building ExtensionObjects and
instead specify -1 - for interoperability, assume this means the rest of the buffer

* Lint
2025-03-31 16:02:42 +02:00
Christoph Ziebuhr
e6d646d12f Fix ReferenceDescriptions for TypeDefinition
Fail if TypeDefinition is invalid
2025-03-13 10:29:14 +01:00
Christoph Ziebuhr
9f367549c5 Fix NodeClass in ReferenceDescriptions of UA-Nodeset 2025-03-09 19:22:38 +01:00
Christoph Ziebuhr
324295f068 Fix binary_address_space.pickle generation
generate_address_space.py used old address space for pickle generation,
which means you had to run it twice to get the new one
2025-03-09 19:22:38 +01:00
Olof Ohlsson Sax
f29d401c8c Add support for reading structure with subtyped values 2025-03-02 21:02:30 +01:00
Bi0T1N
1520d3c175 Add missing import for typing Optional 2025-03-02 21:01:43 +01:00
Tor Arvid Lund
772316de21 Use ObjectId instead of hard-coded int for DataValue type 2025-02-06 19:59:21 +01:00
Tor Arvid Lund
c95631e2e2 fix: NodeId change for class DataValue
According to ObjectIds, DataValue = 23, and not 25 as it was before this
commit. 25 is DiagnosticInfo, which can be seen below...
2025-02-06 19:59:21 +01:00
Andreas Heine
447bdf7596 add: Number in uatypes.py 2025-02-06 14:20:24 +01:00
Hector Oliveros
b1fe0b21b4 Update connection limit logging to check for changes (#1777)
* Update connection limit logging to check for changes

Added conditionals to log limit updates only when changes are detected, reducing unnecessary log noise. This applies to both server and client limit updates in the connection logic.

* Fix indentation in server and client limit updates

Adjusted indentation in the `update_limits` methods to ensure values are updated only when changes are detected. This aligns the logic with the condition and avoids unnecessary updates.

* Fix ruff format

---------

Co-authored-by: Hector Oliveros <holiveros.see@aminerals.cl>
2025-01-30 19:26:58 +01:00
Andreas Heine
c195f37cfc Update README.md 2025-01-22 11:45:47 +01:00
Andreas Heine
e7eb4df205 Update README.md 2025-01-22 11:45:26 +01:00
mver-al
b1cfae3466 Don't set _password and _username in activate_session. 2025-01-08 21:24:22 +01:00
mver-al
78a86a9254 Allow setting password to None. 2025-01-08 21:24:22 +01:00
mver-al
af95fff1fd Fixes for using activate_session to change users.
- The updated ServerNonce was not saved after activate_session, which
  means that subsequent activate_sessions would fail with
  BadIdentityTokenInvalid.
- The _username and _password attributes of Client were never updated but
  checked in the code (_add_user_auth function).
2025-01-08 21:24:22 +01:00
Christoph Ziebuhr
3c6317be7b Fix usage of X509IdentityToken
- sign token with algorithm from policy uri
- verify signature in server!
2024-12-04 13:55:40 +01:00
Christoph Ziebuhr
9f7322946f Improve user token policy selection 2024-12-04 13:55:40 +01:00
Christoph Ziebuhr
594dcad8bc Improve usage of UserTokenPolicy.SecurityPolicyUri
Don't allow plaintext password to prevent BadSecurityModeInsufficient in some clients
2024-12-04 13:55:40 +01:00
Christoph Ziebuhr
d5ce251b9a Move SecurityPolicy from ua to crypto 2024-12-04 13:55:40 +01:00
Christoph Ziebuhr
2c9c7aa22e Simplify handling of SecurityPolicyType and SecurityLevel 2024-12-04 13:55:40 +01:00
Christoph Ziebuhr
d410c7e1bf cryptography is always available 2024-12-04 13:55:40 +01:00
Florian Meinicke
c6b63b0503 Fix default value of Historizing variable attribute
in uaprotocol_hand.py

According to the specification, "[t]he Historizing attribute indicates
whether the Server is actively collecting data for the history of the
Variable. [...] Default value is FALSE."
2024-12-04 13:55:12 +01:00
Olivier
302c434379 fixes in pyproject.toml, update readme to use uv 2024-10-30 21:06:01 +01:00
dependabot[bot]
44266819fc Bump actions/checkout from 3 to 4
Bumps [actions/checkout](https://github.com/actions/checkout) from 3 to 4.
- [Release notes](https://github.com/actions/checkout/releases)
- [Changelog](https://github.com/actions/checkout/blob/main/CHANGELOG.md)
- [Commits](https://github.com/actions/checkout/compare/v3...v4)

---
updated-dependencies:
- dependency-name: actions/checkout
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
2024-10-28 20:54:28 +01:00
Olivier
54895d2112 add format check to CI (might already have there but..) 2024-10-27 11:38:50 +01:00
Olivier
f214396cd5 ruff format with line length 120 2024-10-27 11:38:50 +01:00
Roman Yurchak
45861d7e76 Move pytest.ini into pyproject.toml 2024-10-26 11:54:50 +02:00
Roman Yurchak
e775cbd8b5 Move mupy to pyproject.toml 2024-10-26 11:54:50 +02:00
Roman Yurchak
59017d9b0a Move ruff.toml to pyproject.toml 2024-10-26 11:54:50 +02:00
Olivier
5c530adebc make release file use uv (not tested yet) 2024-10-24 10:11:12 +02:00
Olivier
9b768c69c3 add git blame ignore revs file 2024-10-24 10:11:12 +02:00
Olivier
96fd33b3ae try to make some tests more reliable 2024-10-24 10:11:12 +02:00
Olivier
cd1645c10f format everything with ruff 2024-10-24 10:11:12 +02:00
Olivier
5ea8d17b5b use uv in CI 2024-10-24 10:11:12 +02:00
Olivier
c773b51a4f deprecate python <3.10 add 3.13 for CI 2024-10-24 10:11:12 +02:00
Olivier
aaa9c3a50f move to pyproject.toml 2024-10-24 10:11:12 +02:00
Christoph Ziebuhr
ac141d7531 Fix specifying allowed UserIdentityTokens 2024-10-18 13:33:31 +02:00
Christoph Ziebuhr
4fa61420ed Fix password decryption with Aes256Sha256RsaPss 2024-10-18 13:33:31 +02:00
Christoph Ziebuhr
2d3394e370 Fix variable naming 2024-10-18 13:33:31 +02:00
dependabot[bot]
add6eddaab Bump pypa/gh-action-pypi-publish from 1.9.0 to 1.10.3
Bumps [pypa/gh-action-pypi-publish](https://github.com/pypa/gh-action-pypi-publish) from 1.9.0 to 1.10.3.
- [Release notes](https://github.com/pypa/gh-action-pypi-publish/releases)
- [Commits](ec4db0b4dd...f7600683ef)

---
updated-dependencies:
- dependency-name: pypa/gh-action-pypi-publish
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2024-10-17 13:41:01 +02:00