mirror of
https://gitlab.com/prpl-foundation/prplos/feeds/feed-prpl.git
synced 2025-12-20 01:00:26 +08:00
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:
@@ -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));
|
||||
Reference in New Issue
Block a user