View Issue Details

This issue affects 1 person(s).
 4
IDProjectCategoryView StatusLast Update
11401Bug reportsOtherpublic2016-06-17 13:16
Reporterdavidbogner Assigned Toc_schmitz  
PrioritynoneSeverityminor 
Status closedResolutionno change required 
Product Version2.50.x 
Summary11401: Changing urlFormat in config.php from path to get does not work anymore
Description

I have to use URLs with the following format
index.php?sid=134475&134475X12X361=testwert123123&134475X12X366=2

The URL has to look like this, because the learning management system we are using can only pass url params in that format. (for example course id)

When I change config.php (urlformat path > get):

    'urlManager' => array(
        'urlFormat' => 'path',
        'rules' => require('routes.php'),
        'showScriptName' => true,
    ),

to

    'urlManager' => array(
        'urlFormat' => 'get',
        'rules' => require('routes.php'),
        'showScriptName' => true,
    ),

there is no possibility to login or fill out any survey anymore. Activating error log does not display any errors.

Steps To Reproduce

1) Edit config.php and change urlformat from path to get: 'urlFormat' => 'get'
2) Try to use the old URL format ind like ex.php?sid=123123123
3) Result: Survey is not loaded

TagsNo tags attached.
Bug heat4
Complete LimeSurvey version number (& build)160616
I will donate to the project if issue is resolvedYes
Browser
Database type & versionPostgreSQL
Server OS (if known)Debian 8
Webserver software & version (if known)Apache
PHP Version5.5

Users monitoring this issue

There are no users monitoring this issue.

Activities

c_schmitz

c_schmitz

2016-06-17 08:51

administrator   ~39650

The 'old' format? What was you previous version?

davidbogner

davidbogner

2016-06-17 09:24

reporter   ~39659

Concerning the old format: We started with 2.5, but I read in the documentation, that in previous version URL formatting was different.

https://manual.limesurvey.org/Workarounds:_Survey_behaviour#Prefilling_survey_answers_using_the_survey_URL

So the pattern ?paramenter=value&otherparam=value2 is the only url format that supports automatic url creation with values like courseid or course name in the learning management system moodle.

davidbogner

davidbogner

2016-06-17 13:08

reporter   ~39673

I think this issue can be closed. Using

http://www.example.com/index.php/survey/index/sid/712544/newtest/Y?712544X99X2151=gelb&712544X99X2152=12345

will do the trick.

Issue History

Date Modified Username Field Change
2016-06-16 17:14 davidbogner New Issue
2016-06-17 08:51 c_schmitz Note Added: 39650
2016-06-17 08:51 c_schmitz Assigned To => c_schmitz
2016-06-17 08:51 c_schmitz Status new => feedback
2016-06-17 09:24 davidbogner Note Added: 39659
2016-06-17 09:24 davidbogner Status feedback => assigned
2016-06-17 13:08 davidbogner Note Added: 39673
2016-06-17 13:16 c_schmitz Status assigned => closed
2016-06-17 13:16 c_schmitz Resolution open => no change required