Piwigo Bugtracker

Piwigo bug tracker has moved to Github

This bugtracker is kept to provide history on old issues.

View Issue Details Jump to Notes ] Issue History ] Print ]
IDProjectCategoryView StatusDate SubmittedLast Update
0002729Piwigonavigationpublic2012.08.23 00:572014.11.20 08:57
Assigned To 
PlatformDebianOSLinuxOS VersionSqueeze
Product Version2.4.3 
Target VersionFixed in Version 
Summary0002729: Bad Request with $conf['picture_url_style'] = 'id-file'
DescriptionIf one specifies
$conf['picture_url_style'] = 'id-file';
in their configuration file, navigation is broken on some pictures, clicking on the image link in the category leads to "Bad Request".
This seems to happen only when the file name contains a certain combination of hyphens and spaces.
Steps To ReproduceSet $conf['picture_url_style'] = 'id-file';
Upload a file named "Killer Whale Type B - sort of.jpg" or "Cretin des bois test - pour rire.jpg"

Example of (mal)formed URL :
http://album.fgv6.net/picture.php?/34-Killer%20Whale%20Type%20B%20-%20sort%20of/category/4-on_the_rrs_ernest_shackleton [^]
Additional InformationRe-uploading the file on a different name fixes the problem.
TagsNo tags attached.
Database engine and version
PHP version
Web serverApache 1.3.x
Attached Files

- Relationships

-  Notes
kubrick (reporter)
2012.08.26 21:41

parse_str($_SERVER['QUERY_STRING'], $_GET);
at the top of include/common.inc.php fixes the problem.

Something must be tampering with the $_GET variable before it arrives there because in the problematic cases $_GET is empty.
rvelices (developer)
2012.08.27 20:46

sorry, I cannot reproduce (tried Killer Whale Type B - sort of with your url style and it works on my server)
kubrick (reporter)
2012.08.28 12:46

Ok, that's very odd. I made a fresh install on MAMP, and I can't reproduce either.

On my server, where the problem occurs, it's even odder:
If I create a new file in piwigo's directory, let's say test.php and just have it to print_r($_GET), when I call /test.php?/1-Killer Whale Type B - sort of/category/1-test
I get:

Array ( [/1-Killer_Whale_Type_B_-_sort_of/category/1-test] => )


Now, it I do the same at the very top of picture.php, I get:


Why??? Any ideas?
kubrick (reporter)
2014.01.10 13:21

FYI I'm still having this bug, and I still need the parse_str work around with the latest version of piwigo...
kubrick (reporter)
2014.11.20 08:57

Still happening in 2.7.1

- Issue History
Date Modified Username Field Change
2012.08.23 00:57 kubrick New Issue
2012.08.23 00:57 kubrick browser => any
2012.08.23 00:57 kubrick Web server => Apache 1.3.x
2012.08.26 21:41 kubrick Note Added: 0006568
2012.08.27 20:46 rvelices Note Added: 0006577
2012.08.27 20:46 rvelices Status new => feedback
2012.08.28 12:46 kubrick Note Added: 0006581
2014.01.10 13:21 kubrick Note Added: 0007308
2014.11.20 08:57 kubrick Note Added: 0007716

Copyright © 2000 - 2019 MantisBT Team
Powered by Mantis Bugtracker