View Issue Details

This bug affects 1 person(s).
 4
IDProjectCategoryView StatusLast Update
05117Bug reportsImport/Exportpublic2011-05-04 19:31
Reporterjadephoenix1988 Assigned Toc_schmitz  
PrioritynormalSeverityminor 
Status closedResolutionfixed 
Product Version1.90+ 
Fixed in Version1.91 
Summary05117: GetRandomID issue
Description

when calling cmdline_importsurvey with all necessary parameters it crashs in the line 1737 in importsurvey.php at getRandomID().

$newsid = rand(10000,99999); fixed it

TagsNo tags attached.
Bug heat4
Complete LimeSurvey version number (& build)9642
I will donate to the project if issue is resolvedNo
Browser
Database type & versionmysql
Server OS (if known)windows server 2008
Webserver software & version (if known)apache
PHP Versionphp 5.3.5

Users monitoring this issue

There are no users monitoring this issue.

Activities

c_schmitz

c_schmitz

2011-04-19 16:03

administrator   ~14846

The fix is not safe vs. duplicate IDs.

dionet

dionet

2011-04-19 20:20

reporter   ~14848

c_schmitz, this function is no longer included in LimeSurvey since revision 9648. In this context, it was replaced with GetNewSurveyID that works in a different way.

I can't reproduce the error in newer versions.

What should be done in this situation?

Thank you,
dionet

Issue History

Date Modified Username Field Change
2011-04-18 13:11 jadephoenix1988 New Issue
2011-04-19 16:03 c_schmitz Note Added: 14846
2011-04-19 16:04 c_schmitz Assigned To => dionet
2011-04-19 16:04 c_schmitz Status new => assigned
2011-04-19 20:20 dionet Note Added: 14848
2011-04-19 20:20 dionet Assigned To dionet => c_schmitz
2011-04-19 20:29 c_schmitz Status assigned => resolved
2011-04-19 20:29 c_schmitz Fixed in Version => 1.91
2011-04-19 20:29 c_schmitz Resolution open => fixed
2011-05-04 19:31 c_schmitz Status resolved => closed