Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Icons should be stored in dedicated folder #2200

Closed
shoamano83 opened this issue May 21, 2018 · 2 comments
Closed

Icons should be stored in dedicated folder #2200

shoamano83 opened this issue May 21, 2018 · 2 comments

Comments

@shoamano83
Copy link
Contributor

Bug Report

In the default smartDeviceLink.ini configuration, both AppStorageFolder and AppIconsFolder point to a single folder. With this configuration, a file in the folder might be accidentally removed when the folder size reaches to the quota specified by AppIconsFolderMaxSize.

The code in set_app_icon_request.cc assumes that the icon folder includes only icon files. Therefore, I think AppIconsFolder should point to a dedicated folder.

Reproduction Steps
  1. Increase AppDirectoryQuota value in smartDeviceLink.ini file to 1000 MB:
AppDirectoryQuota = 1048576000
  1. Create "storage" folder and create a dummy file of 200 MB in it:
$ mkdir storage
$ dd if=/dev/zero of=storage/dummy_file.bin count=204800 bs=1024
  1. Run ./start.sh
  2. Launch sdl_hmi
  3. Using sdl_ios' example app, connect the app to Core through TCP transport
  4. Make the app in FULL level
Expected Behavior

Files in "storage" folder should be kept intact as AppDirectoryQuota is large enough.

Observed Behavior

The dummy file in "storage" folder is deleted.

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)
Test Case, Sample Code, and / or Example App

Log: SmartDeviceLinkCore.zip
smartDeviceLink.ini: smartDeviceLink.zip

@shoamano83
Copy link
Contributor Author

I know this issue can be easily avoided by each OEM configuring appropriate folder for AppIconsFolder. Also, I agree that this issue won't happen easily as the quota is fairly large (100MB, I think this is another issue though). Nevertheless, I still think that the default ini file should clarify that AppIconsFolder contains only icon files.

@iCollin
Copy link
Collaborator

iCollin commented Apr 15, 2021

Closed via #2202

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants