Parent: b1d0c3bc51b8fb6043f10e412ef1c4aec6a2ce58
Author: Biman Paul <biman.paul@samsung.com>
Committer: Luiz Augusto von Dentz <luiz.von.dentz@intel.com>
Date: 2016-09-05 12:22:46
Tree: 9d85bfc882efed462c3283693456f55774d30ec0
obexd/pbap: clear cache if name header is present Remote device is not able to fetch call logs from different folder. It always returns the call logs requested in first request. Considering a situation to fetch from och and then from cch, there are two ways to request x-bt/vcard-listing: Case I: 1. SetPhoneBook to /telecom/och (absolute path) 2. PullvCardListing with name header '' (empty) Remote devices using this method always calls SetPhoneBook with absolute path to set the path and we clear the cache when new path is set. Case II: 1. SetPhoneBook to /telecom (relative path) 2. PullvCardListing with name header 'och' Remote devices using this method calls SetPhoneBook with '/telecom' only once and cache is not cleared when second PullvCardListing is made with name header. This results in cached incorrect list sent to remote device. Clear cache if name header is present would prevent sending of cache list as it is not present. Instead it would request to create new cache based on new name header.
Diffstat
| M | obexd/plugins/pbap.c | | | 9 | +++++++- - |
1 files changed, 7 insertions(+), 2 deletions(-)