View Issue Details
ID | Project | Category | View Status | Date Submitted | Last Update |
---|---|---|---|---|---|
11161 | Bug reports | Import/Export | public | 2016-05-11 19:49 | 2016-06-13 12:27 |
Reporter | galmeida | Assigned To | c_schmitz | ||
Priority | none | Severity | minor | ||
Status | closed | Resolution | no change required | ||
Product Version | 2.50.x | ||||
Fixed in Version | 2.50.x | ||||
Summary | 11161: Error HTTP/400 when clicking "Import a question" button | ||||
Description | When clicking the "Import a question" button on LimeSurvey V2.50+ Build 160506 the request fails with error HTTP 400 Invalid request. | ||||
Steps To Reproduce | Select a survey. Press "List questions". Press "Import a question". Request fails with invalid request error . | ||||
Additional Information | Apache log: Request header: Host: lime01-dev.xxx.dev | ||||
Tags | No tags attached. | ||||
Attached Files | |||||
Bug heat | 22 | ||||
Complete LimeSurvey version number (& build) | 160506 | ||||
I will donate to the project if issue is resolved | No | ||||
Browser | Firefox 46.0 | ||||
Database type & version | postgresql91-9.1.2-1PGDG.rhel6.x86_64 | ||||
Server OS (if known) | CentOS release 6.4 2.6.32-358.el6.x86_64 | ||||
Webserver software & version (if known) | httpd-2.2.15-29.el6.centos.x86_64 | ||||
PHP Version | PHP 5.3.3 Zend Engine v2.3.0 | ||||
Is this the only page you get 400? |
|
Yes, the server replies with HTTP/400. |
|
Please activate debug mode in /application/config/config.php and see if you get a more elaborate error. |
|
I'm getting a full-page PHP warning after enabling debug mode (attached). |
|
Please upgrade the latest LimeSurvey build released today and let us know if that fixed your issue. |
|
:-) |
|
I've upgraded to 2.50+ build 160512, set ug+rw permissions for apache on tmp, upload and application/config, but I'm still getting a 400 error. |
|
Did you set a custom template as standard template in global settings? |
|
I do have a custom template, but it is not set as default. |
|
I can see from the debug output that the clear_logo template is trying to be used. |
|
The only files I copied over from the old install were config.php and a template. |
|
Having fixed the 'clear_logo' issue, I enbled the debug mode ang got a stacktrace (attached) to go with the 400 error. |
|
Ok, thank you - that helped to locate the error - we will provide a patch soon. |
|
Thank you for your prompt response! :-) |
|
Fix committed to master branch: http://bugs.limesurvey.org/plugin.php?page=Source/view&id=18997 |
|
Can you check the patch and please report if the issue is fixed for you? |
|
I applied the patch, but the issue remains. |
|
Fix committed to master branch: http://bugs.limesurvey.org/plugin.php?page=Source/view&id=19005 |
|
I'm still getting the attached stacktrace after applying both patches. |
|
Try to upgrade your PHP version to at least 5.4. |
|
The issue in the stacktrace is a new one. |
|
Version 2.50+ Build 160516 released |
|
Hello, I installed latest build 160517 with a clean database but I can still trigger this issue. |
|
If you look into your file /application/config/config.php, |
|
So, after reading in detail the error logs in the last zip file, it became clear. Here the requested URL reported by CHttpException: CWebApplication->runController("admin/questions/sa/importview") It should be something like: CWebApplication->runController("admin/questions/sa/importview/surveyid/{A_SURVEY_ID}") IE: there is no surveyid in the URL. So, you can reproduce the bug by accessing directly to the url : But the button "import a question" itself contains a link pointing to admin/questions/sa/importview/surveyid/{A_SURVEY_ID}. So even if the surveyid would have been wrong for any reason, the CHttpException should have shown : So at least the latest CHttpException ziped file can't have been generated clicking on the button. I bet it has been generated just reloading a page with a wrong URL (I can be wrong). Here the code to generate the button itself : There's no way this code is going to generate a url such as the one indicated in the last zip file. So, just update to last version, and everything should work like a charm. |
|
Version 2.50 Build 160613 released |
|
LimeSurvey: master c0d84a4f 2016-05-12 12:58 Details Diff |
Fixed issue 11161: Error when clicking "Import a question" button |
Affected Issues 11161 |
|
mod - application/models/Template.php | Diff File | ||
LimeSurvey: master fa3d1092 2016-05-12 13:59 Details Diff |
Fixed issue 11161: Error when clicking "Import a question" button |
Affected Issues 11161 |
|
mod - application/controllers/admin/templates.php | Diff File | ||
mod - application/models/AdminTheme.php | Diff File | ||
mod - application/models/TemplateConfiguration.php | Diff File | ||
mod - application/views/admin/super/header.php | Diff File |
Date Modified | Username | Field | Change |
---|---|---|---|
2016-05-11 19:49 | galmeida | New Issue | |
2016-05-12 10:19 | ollehar | Note Added: 38399 | |
2016-05-12 10:29 | galmeida | Note Added: 38404 | |
2016-05-12 10:31 | galmeida | Note Edited: 38404 | |
2016-05-12 10:36 | c_schmitz | Note Added: 38406 | |
2016-05-12 10:36 | c_schmitz | Assigned To | => c_schmitz |
2016-05-12 10:36 | c_schmitz | Status | new => feedback |
2016-05-12 10:50 | galmeida | File Added: php_warning.zip | |
2016-05-12 10:51 | galmeida | Note Added: 38441 | |
2016-05-12 10:51 | galmeida | Status | feedback => assigned |
2016-05-12 10:53 | ollehar | Note Added: 38443 | |
2016-05-12 11:07 | c_schmitz | Note Edited: 38443 | |
2016-05-12 11:07 | c_schmitz | Note Added: 38448 | |
2016-05-12 11:32 | galmeida | Note Added: 38453 | |
2016-05-12 11:37 | c_schmitz | Note Added: 38458 | |
2016-05-12 11:47 | galmeida | Note Added: 38461 | |
2016-05-12 11:49 | c_schmitz | Note Added: 38462 | |
2016-05-12 11:53 | c_schmitz | Note Edited: 38462 | |
2016-05-12 12:25 | galmeida | Note Added: 38463 | |
2016-05-12 12:36 | galmeida | Issue Monitored: galmeida | |
2016-05-12 12:36 | galmeida | File Added: CHttpException.zip | |
2016-05-12 12:50 | galmeida | Note Added: 38464 | |
2016-05-12 12:50 | c_schmitz | Note Added: 38465 | |
2016-05-12 12:51 | galmeida | Note Added: 38466 | |
2016-05-12 12:58 | c_schmitz | Changeset attached | => LimeSurvey master c0d84a4f |
2016-05-12 12:58 | c_schmitz | Note Added: 38468 | |
2016-05-12 12:58 | c_schmitz | Resolution | open => fixed |
2016-05-12 12:59 | c_schmitz | Note Added: 38469 | |
2016-05-12 12:59 | c_schmitz | Status | assigned => resolved |
2016-05-12 12:59 | c_schmitz | Fixed in Version | => 2.5 |
2016-05-12 13:00 | c_schmitz | Relationship added | related to 11142 |
2016-05-12 13:36 | galmeida | Note Added: 38478 | |
2016-05-12 13:59 | c_schmitz | Changeset attached | => LimeSurvey master fa3d1092 |
2016-05-12 13:59 | c_schmitz | Note Added: 38479 | |
2016-05-12 14:01 | c_schmitz | Relationship added | related to 11156 |
2016-05-12 16:54 | galmeida | File Added: CHttpException-3.zip | |
2016-05-12 16:55 | galmeida | Note Added: 38501 | |
2016-05-12 16:57 | ollehar | Note Added: 38502 | |
2016-05-12 17:14 | c_schmitz | Note Added: 38504 | |
2016-05-13 11:49 | c_schmitz | Relationship replaced | has duplicate 11156 |
2016-05-17 12:41 | c_schmitz | Note Added: 38610 | |
2016-05-17 12:41 | c_schmitz | Status | resolved => closed |
2016-05-18 12:17 | galmeida | Note Added: 38663 | |
2016-05-18 12:17 | galmeida | Status | closed => feedback |
2016-05-18 12:17 | galmeida | Resolution | fixed => reopened |
2016-05-18 12:17 | galmeida | File Added: CHttpException-4.zip | |
2016-05-25 21:47 | c_schmitz | Note Added: 38909 | |
2016-06-07 16:47 |
|
Note Added: 39294 | |
2016-06-07 16:47 |
|
Status | feedback => resolved |
2016-06-07 16:47 |
|
Resolution | reopened => no change required |
2016-06-07 16:48 |
|
Note Edited: 39294 | |
2016-06-13 12:27 | c_schmitz | Note Added: 39492 | |
2016-06-13 12:27 | c_schmitz | Status | resolved => closed |
2021-08-02 17:37 | guest | Bug heat | 18 => 22 |