CHECK_EXIST(args, "callbackId", out)
CHECK_EXIST(args, "contentURI", out)
+ const std::string& contentURI = args.get("contentURI").get<std::string>();
+ const std::string& real_path = common::FilesystemProvider::Create().GetRealPath(contentURI);
+
+ CHECK_STORAGE_ACCESS(real_path, &out);
+
double callbackId = args.get("callbackId").get<double>();
auto cbData = std::shared_ptr<ReplyCallbackData>(new ReplyCallbackData);
cbData->callbackId = callbackId;
CHECK_EXIST(args, "contentDirURI", out)
CHECK_EXIST(args, "recursive", out)
+ const std::string& contentURI = args.get("contentDirURI").get<std::string>();
+ const std::string& real_path = common::FilesystemProvider::Create().GetRealPath(contentURI);
+
+ CHECK_STORAGE_ACCESS(real_path, &out);
+
ReplyCallbackData* cbData = new ReplyCallbackData;
cbData->callbackId = args.get("callbackId").get<double>();
cbData->instance = this;
picojson::object& out) {
ScopeLogger();
+ const std::string& contentURI = args.get("contentURI").get<std::string>();
+ const std::string& real_path = common::FilesystemProvider::Create().GetRealPath(contentURI);
+
+ CHECK_STORAGE_ACCESS(real_path, &out);
+
picojson::object lyrics;
if (ContentManager::getInstance()->isConnected()) {
int ret = ContentManager::getInstance()->getLyrics(args, lyrics);
CHECK_EXIST(args, "uri", out)
int id = static_cast<int>(args.get("id").get<double>());
std::string uri = args.get("uri").get<std::string>();
+ const std::string& real_path = common::FilesystemProvider::Create().GetRealPath(uri);
+
+ CHECK_STORAGE_ACCESS(real_path, &out);
+
ret = ContentManager::getInstance()->setThumbnailUri(id, uri);
if (ret != MEDIA_CONTENT_ERROR_NONE) {
LogAndReportError(ContentManager::getInstance()->convertError(ret), &out);