Partial import crashes with exception

Bug #963311 reported by Matthias Burtscher
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
chive
New
Undecided
Unassigned

Bug Description

When checking "Allow script interruption", partial import crashes both on schema and table view!

<!DOCTYPE html PUBLIC
 "-//W3C//DTD XHTML 1.0 Transitional//EN"
 "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
<title>
PHP Error</title>

<style type="text/css">
/*<![CDATA[*/
body {font-family:"Verdana";font-weight:normal;color:black;background-color:white;}
h1 { font-family:"Verdana";font-weight:normal;font-size:18pt;color:red }
h2 { font-family:"Verdana";font-weight:normal;font-size:14pt;color:maroon }
h3 {font-family:"Verdana";font-weight:bold;font-size:11pt}
p {font-family:"Verdana";font-size:9pt;}
pre {font-family:"Lucida Console";font-size:10pt;}
.version {color: gray;font-size:8pt;border-top:1px solid #aaaaaa;}
.message {color: maroon;}
.source {font-family:"Lucida Console";font-weight:normal;background-color:#ffffee;}
.error {background-color: #ffeeee;}
/*]]>*/
</style>
</head>

<body>
<h1>PHP Error</h1>

<h3>Description</h3>
<p class="message">
Undefined index: type</p>

<h3>Source File</h3>
<p>
/var/www/chive/eliminate-chivewebapplication/protected/models/ImportPage.php(141)</p>

<div class="source">
<pre>
00129: {
00130: $this->view = 'form';
00131: $this->fileUploadError = true;
00132: }
00133: }
00134:
00135: // Import file via postprocessing
00136: elseif($this->partialImport || isset($_GET['position']))
00137: {
00138: $this->view = 'postprocessing';
00139: $this->file = $_GET['file'];
00140: $this->fileSize = $_GET['fileSize'];
<div class="error">00141: $this->mimeType = $_GET['type'];
</div>00142: $this->position = $_GET['position'];
00143: $this->totalExecutedQueries = $_GET['totalExecutedQueries'];
00144:
00145: return $this->runPostProcessing();
00146:
00147: }
00148:
00149: // Display default form
00150: else
00151: {
00152: $this->view = 'form';
00153: }
</pre>
</div><!-- end of source -->

<h3>Stack Trace</h3>
<div class="callstack">
<pre>
#0 /var/www/chive/eliminate-chivewebapplication/protected/controllers/SchemaController.php(501): ImportPage->run()
#1 /var/www/chive/eliminate-chivewebapplication/yii/web/actions/CInlineAction.php(50): SchemaController->actionImport()
#2 /var/www/chive/eliminate-chivewebapplication/yii/web/CController.php(300): CInlineAction->run()
#3 /var/www/chive/eliminate-chivewebapplication/yii/web/filters/CFilterChain.php(133): SchemaController->runAction()
#4 /var/www/chive/eliminate-chivewebapplication/yii/web/filters/CFilter.php(41): CFilterChain->run()
#5 /var/www/chive/eliminate-chivewebapplication/yii/web/CController.php(1049): CAccessControlFilter->filter()
#6 /var/www/chive/eliminate-chivewebapplication/yii/web/filters/CInlineFilter.php(59): SchemaController->filterAccessControl()
#7 /var/www/chive/eliminate-chivewebapplication/yii/web/filters/CFilterChain.php(130): CInlineFilter->filter()
#8 /var/www/chive/eliminate-chivewebapplication/yii/web/CController.php(283): CFilterChain->run()
#9 /var/www/chive/eliminate-chivewebapplication/yii/web/CController.php(257): SchemaController->runActionWithFilters()
#10 /var/www/chive/eliminate-chivewebapplication/yii/web/CWebApplication.php(324): SchemaController->run()
#11 /var/www/chive/eliminate-chivewebapplication/yii/web/CWebApplication.php(121): ChiveWebApplication->runController()
#12 /var/www/chive/eliminate-chivewebapplication/yii/base/CApplication.php(135): ChiveWebApplication->processRequest()
#13 /var/www/chive/eliminate-chivewebapplication/index.php(87): ChiveWebApplication->run()
</pre>
</div><!-- end of callstack -->

<div class="version">
2012-03-23 18:39:46 Apache/2.2.20 (Ubuntu) <a href="http://www.yiiframework.com/">Yii Framework</a>/1.1.4</div>
</body>
</html>

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.