View Issue Details

This issue affects 1 person(s).
 2
IDProjectCategoryView StatusLast Update
16242Bug reportsInstallationpublic2020-05-08 11:14
Reporterchris246 Assigned ToDenisChenu  
PrioritynoneSeverityminor 
Status closedResolutionno change required 
Product Version4.2.2 
Summary16242: Path routing not working for surveys
Description

When enabling path-routing, following [1], opening surveys using URLs with this format, fails: www.domain.tld/12345?lang=de
Manually changing the route to www.domain.tld/survey/index/sid/12345?lang=de and opening it works.

I suspect that somehow the short version is not rewritten, although I see the respective rule in application/config/routes.php

For opening the inactive survey, I used the link provided in the survey properties.

[1] https://manual.limesurvey.org/General_FAQ#How_can_I_remove_index.php_from_the_URL_path_to_get_a_shorter_URL

TagsNo tags attached.
Bug heat2
Complete LimeSurvey version number (& build)4.2.2+200504
I will donate to the project if issue is resolvedNo
Browser
Database type & versionPostgreSQL 11
Server OS (if known)Debian Linux 10
Webserver software & version (if known)nginx 1.14.2
PHP Version7.3.14-1~deb10u1

Users monitoring this issue

There are no users monitoring this issue.

Activities

DenisChenu

DenisChenu

2020-05-08 11:14

developer   ~57627

Server issue
master.sondages.pro/282267

And on my local ngynx :

[shnoulle@poledra ~]$ cat /etc/nginx/sites.d/limesurvey.local.conf
server {
    listen 80;
    server_name limesurvey.local;
    access_log /mnt/data/shnoulle/nginx/logs/access.log;
    error_log /mnt/data/shnoulle/nginx/logs/error.log;
    root /mnt/data/shnoulle/nginx/www;

    location / {
        index index.html index.htm index.php;
    }
    location /master/ {
        index index.html index.htm index.php;
    try_files $uri $uri/ /index.php?r=$uri&$args;
    if (!-e $request_filename){
        rewrite ^(.*)$ /master/index.php;
    }
    location ~ ^/master/(docs|framework|themes/\w+/views) {
        deny all;
    }
    location ~ ^/master/upload/surveys/.*/fu_[a-z0-9]*$ { 
        return 444;
    }   
    location ~ ^/master/(.*/)?\.+ {
        return 403;
    }
    location ~* /master/upload/.*\.(pl|cgi|py|pyc|pyo|phtml|sh|lua|php|php3|php4|php5|php6|pcgi|pcgi3|pcgi4|pcgi5|pcgi6|icn)$ 
    {
            return 444;
    }
    }

    location ~ \.php$ {
        include /etc/nginx/fastcgi_params;
        fastcgi_pass   unix:/run/php-fpm/www.sock;
        fastcgi_index index.php;
        fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
        fastcgi_read_timeout 600;
    }

}

Issue History

Date Modified Username Field Change
2020-05-07 17:56 chris246 New Issue
2020-05-08 11:14 DenisChenu Assigned To => DenisChenu
2020-05-08 11:14 DenisChenu Status new => closed
2020-05-08 11:14 DenisChenu Resolution open => no change required
2020-05-08 11:14 DenisChenu Note Added: 57627