View Issue Details

This bug affects 1 person(s).
 6
IDProjectCategoryView StatusLast Update
13075Bug reports_ Unknownpublic2018-01-15 15:35
ReporterTommyB Assigned ToLouisGac 
PrioritynoneSeveritypartial_block 
Status closedResolutionwon't fix 
Product Version2.7x.x 
Summary13075: URL-encoded Backslash character in some paths under tmp/assets/xxx with Firefox 46 and lower
Description

After a manual update to 2.72.6 suddenly all surveys and the template editor in the backend failed to show the correct template.

So I checked with the firefox debugger and in the web server log files and before the update, the requests looked like this:

[18/Dec/2017:10:41:55 +0100] "GET /survey/tmp/assets/81b731fd/scripts/template.js HTTP/1.1" 304

....after the update though, there was an url-encoded backslash in the path, which results in a 404 error:

[18/Dec/2017:10:52:40 +0100] "GET /survey/tmp/assets/c3527dc8/scripts%5Ctemplate.js HTTP/1.1" 404
[18/Dec/2017:10:55:47 +0100] "GET /survey/tmp/assets/c3527dc8/css%5Ctemplate.css HTTP/1.1" 404

The weird thing is, some of the assets are loaded properly:

[18/Dec/2017:10:55:47 +0100] "GET /survey/tmp/assets/2bbf3928/jquery.ui.touch-punch.min.js HTTP/1.1" 200
[18/Dec/2017:10:55:47 +0100] "GET /survey/tmp/assets/f8e31e16/css/font-awesome.min.css HTTP/1.1" 200

After some research I found out that this seems to be different behaviour of Firefox compared to other browsers like IE or Chrome) which both replace the backslash with a forward slash before GETting the resource.

Starting with Firefox 47, the browser replaces the "\" with a forward slash like other browsers.

My suspect this is caused by wrong use of the PHP DIRECTORY_SEPARATOR global...?

Additional Information

Here are the first lines of the HTML source, you can see, some of the resources contain a "\" instead of a "/" (marked with <!-- HERE --!>):

<!DOCTYPE html>
<html lang="de">
<head>
<!-- startpage.pstl -->
<meta http-equiv="content-type" content="text/html; charset=UTF-8" />
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<link rel="stylesheet" type="text/css" href="/tmp/assets/f8e31e16/css/font-awesome.min.css" />

<!-- HERE --!>
<link rel="stylesheet" type="text/css" href="/tmp/assets/c3527dc8/css\jquery-ui-custom.css" />
<link rel="stylesheet" type="text/css" href="/tmp/assets/c3527dc8/css\bootstrap-slider.css" />
<link rel="stylesheet" type="text/css" href="/tmp/assets/c3527dc8/css\awesome-bootstrap-checkbox\awesome-bootstrap-checkbox.css" />
<link rel="stylesheet" type="text/css" href="/tmp/assets/c3527dc8/css\flat_and_modern.css" />
<link rel="stylesheet" type="text/css" href="/tmp/assets/c3527dc8/css\template.css" />

<link rel="stylesheet" type="text/css" href="/styles-public/expressions.css" />
<script type="text/javascript" src="/tmp/assets/f7ce9911/decimal.js"></script>
<script type="text/javascript" src="/tmp/assets/d088cf25/jquery-2.2.4.min.js"></script>
<script type="text/javascript" src="/tmp/assets/e21fb731/js/jquery-ui-1.11.4.min.js"></script>
<script type="text/javascript" src="/tmp/assets/2bbf3928/jquery.ui.touch-punch.min.js"></script>

<!-- HERE --!>
<script type="text/javascript" src="/tmp/assets/c3527dc8/scripts\template.js"></script>
<script type="text/javascript" src="/tmp/assets/c3527dc8/scripts\bootstrap-slider.js"></script>

<script type="text/javascript" src="/scripts/survey_runtime.js"></script>
<script type="text/javascript" src="/scripts/admin/expression.js"></script>
<script type="text/javascript" src="/scripts/expressions/em_javascript.js"></script>
<script type="text/javascript">
/<![CDATA[/
LSvar={"bFixNumAuto":1,"bNumRealValue":0,"sLEMradix":"."};
/]]>/
</script>

TagsNo tags attached.
Bug heat6
Complete LimeSurvey version number (& build)2.72.6+171207
I will donate to the project if issue is resolvedNo
BrowserFirefox ESR 45.4.0
Database type & versionMySql 5.7
Server OS (if known)Windows 2012 R2
Webserver software & version (if known)Apache 2.4.20 (Win32)
PHP Version7.0.3

Users monitoring this issue

There are no users monitoring this issue.

Activities

vkuzmin

vkuzmin

2017-12-22 12:52

reporter   ~45387

This problem appear between 171020 and 171207 versions

LouisGac

LouisGac

2018-01-15 11:01

developer   ~45794

3.0 out

TommyB

TommyB

2018-01-15 13:36

reporter   ~45807

Sorry, but what does "3.0 out " mean?

Is this fixed in 3.0?

LouisGac

LouisGac

2018-01-15 13:55

developer   ~45811

yep

TommyB

TommyB

2018-01-15 15:35

reporter   ~45819

Great! Thx. :-)

Issue History

Date Modified Username Field Change
2017-12-19 16:07 TommyB New Issue
2017-12-22 12:52 vkuzmin Note Added: 45387
2018-01-15 11:01 LouisGac Assigned To => LouisGac
2018-01-15 11:01 LouisGac Status new => closed
2018-01-15 11:01 LouisGac Resolution open => won't fix
2018-01-15 11:01 LouisGac Note Added: 45794
2018-01-15 13:36 TommyB Note Added: 45807
2018-01-15 13:55 LouisGac Note Added: 45811
2018-01-15 15:35 TommyB Note Added: 45819