Reproduction steps
According to the Matter specification and the latest ServerCluster API requirements, all clusters must properly support the ClusterRevision attribute as a required attribute. However, the current implementation of CameraAvSettingsUserLevelManagementCluster::ReadAttribute does not handle reads for Attributes::ClusterRevision::Id.
This results in non-compliance with the ServerCluster API and could potentially cause certification failures or break interoperability with tools and controllers expecting this attribute to be available for every server cluster.
To Reproduce:
Attempt to read the ClusterRevision attribute from a CameraAvSettingsUserLevelManagement cluster server instance.
The attribute is not handled or encoded in the response.
Expected behavior:
ReadAttribute should support reading the ClusterRevision attribute, similar to other server clusters, by returning the value from the underlying implementation object (e.g., mLogic.mClusterRevision).
Suggested Fix:
Add a case for Attributes::ClusterRevision::Id in the ReadAttribute method to encode and return the attribute value.
Sample Code Snippet:
C++
case Attributes::ClusterRevision::Id:
return aEncoder.Encode(mLogic.mClusterRevision);
Environment:
Branch: master
File: src/app/clusters/camera-av-settings-user-level-management-server/CameraAvSettingsUserLevelManagementCluster.cpp
Additional context:
This may affect compliance with Matter specifications and tools that rely on required attributes being present for all clusters.
Bug prevalence
Every time
GitHub hash of the SDK that was being used
40c1eeb
Platform
linux
Platform Version(s)
No response
Anything else?
No response
Reproduction steps
According to the Matter specification and the latest ServerCluster API requirements, all clusters must properly support the ClusterRevision attribute as a required attribute. However, the current implementation of CameraAvSettingsUserLevelManagementCluster::ReadAttribute does not handle reads for Attributes::ClusterRevision::Id.
This results in non-compliance with the ServerCluster API and could potentially cause certification failures or break interoperability with tools and controllers expecting this attribute to be available for every server cluster.
To Reproduce:
Attempt to read the ClusterRevision attribute from a CameraAvSettingsUserLevelManagement cluster server instance.
The attribute is not handled or encoded in the response.
Expected behavior:
ReadAttribute should support reading the ClusterRevision attribute, similar to other server clusters, by returning the value from the underlying implementation object (e.g., mLogic.mClusterRevision).
Suggested Fix:
Add a case for Attributes::ClusterRevision::Id in the ReadAttribute method to encode and return the attribute value.
Sample Code Snippet:
C++
case Attributes::ClusterRevision::Id:
return aEncoder.Encode(mLogic.mClusterRevision);
Environment:
Branch: master
File: src/app/clusters/camera-av-settings-user-level-management-server/CameraAvSettingsUserLevelManagementCluster.cpp
Additional context:
This may affect compliance with Matter specifications and tools that rely on required attributes being present for all clusters.
Bug prevalence
Every time
GitHub hash of the SDK that was being used
40c1eeb
Platform
linux
Platform Version(s)
No response
Anything else?
No response