Apostrophe in Folder Name

I was just wondering if Trac Ticket #311 for apostrophe in filenames also includes apostrophe's in Folder Names.

It is weird because I can fully navigate through the album on the admin side but you cant open it on the front end. I get the
Zenphoto Error: the requested object was not found. Please go back and try again.

I have a lot of galleries, unfortunately, that have this. Just wondering if we may ever get this back.

Comments

  • I've added it to the ticket.

    Just out of curiosity, what release did this work on? Maybe that will help find what happened.
  • I know it worked in 1.0.8. That is what version my galleries are still. When I finally got around to testing the upgrade of my site it was the end of November so that would be 1.1.2 and it didn't work in that one. So somewhere in 1.1 and 1.1.1

    It is also weird because the admin interface can display, manage, sort, edit, delete the albums and images in the albums with the ' but the front end just doesnt display it.

    Thanks for adding it to the ticket. I didnt want to submit another one if it was already going to be covered under the umbrella of another.
  • robd Member
    Hi All.

    I'm having problems with album / photo names with special chars. Trac Ticket #311 was closed as 'works for me', but they aren't working for me. I'm trying to work out whats going on. At the moment, I'm not using mod_rewrite. When I try to go to an album with an apostrophe in the name I get a page with the following message:

    'Zenphoto Error: the requested object was not found. Please go back and try again.'

    and this html comment:

    The requested object (album="Skison 2006/Feu d\'artifice": image="") was not found.

    Does anyone have any idea how I can go about working out what's happening?

    Thanks,
    Rob
  • acrylian Administrator, Developer
    It's a server issue. Most servers don't allow these special chars in file and folder names. Best practice is to rename folders and images before uploading via ftp. If you upload via the admin the names are cleaned. Just to mention you can have any character in the album titles and image titles since they are not the same as the actual folders and files.
  • robd Member
    Thanks for your reply.

    I'm surprised there are any problems with folder or file names. I'm running ubuntu 7.1 and doing an ls of the albums directory shows the filenames with the correct special chars. In the album listing, zenphoto is able to display the album name and thumbnail correctly. It's when you click the album title to view the album that the error occurs.

    I've had previous versions of zenphoto up and running correctly with these albums, albeit on a different box. I didn't upgrade for a while so I'm not sure exactly when they stopped working.

    Rob
  • What should the album and image names be? It looks like the apostrophy is being escaped (\') but I do not know where in zenphoto that might be done.
  • robd Member
    The dir name on the server is

    Feu d'artifice

    The end of the url of the broken page is:

    index.php?album=Skison+2006%2FFeu+d%27artifice

    Both of these look right to me; I think %27 is the escape code for apostrophe.
  • %27 is the url encoding for the apostrophy. So it would appear that ther is some problme on your server accessing files with this character in them. It is probably escapting that character (as in the example.) But then Zenphoto does not know this, so it does not strip the escapes.

    It is best you avoid these characters. We do know that most people don't have the problem, but such characters can always be problematical.
  • trisweb Administrator
    This is a known Zenphoto bug. There is no reason Zenphoto should not support all valid filename characters. I'll fix it sometime soon. In the meantime just rename the files.

    Rest assured this is not a server or OS bug, it is Zenphoto.
Sign In or Register to comment.