agent icon indicating copy to clipboard operation
agent copied to clipboard

hotfix/agent v3.3.19 - downgrade to v0.0.14

Open cedricve opened this issue 7 months ago • 1 comments

Description

Pull Request: hotfix/agent v3.3.19 - downgrade to v0.0.14

Motivation and Improvement

The primary motivation behind this hotfix is to address compatibility issues and stability concerns that have arisen with the latest version (v1.0.0) of the github.com/kerberos-io/onvif library. By downgrading to an earlier, more stable version (v0.0.14), we aim to mitigate these issues and ensure the smooth functioning of our system.

Changes Introduced

  1. Dependency Downgrade:

    • Downgraded github.com/kerberos-io/onvif from v1.0.0 to v0.0.14 in machinery/go.mod and machinery/go.sum.
  2. Code Adjustments:

    • Commented out or adjusted code sections that relied on features or functions introduced in the newer version of the onvif library which are not present or stable in v0.0.14.
    • Specifically, parts of the code dealing with relay outputs and digital inputs have been commented out to prevent runtime errors and maintain functionality.

Benefits

  • Stability: By reverting to a more stable version of the onvif library, we reduce the risk of crashes and bugs related to the newer, less stable version.
  • Compatibility: Ensures that our codebase remains compatible with the onvif library, preventing unexpected behavior and errors.
  • Maintainability: Simplifies maintenance by relying on a well-tested and stable library version, reducing the need for frequent hotfixes and patches.

This hotfix is a crucial step in maintaining the reliability and performance of our system. It addresses immediate concerns while we work on a more permanent solution for integrating the latest features of the onvif library.

cedricve avatar May 20 '25 12:05 cedricve

Some users complain PTZ is not working with latest version of ONVIF.https://github.com/kerberos-io/onvif/releases/tag/v1.0.0

cedricve avatar May 20 '25 12:05 cedricve