You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The minimum value of AppIconsFolderMaxSize is hard-coded to kDefaultAppIconsFolderMaxSize, which is 100MB. OEMs cannot make this value smaller than 100MB without customizing SDL Core's code.
Note: if I create a dummy file larger than 100MB in step 2, then the file is removed.
OS & Version Information
OS/Version: Ubuntu 16.04 (amd64)
SDL Core Version: commit 65c1e7e from develop branch
Testing Against: sdl_hmi (commit 18460356c02e985df598b94f5a6bdbba1c451fff from master), example app of sdl_ios release 5.2.0 on iPhone X (iOS 11.3 beta)
Looking at the commit 5b58bf9 I think this is an intended behavior. However, I question the reason of adding such minimum value.
Why is such minimum value necessary?
Why was 100MB chosen for the minimum value? (Usually an icon file is a few KB in size, so we are unlikely to hit the total size of 100MB.)
If such minimum value is really necessary, then IMHO the document and/or the ini file should have clear description that OEMs are required to reserve 100MB or more for the icon storage.
My concern is that 100MB of storage may not be available on some embedded systems which have limited disk storage. I think OEMs should be able to choose smaller size of AppIconsFolder to support broader systems without modifying the code.
Bug Report
The minimum value of
AppIconsFolderMaxSize
is hard-coded tokDefaultAppIconsFolderMaxSize
, which is 100MB. OEMs cannot make this value smaller than 100MB without customizing SDL Core's code.Reference: https://github.com/smartdevicelink/sdl_core/blob/develop/src/components/config_profile/src/profile.cc#L1077-L1079
Reproduction Steps
AppIconsFolder
e.g. "icons"AppIconsFolderMaxSize
i.e. 10KBExpected Behavior
The dummy file in "icons" folder should be removed as it exceeds the size specified by
AppIconFolderMaxSize
.Observed Behavior
The dummy file is not removed.
Note: if I create a dummy file larger than 100MB in step 2, then the file is removed.
OS & Version Information
develop
branchmaster
), example app of sdl_ios release 5.2.0 on iPhone X (iOS 11.3 beta)Test Case, Sample Code, and / or Example App
Log: SmartDeviceLinkCore.zip
smartDeviceLink.ini: smartDeviceLink_ini.zip
The text was updated successfully, but these errors were encountered: