Apostrophe in file name

Ser Moro
Ser Moro's picture

Joined: 2007-12-08
Posts: 76
Posted: Thu, 2010-09-23 12:25

I found on Tracker known issue for album name, but not for file name.
Album name: "This don't work correctly@" - no problem.
At first i uploaded in this album file "New'year!.gif", then "Cat's HDR.jpg" 1024x768. Result on scrhots.
For both files Gallery don't create thumbs, for Cat's HDR.jpg don't create resized.
http://fotogallery3.ru/gallery30/
SM

AttachmentSize
Album2_fg3.jpeg20.89 KB
Item_Cat.jpeg22.55 KB
 
floridave
floridave's picture

Joined: 2003-12-22
Posts: 25965
Posted: Thu, 2010-09-23 12:41

Are you using the most recent *Experimental* version?

Dave
_____________________________________________
Blog & G2 || floridave - Gallery Team

 
Ser Moro
Ser Moro's picture

Joined: 2007-12-08
Posts: 76
Posted: Thu, 2010-09-23 13:47

Last upgrade from git - 19 sep 2010, now i go to get last version.
SM

 
bharat
bharat's picture

Joined: 2002-05-21
Posts: 7985
Posted: Fri, 2010-09-24 05:44

What's in your gallery3/var/logs log files?
---
Problems? Check gallery3/var/logs
bugs/feature req's | upgrade to the latest code | use git

 
Ser Moro
Ser Moro's picture

Joined: 2007-12-08
Posts: 76
Posted: Fri, 2010-09-24 07:05

Only such messages:

Quote:
2010-09-23 03:03:35 +04:00 --- error: Missing messages entry kohana/core.errors.403 for message kohana/core
2010-09-23 17:51:29 +04:00 --- error: Kohana_Exception [ 403 ]: @todo FORBIDDEN
/home/web/fotogal3/www/fotogallery3.ru/gallery30/modules/gallery/helpers/access.php [ 194 ]
#0 /home/web/fotogal3/www/fotogallery3.ru/gallery30/modules/gallery/helpers/access.php(417): access_Core::forbidden()
#1 /home/web/fotogal3/www/fotogallery3.ru/gallery30/modules/photoannotation/controllers/photoannotation.php(199): access_Core::verify_csrf()
#2 [internal function]: photoannotation_Controller->delete('116')
#3 /home/web/fotogal3/www/fotogallery3.ru/gallery30/system/core/Kohana.php(331): ReflectionMethod->invokeArgs(Object(photoannotation_Controller), Array)
#4 [internal function]: Kohana_Core::instance(NULL)
#5 /home/web/fotogal3/www/fotogallery3.ru/gallery30/system/core/Event.php(208): call_user_func_array(Array, Array)
#6 /home/web/fotogal3/www/fotogallery3.ru/gallery30/application/Bootstrap.php(67): Event_Core::run('system.execute')
#7 /home/web/fotogal3/www/fotogallery3.ru/gallery30/index.php(97): require('/home/web/fotog...')
#8 {main}

Now i turn off photoannotation module.
I added album & 3 items 23 sep 2010. In attach all logs.
SM

AttachmentSize
2010-09-23.log_.php_.txt4.6 KB
 
bharat
bharat's picture

Joined: 2002-05-21
Posts: 7985
Posted: Sat, 2010-09-25 06:46

Hm. Your logs are inconclusive. Please get the latest code, then *delete* all of your gallery3/var/logs log files, then reproduce the error, then show us what's in your logs. That ought to help us quite a bit. thanks!
---
Problems? Check gallery3/var/logs
bugs/feature req's | upgrade to the latest code | use git

 
Ser Moro
Ser Moro's picture

Joined: 2007-12-08
Posts: 76
Posted: Tue, 2010-09-28 08:39

26 sep 2010:

Quote:
From git://github.com/gallery/gallery3
85637a0..ef87514 master -> origin/master
Updating 85637a0..ef87514
Fast-forward
modules/gallery/helpers/data_rest.php | 7 ++++++-
1 files changed, 6 insertions(+), 1 deletions(-)

Before upgrading i deleted old album "This don't work correctly@".
Before renaming gallery3 to gallery30 i delete all logs.
Now i create new album "Don't work? No! This is O@K!" and add file "Cat's HDR"
Situation is replicated. Single file '2010-09-26.log.php' is clean:

Quote:
<?php defined('SYSPATH') or die('No direct script access.'); ?>

But i can help you. This is part of 'fg3.error.log' from my server (/var/log/apache2/):

Quote:
[Sun Sep 26 09:15:09 2010] [error] [client 95.101.64.16] File does not exist: /home/web/fotogal3/www/fotogallery3.ru/gallery30/var/thumbs/Gifs/This-don't-work-correctly/Mandriva Dark\\'n Light.png
[Sun Sep 26 09:15:09 2010] [error] [client 95.101.64.16] File does not exist: /home/web/fotogal3/www/fotogallery3.ru/gallery30/var/thumbs/Gifs/This-don't-work-correctly/Cat\\'s HDR.jpg
[Sun Sep 26 10:13:15 2010] [error] [client 95.101.64.16] File does not exist: /home/web/fotogal3/www/fotogallery3.ru/gallery30/var/resizes/Don't-work-No!-This-is-O@K!/Cat\\'s HDR.jpg, referer: fotogallery3.ru/gallery30/index.php/Don-t-work-No-This-is-O-K/Cat-s-HDR
[Sun Sep 26 10:13:16 2010] [error] [client 95.101.64.16] File does not exist: /home/web/fotogal3/www/fotogallery3.ru/gallery30/var/resizes/Don't-work-No!-This-is-O@K!/Cat\\'s HDR.jpg, referer: fotogallery3.ru/gallery30/index.php/Don-t-work-No-This-is-O-K/Cat-s-HDR
[Sun Sep 26 10:13:16 2010] [error] [client 95.101.64.16] File does not exist: /home/web/fotogal3/www/fotogallery3.ru/gallery30/var/thumbs/Don't-work-No!-This-is-O@K!/Cat\\'s HDR.jpg, referer: fotogallery3.ru/gallery30/index.php/Don-t-work-No-This-is-O-K/Cat-s-HDR

And Common apache2 error.log is attached. I see don't work 'convert' command.

SM

AttachmentSize
error.log_.txt5.27 KB
 
bharat
bharat's picture

Joined: 2002-05-21
Posts: 7985
Posted: Mon, 2010-09-27 03:49

Hrm. It looks like ImageMagick is choking on the filename. Can't tell if the file actually exists or not, though -- it might be something going wrong with the way that we do temporary file creation, or something with your version of ImageMagick. I created an album with the same name and uploaded a photo with the same name and it worked for me. Somebody will have to get in there and debug the PHP. Any chance I can get ssh on your box so that I can reproduce this and try to fix it directly?
---
Problems? Check gallery3/var/logs
bugs/feature req's | upgrade to the latest code | use git

 
Ser Moro
Ser Moro's picture

Joined: 2007-12-08
Posts: 76
Posted: Mon, 2010-09-27 04:44

bharat,
I switch graphic tool to GD - same behaviour.
My server is Ubuntu jaunty (9.04) and i do 'aptitude update' weekly. It might be something going wrong on OS level. I'll send PM to you tomorrow.
SM

 
Ser Moro
Ser Moro's picture

Joined: 2007-12-08
Posts: 76
Posted: Tue, 2010-09-28 15:57

This problem appears only on my web server. On localhost (Kubuntu 10.04) all works OK.
What are the parameters of PHP or Apache2 can lead to error?
SM

 
bharat
bharat's picture

Joined: 2002-05-21
Posts: 7985
Posted: Tue, 2010-09-28 17:29

I'm guessing that your Apache2 is ignoring your .htaccess file and that magic_quotes is enabled. We can verify this if you can give us a link to your phpinfo output from a file *inside* your gallery3 directory.
FAQ: How do I create a phpinfo page?
---
Problems? Check gallery3/var/logs
bugs/feature req's | upgrade to the latest code | use git

 
Ser Moro
Ser Moro's picture

Joined: 2007-12-08
Posts: 76
Posted: Tue, 2010-09-28 19:02
 
Ser Moro
Ser Moro's picture

Joined: 2007-12-08
Posts: 76
Posted: Wed, 2010-09-29 15:32

Thank you very much, Bharat
magic_quotes_gpc On/Off is known security issue for PHP applications, sorry.
My site config have option "AllowOwerride All" for working with .htaccess, but this is another problem.
P.S. Gallery3 .htaccess contain text:

<IfModule mod_php5.c>
  php_flag short_open_tag            On
  php_flag magic_quotes_gpc          Off
  php_flag magic_quotes_sybase       Off
  php_flag magic_quotes_runtime      Off
  php_flag register_globals          Off
  php_flag session.auto_start        Off
  php_flag suhosin.session.encrypt   Off
  php_value upload_max_filesize      20M
  php_value post_max_size            100M
</IfModule>

This not work for me. First row must be:
<IfModule mod_fcgid.c>
P.S. It also does not work.
SM

 
bharat
bharat's picture

Joined: 2002-05-21
Posts: 7985
Posted: Wed, 2010-09-29 04:26

Ah ha. Ok, we need a new section in the .htaccess file for fcgid, I guess.

I created https://sourceforge.net/apps/trac/gallery/ticket/1403 -- we'll fix this in 3.1
---
Problems? Check gallery3/var/logs
bugs/feature req's | upgrade to the latest code | use git

 
Ser Moro
Ser Moro's picture

Joined: 2007-12-08
Posts: 76
Posted: Wed, 2010-09-29 15:37

Apache2 mod_fcgid don't allow manage PHP options with .htaccess, we get error 500.
I must to use another methods
SM