[Issue#] TWEB-678 (NABI)
[Bug] Unhandled exception while installing
broken package
[Cause] Lack of Exception catching
[Solution] Proper catch and throw added
[Verication] Build package. Try to install
z4.html file from:
https://tizendev.org/bugs/browse/TWEB-678
(it is widget package - not .html page)
Change-Id: I0dceed2db098bf6bbbd9af554ca79e6343f78b6f
LogError("Failed to parse config.xml file");
return ConfigParserData();
}
+ Catch(DPL::ZipInput::Exception::SeekFileFailed)
+ {
+ LogError("Failed to seek widget archive - corrupted package?");
+ return ConfigParserData();
+ }
return configInfo;
}
LogDebug("Failed to open widget package");
return PKG_TYPE_UNKNOWN;
}
+ Catch(DPL::ZipInput::Exception::SeekFileFailed)
+ {
+ LogError("Failed to seek widget package file");
+ return PKG_TYPE_UNKNOWN;
+ }
Try
{
{
ReThrowMsg(Exceptions::OpenZipFailed, m_installerContext.locations->getWidgetSource());
}
+ Catch(DPL::ZipInput::Exception::SeekFileFailed)
+ {
+ ThrowMsg(Exceptions::ExtractFileFailed,"m_installerContext.locations->getWidgetSource()");
+ }
}
void TaskUnzip::StepUnzipProgress()