tr069-manager: PCF-1004: move some CWMP query paths to Device.

Currently cwmp user does not have access right to ManagementServer DM
entries. This causes tr-069 CDRouter tests to fail with access right
errors when trying to access some configurations.

Lets implement the suggested solution in PCF-1102 and query
MaxConnectionRequest and FreqConnectionRequest from
Device.ManagementServer instead.

Closes: PCF-1004
Signed-off-by: Yüce Kürüm <yuce.kurum@mind.be>
Signed-off-by: Yüce Kürüm <yuce.kurum_ext@softathome.com>
This commit is contained in:
Yüce Kürüm
2024-06-25 14:45:16 +02:00
parent a74864de1d
commit 1c08ad7d35

View File

@@ -0,0 +1,15 @@
Index: tr069-manager-v1.31.3/src/dmmain/cwmpd_connectionsecurity.c
===================================================================
--- tr069-manager-v1.31.3.orig/src/dmmain/cwmpd_connectionsecurity.c
+++ tr069-manager-v1.31.3/src/dmmain/cwmpd_connectionsecurity.c
@@ -102,8 +102,8 @@ bool cwmp_server_maxConnectionsReached(v
amxc_string_init(&maxconnectionrequestPath, 0);
amxc_string_init(&freqconnectionrequestPath, 0);
- amxc_string_setf(&maxconnectionrequestPath, "ManagementServer.%sMaxConnectionRequest", prefix);
- amxc_string_setf(&freqconnectionrequestPath, "ManagementServer.%sFreqConnectionRequest", prefix);
+ amxc_string_setf(&maxconnectionrequestPath, "Device.ManagementServer.%sMaxConnectionRequest", prefix);
+ amxc_string_setf(&freqconnectionrequestPath, "Device.ManagementServer.%sFreqConnectionRequest", prefix);
paramsArray[0] = strdup(amxc_string_get(&maxconnectionrequestPath, 0));
paramsArray[1] = strdup(amxc_string_get(&freqconnectionrequestPath, 0));