View Issue Details
| ID | Project | Category | View Status | Date Submitted | Last Update |
|---|---|---|---|---|---|
| 05675 | Bug reports | Other | public | 2012-01-19 12:06 | 2012-03-14 21:08 |
| Reporter | Assigned To | c_schmitz | |||
| Priority | normal | Severity | minor | ||
| Status | closed | Resolution | fixed | ||
| Product Version | 1.92RC2 | ||||
| Fixed in Version | 1.92RC4 | ||||
| Summary | 05675: Warning when using wrong formated validation | ||||
| Description | The EM seems to throw a warning if you enter "abcde" as a validation,for example for a short text question and then test the survey. Warning: preg_match() [function.preg-match]: Delimiter must not be alphanumeric or backslash in D:\Apache\htdocs\limesurveyEM\classes\eval\ExpressionManager.php on line 3146 | ||||
| Steps To Reproduce | Import the question from the attachment and try to test the survey. | ||||
| Tags | No tags attached. | ||||
| Attached Files | |||||
| Bug heat | 4 | ||||
| Complete LimeSurvey version number (& build) | 12106 | ||||
| I will donate to the project if issue is resolved | No | ||||
| Browser | Mozilla Firefox 9.0 | ||||
| Database type & version | MySQL Community Server 5.5.8 | ||||
| Server OS (if known) | Windows Server 2008 R2 Standard | ||||
| Webserver software & version (if known) | Apache 2.2.17 | ||||
| PHP Version | 5.2.17 | ||||
| Git branch / Pull Request URL | |||||
|
Carsten- This is a limitation of preg in all versions. LS would need to validate the preg equation on save and report an error if it is invalid. I don't have time for this one. /Tom |
|
|
Carsten- Thanks for tackling this. However, wouldn't it be better to show an error message somewhere (like on the Question view page) if there is a preg validation error? Otherwise the end-user may see a run-time error that the author does not see. /Tom |
|
|
It is a warning which cannot be catched by an exception handler - only muted (which I did). There is also no easy way to validate the regex on save. |
|
|
1.92RC4 released |
|
|
LimeSurvey: Yii 7a00bf54 2012-01-30 17:47 Details Diff |
Fixed issue 05675: Warning when using wrong formatted validation git-svn-id: file:///Users/Shitiz/Downloads/lssvn/source/limesurvey_yii@12263 b72ed6b6-b9f8-46b5-92b4-906544132732 |
Affected Issues 05675 |
|
| mod - application/helpers/expressions/em_core_helper.php | Diff File | ||
| Date Modified | Username | Field | Change |
|---|---|---|---|
| 2012-01-19 12:06 |
|
New Issue | |
| 2012-01-19 12:06 |
|
File Added: limesurvey_question_2123.lsq | |
| 2012-01-19 16:35 | Mazi | Assigned To | => TMSWhite |
| 2012-01-19 16:35 | Mazi | Status | new => assigned |
| 2012-01-20 15:38 | TMSWhite | Note Added: 16847 | |
| 2012-01-20 15:38 | TMSWhite | Assigned To | TMSWhite => c_schmitz |
| 2012-01-20 15:38 | TMSWhite | Status | assigned => feedback |
| 2012-01-31 01:43 | c_schmitz | Status | feedback => assigned |
| 2012-01-31 01:46 | c_schmitz | Status | assigned => resolved |
| 2012-01-31 01:46 | c_schmitz | Fixed in Version | => 1.92RC4 |
| 2012-01-31 01:46 | c_schmitz | Resolution | open => fixed |
| 2012-01-31 03:02 | TMSWhite | Note Added: 17098 | |
| 2012-01-31 09:33 | c_schmitz | Note Added: 17100 | |
| 2012-01-31 09:34 | c_schmitz | Note Edited: 17100 | |
| 2012-01-31 09:35 | c_schmitz | Note Edited: 17100 | |
| 2012-02-14 14:10 | c_schmitz | Note Added: 17437 | |
| 2012-02-14 14:10 | c_schmitz | Status | resolved => closed |
| 2012-03-14 21:08 | c_schmitz | Changeset attached | => Import 2012-03-09 13:30:34 Yii 7a00bf54 |