[Issue#] WGL-573
[Problem] Valid Id of <tizen:app-widget> element should be in format of
<TIZEN_APPLICATION_ID>.<STRING>
[Cause] Missing proper routine to check this condition.
[Solution] Add routine to check app-widget id.
[Verification]
* Install widget attached to issue, which should fail:
https://bugs.tizendev.org/jira/browse/WGL-573
* Install correct widget, which should pass:
https://bugs.tizendev.org/jira/browse/WGL-574
Change-Id: I07c408f192aab083cd0513e73bc35ffab7ed870d
FOREACH (it, liveBoxList) {
std::string boxType;
+ if ((**it).m_liveboxId.find(m_installContext.widgetConfig.tzAppid) != 0) {
+ _E("Invalid app-widget id (doesn't begin with application id)");
+ ThrowMsg(Exceptions::WidgetConfigFileInvalid, "Invalid app-widget id (doesn't begin with application id)");
+ }
+
if ((**it).m_type.empty()) {
boxType = web_provider_livebox_get_default_type();
} else {