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
0002758Piwigosynchronizationpublic2012.10.02 09:292014.10.31 08:41
Reportergospogied 
Assigned To 
PrioritynormalSeveritytweakReproducibilityalways
StatusnewResolutionopen 
PlatformLinuxOSUbuntuOS Version12.04
Product Version2.4.4 
Target VersionFixed in Version 
Summary0002758: Unable to synchronize directories starting with special names
Descriptionbasename() is locale dependent so before it we must setlocale for special strings.
Steps To Reproduce1. Edit
change in file include/config_default.inc.php line 743
 $conf['sync_chars_regex'] = '/^[a-zA-Z0-9-_.]+$/';
to
 $conf['sync_chars_regex'] = '/^[a-zA-Z??ó????????Ó??????0-9-_. (),%+-~#@!*]+$/';
2. Create dir:
mkdir /PATH/TO/PIWIGO/galleries/?uk /PATH/TO/PIWIGO/galleries/luk /PATH/TO/PIWIGO/galleries/ku?
3. Synchronize.
Now You can see following albums in piwigo: uk luk ku?
So it ignores special characters in first positions.

The problem is in admin/site_update.php line 210.
To solve it you must add one line before it, for my language it is:

setlocale(LC_ALL, 'pl_PL.UTF-8');
$dir = basename($fulldir);
Additional InformationFixed by hand, but should be automated and probably basenames in other places also should be setlocaled first.
Tagsbasename, locale, setlocale, synchronization, utf-8, utf8
browserany
Database engine and versionmysql 5.5.24
PHP version5.3.10
Web serverApache 2.2.22
Attached Files

- Relationships

-  Notes
(0006660)
gospogied (reporter)
2012.10.02 10:15

It seems that bugtracker doesn't like locales, according to ????
(0007704)
m_alien (reporter)
2014.10.31 08:41
edited on: 2014.10.31 08:42

in piwigo 2.7.1 same broblem, and the same solution:

The problem is in admin/site_update.php line 210.
 To solve it you must add one line before it, for my language it is:

 setlocale(LC_ALL, 'ru_RU.UTF-8');
 $dir = basename($fulldir);


and in i.php I add

setlocale(LC_ALL, 'ru_RU.UTF-8');


- Issue History
Date Modified Username Field Change
2012.10.02 09:29 gospogied New Issue
2012.10.02 09:29 gospogied browser => any
2012.10.02 09:29 gospogied Database engine and version => mysql 5.5.24
2012.10.02 09:29 gospogied PHP version => 5.3.10
2012.10.02 09:29 gospogied Web server => Apache 2.2.22
2012.10.02 09:31 gospogied Tag Attached: basename
2012.10.02 09:31 gospogied Tag Attached: locale
2012.10.02 09:31 gospogied Tag Attached: setlocale
2012.10.02 09:31 gospogied Tag Attached: synchronization
2012.10.02 09:31 gospogied Tag Attached: utf-8
2012.10.02 09:31 gospogied Tag Attached: utf8
2012.10.02 10:15 gospogied Note Added: 0006660
2014.10.31 08:41 m_alien Note Added: 0007704
2014.10.31 08:42 m_alien Note Edited: 0007704
2014.10.31 08:42 m_alien Note Edited: 0007704


Copyright © 2000 - 2018 MantisBT Team
Contact
Powered by Mantis Bugtracker