View Issue Details

This issue affects 1 person(s).
 4
IDProjectCategoryView StatusLast Update
07667Bug reportsSurvey editingpublic2013-03-18 10:28
ReporterDenisChenu Assigned Tosammousa  
PrioritynormalSeverityminor 
Status closedResolutionfixed 
Summary07667: Unable to view plugins with 'showScriptName' => false,
Description

Whith 'showScriptName' => false, in config.php, link to plugin list show the the list of plugin directory.

Steps To Reproduce

Set
'urlManager' => array(
'urlFormat' => 'path',
'rules' => require('routes.php'),
'showScriptName' => false,
),
in config.php and test the plugin menu

Additional Information

Think best is to move plugin directory elsewhere (and protect access of this dir).

TagsNo tags attached.
Bug heat4
Complete LimeSurvey version number (& build)130316
I will donate to the project if issue is resolvedNo
Browsernot relevant
Database type & versionnot relevant
Server OS (if known)debian/linux
Webserver software & version (if known)apache
PHP VersionPHP Version 5.3
Git branch / Pull Request URL

Users monitoring this issue

There are no users monitoring this issue.

Activities

sammousa

sammousa

2013-03-18 08:22

reporter   ~24740

I cannot reproduce this, or I dont understand what you mean...

I don't get a directory listing... and if I would this would be because you did not correctly configure index.php as a default file to load when a directory path is entered.

DenisChenu

DenisChenu

2013-03-18 08:54

developer   ~24748

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

-> http://205.sondages.pro/plugins/
but http://205.sondages.pro/admin/authentication/sa/login is OK

sammousa

sammousa

2013-03-18 09:45

reporter   ~24751

Shnoulle, that is definitely a server misconfiguration...

The admin thing works because there is a directory that is named admin...

If you set showscriptname to false the USER is responsible for making sure url rewriting works properly.

DenisChenu

DenisChenu

2013-03-18 10:11

developer   ~24753

Need htacces modification for apache user

sammousa

sammousa

2013-03-18 10:13

reporter   ~24754

Fix committed to 2.05 branch: http://bugs.limesurvey.org/plugin.php?page=Source/view&id=11939

DenisChenu

DenisChenu

2013-03-18 10:24

developer   ~24757

Last edited: 2013-03-18 10:25

Fix work but why deactivate all directory ?
Just deactivate needed directory seem better for me.

Allow default user to show listing of their directory

htaccess:

if a directory or a file exists, use it directly

RewriteCond %{REQUEST_URI} ^/plugins/ [OR]
RewriteCond %{REQUEST_URI} ^/admin/ [OR]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
DenisChenu

DenisChenu

2013-03-18 10:28

developer   ~24758

Choosen to deactivate all directory by default.

TODO : some docs ?

Related Changesets

LimeSurvey: 2.05 4d7eae73

2013-03-18 10:12

sammousa


Details Diff
Fixed issue 07667
Dev Changed .htaccess to rewrite all none-existent file paths.
Dev Added index.html to prevent directory listing from being shown.
Affected Issues
07667
mod - .htaccess Diff File
add - plugins/index.html Diff File

Issue History

Date Modified Username Field Change
2013-03-16 12:48 DenisChenu New Issue
2013-03-16 13:16 c_schmitz Project Bug reports => @10@
2013-03-17 17:44 c_schmitz Assigned To => sammousa
2013-03-17 17:44 c_schmitz Status new => assigned
2013-03-18 08:22 sammousa Note Added: 24740
2013-03-18 08:22 sammousa Status assigned => feedback
2013-03-18 08:54 DenisChenu Note Added: 24748
2013-03-18 08:54 DenisChenu Status feedback => assigned
2013-03-18 09:45 sammousa Note Added: 24751
2013-03-18 09:45 sammousa Status assigned => resolved
2013-03-18 09:45 sammousa Resolution open => won't fix
2013-03-18 10:11 DenisChenu Assigned To sammousa => DenisChenu
2013-03-18 10:11 DenisChenu Note Added: 24753
2013-03-18 10:11 DenisChenu Status resolved => feedback
2013-03-18 10:11 DenisChenu Resolution won't fix => reopened
2013-03-18 10:11 DenisChenu Status feedback => assigned
2013-03-18 10:13 sammousa Changeset attached => LimeSurvey 2.05 4d7eae73
2013-03-18 10:13 sammousa Note Added: 24754
2013-03-18 10:13 sammousa Assigned To DenisChenu => sammousa
2013-03-18 10:13 sammousa Status assigned => resolved
2013-03-18 10:13 sammousa Resolution reopened => fixed
2013-03-18 10:15 DenisChenu Status resolved => assigned
2013-03-18 10:15 DenisChenu Status assigned => closed
2013-03-18 10:23 DenisChenu Assigned To sammousa => DenisChenu
2013-03-18 10:23 DenisChenu Status closed => feedback
2013-03-18 10:23 DenisChenu Resolution fixed => reopened
2013-03-18 10:24 DenisChenu Note Added: 24757
2013-03-18 10:24 DenisChenu Status feedback => assigned
2013-03-18 10:25 DenisChenu Note Edited: 24757
2013-03-18 10:28 DenisChenu Note Added: 24758
2013-03-18 10:28 DenisChenu Status assigned => closed
2013-03-18 10:28 DenisChenu Assigned To DenisChenu => sammousa
2013-03-18 10:28 DenisChenu Resolution reopened => fixed
2019-11-01 17:25 c_schmitz Category Survey design => Survey editing