EasyCwmp - easycwmp
View Issue Details
0000302easycwmp[All Projects] Bugpublic2017-10-18 18:102018-06-25 18:42
hmh 
emna.trigui@pivasoftware.com 
normalminoralways
resolvedfixed 
OpenWRTChaos_Calmer
0000302: Does not filter illegal characters in DEVICE_PRODUCT, interacts badly with some ACSes
Easycwmp does not filter characters like "/" in DEVICE_PRODUCT (which are common in several router model names in OpenWRT/LEDE).

With FreeACS, this results in major issues when attempting to provision new firmware to the units, because the file path will have an extra "/" in it (which is not a path separator), and therefore the firmware data file cannot be found, ever.
Provision a TP-Link TL-WDR842ND with OpenWRT, and attempt to update its firmware using FreeACS.

This results in an attempt to download an illegal file name that has an "/" in it, because the contents of /etc/device_info are:

DEVICE_MANUFACTURER='TP-LINK'
DEVICE_PRODUCT='SIMETBOX-TP-LINKTL-WR842N/NDv2'
DEVICE_REVISION='v0'

And this results in an illegal URI due to the forward slash in "WR842N/NDv2".
Changing the init.d/easycwmp script with the attached patch fixes the issue, although I am not sure this is the best way to do it. If anything, it illustrates what the issue is better than my description of it...
No tags attached.
patch easycwmp_init.d_badchars.patch (1,916) 2017-10-18 18:10
http://support.easycwmp.org/file_download.php?file_id=110&type=bug
Issue History
2017-10-18 18:10hmhNew Issue
2017-10-18 18:10hmhFile Added: easycwmp_init.d_badchars.patch
2018-06-25 18:42emna.trigui@pivasoftware.comNote Added: 0000882
2018-06-25 18:42emna.trigui@pivasoftware.comStatusnew => resolved
2018-06-25 18:42emna.trigui@pivasoftware.comResolutionopen => fixed
2018-06-25 18:42emna.trigui@pivasoftware.comAssigned To => emna.trigui@pivasoftware.com

Notes
(0000882)
emna.trigui@pivasoftware.com   
2018-06-25 18:42   
Delivered in EasyCwmp-1.7.0