View Issue Details
ID | Project | Category | View Status | Date Submitted | Last Update |
---|---|---|---|---|---|
05179 | Bug reports | Survey editing | public | 2011-05-19 12:25 | 2011-06-08 14:14 |
Reporter | Tesla | Assigned To | c_schmitz | ||
Priority | normal | Severity | minor | ||
Status | closed | Resolution | fixed | ||
Product Version | 1.91 | ||||
Fixed in Version | 1.91+ | ||||
Summary | 05179: Error appears in End URL with an INSERTANS entry | ||||
Description | When using an INSERTANS in an end URL, the URL returns an error instead of the required data. | ||||
Steps To Reproduce | e.g. in the attached simple 3 question survey, I try to return the user name that is entered in question 1 with an INSERTANS in the end URL as | ||||
Additional Information | The end URL INSERTANS data is correctly echoed on my local (non web) Windows WAMP server, but not on my Web Host server (Linux based), nor on V1.9 running on http://lsdemo.limequery.com/ | ||||
Tags | No tags attached. | ||||
Attached Files | limesurvey_survey_17623 INSERTANS in URL Error.lss (15,694 bytes)
<?xml version="1.0" encoding="UTF-8"?> <document> <LimeSurveyDocType>Survey</LimeSurveyDocType> <DBVersion>143</DBVersion> <languages> <language>en</language> </languages> <groups> <fields> <fieldname>gid</fieldname> <fieldname>sid</fieldname> <fieldname>group_name</fieldname> <fieldname>group_order</fieldname> <fieldname>description</fieldname> <fieldname>language</fieldname> </fields> <rows> <row> <gid><![CDATA[19]]></gid> <sid><![CDATA[17623]]></sid> <group_name><![CDATA[General]]></group_name> <group_order><![CDATA[0]]></group_order> <description><![CDATA[]]></description> <language><![CDATA[en]]></language> </row> </rows> </groups> <questions> <fields> <fieldname>qid</fieldname> <fieldname>sid</fieldname> <fieldname>gid</fieldname> <fieldname>type</fieldname> <fieldname>title</fieldname> <fieldname>question</fieldname> <fieldname>preg</fieldname> <fieldname>help</fieldname> <fieldname>other</fieldname> <fieldname>mandatory</fieldname> <fieldname>question_order</fieldname> <fieldname>language</fieldname> <fieldname>parent_qid</fieldname> <fieldname>scale_id</fieldname> <fieldname>same_default</fieldname> </fields> <rows> <row> <qid><![CDATA[61]]></qid> <sid><![CDATA[17623]]></sid> <gid><![CDATA[19]]></gid> <type><![CDATA[S]]></type> <title><![CDATA[1]]></title> <question><![CDATA[What is your name?]]></question> <preg><![CDATA[]]></preg> <help><![CDATA[]]></help> <other><![CDATA[N]]></other> <mandatory><![CDATA[Y]]></mandatory> <question_order><![CDATA[0]]></question_order> <language><![CDATA[en]]></language> <parent_qid><![CDATA[0]]></parent_qid> <scale_id><![CDATA[0]]></scale_id> <same_default><![CDATA[0]]></same_default> </row> <row> <qid><![CDATA[62]]></qid> <sid><![CDATA[17623]]></sid> <gid><![CDATA[19]]></gid> <type><![CDATA[G]]></type> <title><![CDATA[2]]></title> <question><![CDATA[Hello {INSERTANS:17623X19X61}, what is your gender?]]></question> <preg><![CDATA[]]></preg> <help><![CDATA[]]></help> <other><![CDATA[N]]></other> <mandatory><![CDATA[Y]]></mandatory> <question_order><![CDATA[1]]></question_order> <language><![CDATA[en]]></language> <parent_qid><![CDATA[0]]></parent_qid> <scale_id><![CDATA[0]]></scale_id> <same_default><![CDATA[0]]></same_default> </row> <row> <qid><![CDATA[63]]></qid> <sid><![CDATA[17623]]></sid> <gid><![CDATA[19]]></gid> <type><![CDATA[N]]></type> <title><![CDATA[3]]></title> <question><![CDATA[What is your age {INSERTANS:17623X19X61} ?]]></question> <preg><![CDATA[]]></preg> <help><![CDATA[]]></help> <other><![CDATA[N]]></other> <mandatory><![CDATA[Y]]></mandatory> <question_order><![CDATA[2]]></question_order> <language><![CDATA[en]]></language> <parent_qid><![CDATA[0]]></parent_qid> <scale_id><![CDATA[0]]></scale_id> <same_default><![CDATA[0]]></same_default> </row> </rows> </questions> <question_attributes> <fields> <fieldname>qid</fieldname> <fieldname>attribute</fieldname> <fieldname>value</fieldname> </fields> <rows> <row> <qid><![CDATA[61]]></qid> <attribute><![CDATA[display_rows]]></attribute> <value><![CDATA[]]></value> </row> <row> <qid><![CDATA[61]]></qid> <attribute><![CDATA[hidden]]></attribute> <value><![CDATA[0]]></value> </row> <row> <qid><![CDATA[61]]></qid> <attribute><![CDATA[maximum_chars]]></attribute> <value><![CDATA[]]></value> </row> <row> <qid><![CDATA[61]]></qid> <attribute><![CDATA[numbers_only]]></attribute> <value><![CDATA[0]]></value> </row> <row> <qid><![CDATA[61]]></qid> <attribute><![CDATA[page_break]]></attribute> <value><![CDATA[0]]></value> </row> <row> <qid><![CDATA[61]]></qid> <attribute><![CDATA[prefix]]></attribute> <value><![CDATA[]]></value> </row> <row> <qid><![CDATA[61]]></qid> <attribute><![CDATA[suffix]]></attribute> <value><![CDATA[]]></value> </row> <row> <qid><![CDATA[61]]></qid> <attribute><![CDATA[text_input_width]]></attribute> <value><![CDATA[]]></value> </row> <row> <qid><![CDATA[61]]></qid> <attribute><![CDATA[time_limit]]></attribute> <value><![CDATA[]]></value> </row> <row> <qid><![CDATA[61]]></qid> <attribute><![CDATA[time_limit_action]]></attribute> <value><![CDATA[1]]></value> </row> <row> <qid><![CDATA[61]]></qid> <attribute><![CDATA[time_limit_countdown_message]]></attribute> <value><![CDATA[]]></value> </row> <row> <qid><![CDATA[61]]></qid> <attribute><![CDATA[time_limit_disable_next]]></attribute> <value><![CDATA[0]]></value> </row> <row> <qid><![CDATA[61]]></qid> <attribute><![CDATA[time_limit_disable_prev]]></attribute> <value><![CDATA[0]]></value> </row> <row> <qid><![CDATA[61]]></qid> <attribute><![CDATA[time_limit_message]]></attribute> <value><![CDATA[]]></value> </row> <row> <qid><![CDATA[61]]></qid> <attribute><![CDATA[time_limit_message_delay]]></attribute> <value><![CDATA[]]></value> </row> <row> <qid><![CDATA[61]]></qid> <attribute><![CDATA[time_limit_message_style]]></attribute> <value><![CDATA[]]></value> </row> <row> <qid><![CDATA[61]]></qid> <attribute><![CDATA[time_limit_timer_style]]></attribute> <value><![CDATA[]]></value> </row> <row> <qid><![CDATA[61]]></qid> <attribute><![CDATA[time_limit_warning]]></attribute> <value><![CDATA[]]></value> </row> <row> <qid><![CDATA[61]]></qid> <attribute><![CDATA[time_limit_warning_2]]></attribute> <value><![CDATA[]]></value> </row> <row> <qid><![CDATA[61]]></qid> <attribute><![CDATA[time_limit_warning_2_display_time]]></attribute> <value><![CDATA[]]></value> </row> <row> <qid><![CDATA[61]]></qid> <attribute><![CDATA[time_limit_warning_2_message]]></attribute> <value><![CDATA[]]></value> </row> <row> <qid><![CDATA[61]]></qid> <attribute><![CDATA[time_limit_warning_2_style]]></attribute> <value><![CDATA[]]></value> </row> <row> <qid><![CDATA[61]]></qid> <attribute><![CDATA[time_limit_warning_display_time]]></attribute> <value><![CDATA[]]></value> </row> <row> <qid><![CDATA[61]]></qid> <attribute><![CDATA[time_limit_warning_message]]></attribute> <value><![CDATA[]]></value> </row> <row> <qid><![CDATA[61]]></qid> <attribute><![CDATA[time_limit_warning_style]]></attribute> <value><![CDATA[]]></value> </row> <row> <qid><![CDATA[62]]></qid> <attribute><![CDATA[display_columns]]></attribute> <value><![CDATA[1]]></value> </row> <row> <qid><![CDATA[62]]></qid> <attribute><![CDATA[hidden]]></attribute> <value><![CDATA[0]]></value> </row> <row> <qid><![CDATA[62]]></qid> <attribute><![CDATA[page_break]]></attribute> <value><![CDATA[0]]></value> </row> <row> <qid><![CDATA[62]]></qid> <attribute><![CDATA[public_statistics]]></attribute> <value><![CDATA[0]]></value> </row> <row> <qid><![CDATA[62]]></qid> <attribute><![CDATA[scale_export]]></attribute> <value><![CDATA[0]]></value> </row> <row> <qid><![CDATA[63]]></qid> <attribute><![CDATA[hidden]]></attribute> <value><![CDATA[0]]></value> </row> <row> <qid><![CDATA[63]]></qid> <attribute><![CDATA[hide_tip]]></attribute> <value><![CDATA[0]]></value> </row> <row> <qid><![CDATA[63]]></qid> <attribute><![CDATA[maximum_chars]]></attribute> <value><![CDATA[]]></value> </row> <row> <qid><![CDATA[63]]></qid> <attribute><![CDATA[page_break]]></attribute> <value><![CDATA[0]]></value> </row> <row> <qid><![CDATA[63]]></qid> <attribute><![CDATA[prefix]]></attribute> <value><![CDATA[]]></value> </row> <row> <qid><![CDATA[63]]></qid> <attribute><![CDATA[public_statistics]]></attribute> <value><![CDATA[0]]></value> </row> <row> <qid><![CDATA[63]]></qid> <attribute><![CDATA[suffix]]></attribute> <value><![CDATA[]]></value> </row> <row> <qid><![CDATA[63]]></qid> <attribute><![CDATA[text_input_width]]></attribute> <value><![CDATA[]]></value> </row> </rows> </question_attributes> <surveys> <fields> <fieldname>sid</fieldname> <fieldname>admin</fieldname> <fieldname>expires</fieldname> <fieldname>startdate</fieldname> <fieldname>adminemail</fieldname> <fieldname>private</fieldname> <fieldname>faxto</fieldname> <fieldname>format</fieldname> <fieldname>template</fieldname> <fieldname>language</fieldname> <fieldname>additional_languages</fieldname> <fieldname>datestamp</fieldname> <fieldname>usecookie</fieldname> <fieldname>notification</fieldname> <fieldname>allowregister</fieldname> <fieldname>allowsave</fieldname> <fieldname>autonumber_start</fieldname> <fieldname>autoredirect</fieldname> <fieldname>allowprev</fieldname> <fieldname>printanswers</fieldname> <fieldname>ipaddr</fieldname> <fieldname>refurl</fieldname> <fieldname>publicstatistics</fieldname> <fieldname>publicgraphs</fieldname> <fieldname>listpublic</fieldname> <fieldname>htmlemail</fieldname> <fieldname>tokenanswerspersistence</fieldname> <fieldname>assessments</fieldname> <fieldname>usecaptcha</fieldname> <fieldname>usetokens</fieldname> <fieldname>bounce_email</fieldname> <fieldname>attributedescriptions</fieldname> <fieldname>emailresponseto</fieldname> <fieldname>tokenlength</fieldname> </fields> <rows> <row> <sid><![CDATA[17623]]></sid> <admin><![CDATA[Your Name]]></admin> <expires><![CDATA[]]></expires> <startdate><![CDATA[]]></startdate> <adminemail><![CDATA[nobody@mail.com]]></adminemail> <private><![CDATA[Y]]></private> <faxto><![CDATA[]]></faxto> <format><![CDATA[S]]></format> <template><![CDATA[Kopie_von_limespired]]></template> <language><![CDATA[en]]></language> <additional_languages><![CDATA[]]></additional_languages> <datestamp><![CDATA[N]]></datestamp> <usecookie><![CDATA[N]]></usecookie> <notification><![CDATA[0]]></notification> <allowregister><![CDATA[N]]></allowregister> <allowsave><![CDATA[Y]]></allowsave> <autonumber_start><![CDATA[0]]></autonumber_start> <autoredirect><![CDATA[N]]></autoredirect> <allowprev><![CDATA[Y]]></allowprev> <printanswers><![CDATA[N]]></printanswers> <ipaddr><![CDATA[N]]></ipaddr> <refurl><![CDATA[N]]></refurl> <publicstatistics><![CDATA[N]]></publicstatistics> <publicgraphs><![CDATA[N]]></publicgraphs> <listpublic><![CDATA[N]]></listpublic> <htmlemail><![CDATA[Y]]></htmlemail> <tokenanswerspersistence><![CDATA[N]]></tokenanswerspersistence> <assessments><![CDATA[N]]></assessments> <usecaptcha><![CDATA[D]]></usecaptcha> <usetokens><![CDATA[N]]></usetokens> <bounce_email><![CDATA[nobody@mail.com]]></bounce_email> <attributedescriptions><![CDATA[]]></attributedescriptions> <emailresponseto><![CDATA[]]></emailresponseto> <tokenlength><![CDATA[15]]></tokenlength> </row> </rows> </surveys> <surveys_languagesettings> <fields> <fieldname>surveyls_survey_id</fieldname> <fieldname>surveyls_language</fieldname> <fieldname>surveyls_title</fieldname> <fieldname>surveyls_description</fieldname> <fieldname>surveyls_welcometext</fieldname> <fieldname>surveyls_endtext</fieldname> <fieldname>surveyls_url</fieldname> <fieldname>surveyls_urldescription</fieldname> <fieldname>surveyls_email_invite_subj</fieldname> <fieldname>surveyls_email_invite</fieldname> <fieldname>surveyls_email_remind_subj</fieldname> <fieldname>surveyls_email_remind</fieldname> <fieldname>surveyls_email_register_subj</fieldname> <fieldname>surveyls_email_register</fieldname> <fieldname>surveyls_email_confirm_subj</fieldname> <fieldname>surveyls_email_confirm</fieldname> <fieldname>surveyls_dateformat</fieldname> </fields> <rows> <row> <surveyls_survey_id><![CDATA[17623]]></surveyls_survey_id> <surveyls_language><![CDATA[en]]></surveyls_language> <surveyls_title><![CDATA[Test Survey]]></surveyls_title> <surveyls_description><![CDATA[]]></surveyls_description> <surveyls_welcometext><![CDATA[]]></surveyls_welcometext> <surveyls_endtext><![CDATA[]]></surveyls_endtext> <surveyls_url><![CDATA[http://www.somewhere.org.au/limesurvey/testurl.php?var1={INSERTANS:17623X19X61}&var2={SID}&var3={SAVEDID}]]></surveyls_url> <surveyls_urldescription><![CDATA[]]></surveyls_urldescription> <surveyls_email_invite_subj><![CDATA[Invitation to participate in survey]]></surveyls_email_invite_subj> <surveyls_email_invite><![CDATA[Dear {FIRSTNAME},<br /><br />You have been invited to participate in a survey.<br /><br />The survey is titled:<br />"{SURVEYNAME}"<br /><br />"{SURVEYDESCRIPTION}"<br /><br />To participate, please click on the link below.<br /><br />Sincerely,<br /><br />{ADMINNAME} ({ADMINEMAIL})<br /><br />----------------------------------------------<br />Click here to do the survey:<br />{SURVEYURL}<br /><br />If you do not want to participate in this survey and don't want to receive any more invitations please click the following link:<br />{OPTOUTURL}]]></surveyls_email_invite> <surveyls_email_remind_subj><![CDATA[Reminder to participate in survey]]></surveyls_email_remind_subj> <surveyls_email_remind><![CDATA[Dear {FIRSTNAME},<br /><br />Recently we invited you to participate in a survey.<br /><br />We note that you have not yet completed the survey, and wish to remind you that the survey is still available should you wish to take part.<br /><br />The survey is titled:<br />"{SURVEYNAME}"<br /><br />"{SURVEYDESCRIPTION}"<br /><br />To participate, please click on the link below.<br /><br />Sincerely,<br /><br />{ADMINNAME} ({ADMINEMAIL})<br /><br />----------------------------------------------<br />Click here to do the survey:<br />{SURVEYURL}<br /><br />If you do not want to participate in this survey and don't want to receive any more invitations please click the following link:<br />{OPTOUTURL}]]></surveyls_email_remind> <surveyls_email_register_subj><![CDATA[Survey registration confirmation]]></surveyls_email_register_subj> <surveyls_email_register><![CDATA[Dear {FIRSTNAME},<br /><br />You, or someone using your email address, have registered to participate in an online survey titled {SURVEYNAME}.<br /><br />To complete this survey, click on the following URL:<br /><br />{SURVEYURL}<br /><br />If you have any questions about this survey, or if you did not register to participate and believe this email is in error, please contact {ADMINNAME} at {ADMINEMAIL}.]]></surveyls_email_register> <surveyls_email_confirm_subj><![CDATA[Confirmation of completed survey]]></surveyls_email_confirm_subj> <surveyls_email_confirm><![CDATA[Dear {FIRSTNAME},<br /><br />This email is to confirm that you have completed the survey titled {SURVEYNAME} and your response has been saved. Thank you for participating.<br /><br />If you have any further questions about this email, please contact {ADMINNAME} at {ADMINEMAIL}.<br /><br />Sincerely,<br /><br />{ADMINNAME}]]></surveyls_email_confirm> <surveyls_dateformat><![CDATA[1]]></surveyls_dateformat> </row> </rows> </surveys_languagesettings> </document> | ||||
Bug heat | 6 | ||||
Complete LimeSurvey version number (& build) | 10062 | ||||
I will donate to the project if issue is resolved | No | ||||
Browser | IE8 | ||||
Database type & version | MySQL client version: 5.0.75 | ||||
Server OS (if known) | Linux | ||||
Webserver software & version (if known) | Apache/2.2.11 (Ubuntu) | ||||
PHP Version | 5.2.6 | ||||
You are aware that if you upload the survey to a different installation that the GID and QID is changing and you have to adjust the INSERTANS accordingly? |
|
Yes, I am aware of that thanks. I actually made the uploaded test survey from scratch on each test platform and adjusted SID, GID & QID in INSERTANS accordingly. Also on my test and host servers I have looked at the SQLdB via phpmyadmin and verified the INSERTANS for the relevant entry and the expected data was saved. |
|
Fixed in rev 10128 |
|
New 1.91+ version released. |
|
I have installed 1.91 Build 10168 and the original error issue still occurs. I had this previosly flagged in the Forum as a design issue and another user has confirmed the same problem. However, he changed the status of "Participants may print answers" to ON and the correct answer data then appears in the end URL as expected. I have confirmed this behaviour. The other person's suggestion is that the session is probably closing prematurely (and the INSERTANS answer probably needs to be fetched back from SQL and it doesn't get completed properly?). |
|
Tesla, can you import your test survey and tell me what you think does not work in it? |
|
Yes, I have the same problem. The {INSERRTANS} placeholder doesn't work in the end-url. e.g.: as mentioned, if you change the status of "Participants may print answers" to YES it will show you the link. unless you choose "Automatically load URL when survey complete" -> YES. then it's still broken but another way: |
|
I have uploaded a doc with some more detail using a simple example. Note that (as described in the doc), the behaviour is slightly different with a real URL reporting into a browser. The proper INSERTANS result is not echoed. |
|
Thank you Tesla, but sadly I cannot reproduce any of the issue you are are describing, no matter if the survey is active or inactive, or in group-by-group or question-by-question mode. Everything is replaced just fine here. |
|
For some reason this is only reproducable on Linux, weird, heh? |
|
It really was a Linux-only error. Fixed in rev 10227. |
|
New version released. |
|
Date Modified | Username | Field | Change |
---|---|---|---|
2011-05-19 12:25 | Tesla | New Issue | |
2011-05-19 12:25 | Tesla | File Added: limesurvey_survey_17623 INSERTANS in URL Error.lss | |
2011-05-19 13:18 | c_schmitz | Note Added: 15069 | |
2011-05-19 13:18 | c_schmitz | Note Edited: 15069 | |
2011-05-19 13:18 | c_schmitz | Assigned To | => c_schmitz |
2011-05-19 13:18 | c_schmitz | Status | new => feedback |
2011-05-20 05:04 | Tesla | Note Added: 15078 | |
2011-05-20 05:04 | Tesla | Status | feedback => assigned |
2011-05-27 07:02 | c_schmitz | Note Added: 15133 | |
2011-05-27 07:02 | c_schmitz | Status | assigned => resolved |
2011-05-27 07:02 | c_schmitz | Resolution | open => fixed |
2011-06-01 23:44 | c_schmitz | Note Added: 15243 | |
2011-06-01 23:44 | c_schmitz | Status | resolved => closed |
2011-06-06 16:07 | Tesla | Note Added: 15327 | |
2011-06-06 16:07 | Tesla | Status | closed => feedback |
2011-06-06 16:07 | Tesla | Resolution | fixed => reopened |
2011-06-06 22:32 | c_schmitz | Note Added: 15344 | |
2011-06-07 13:08 | oliver_hb | Note Added: 15348 | |
2011-06-07 13:10 | Tesla | File Added: End URL Problem Description.doc | |
2011-06-07 13:19 | Tesla | Note Added: 15349 | |
2011-06-07 13:19 | Tesla | Status | feedback => assigned |
2011-06-07 15:35 | c_schmitz | Note Added: 15352 | |
2011-06-07 21:45 | c_schmitz | Note Added: 15360 | |
2011-06-08 00:24 | c_schmitz | Note Added: 15361 | |
2011-06-08 00:24 | c_schmitz | Status | assigned => resolved |
2011-06-08 00:24 | c_schmitz | Fixed in Version | => 1.91+ |
2011-06-08 00:24 | c_schmitz | Resolution | reopened => fixed |
2011-06-08 00:24 | c_schmitz | Note Edited: 15361 | |
2011-06-08 14:14 | c_schmitz | Note Added: 15372 | |
2011-06-08 14:14 | c_schmitz | Status | resolved => closed |
2019-11-01 17:25 | c_schmitz | Category | Survey design => Survey editing |