Support

Akeeba Backup for Joomla!

#21049 backslash in dropbox folder name causes 500 server error

Posted in ‘Akeeba Backup for Joomla! 4 & 5’
This is a public ticket

Everybody will be able to see its contents. Do not include usernames, passwords or any other sensitive information.

Environment Information

Joomla! version
n/a
PHP version
n/a
Akeeba Backup version
n/a

Latest post by on Wednesday, 19 November 2014 17:20 CST

[email protected]
Description of my issue:

I found the reason for the 500 Server error when backing up to dropbox. If you have a \ (backslash) instead of a / (forward slash) in the directory name for saving to dropbox (the box has the tooltip "The directory within your dropbox account where...") it gives the 500 error.

In my case (my own stupidity) I had a mixture:

/WebsiteBackups\mysitename and changing it to /WebsiteBackups/mysitename fixed it.

It might be an idea for Akeeba Backup to either silently change \ to / when a user types it in, or warn that \ should be /

It is possible there are other characters that should not be allowed in the dropbox folder name, but \ definitely causes the 500 error.

Hope that helps!

Brian

 Brian Craigie Wishaw, North Lanarkshire ML2 0PS

nicholas
Akeeba Staff
Manager
What you describe is the expected behaviour. In fact, we do warn you in our documentation that you must use a forward slash. We don't change the backward to forward slashes because the path is sent to the Dropbox API. If their API starts supporting backslashes for some reason (probably other than path separators) we won't be able to cope with that if we change the slashes automatically.

Nicholas K. Dionysopoulos

Lead Developer and Director

🇬🇷Greek: native 🇬🇧English: excellent 🇫🇷French: basic • 🕐 My time zone is Europe / Athens
Please keep in mind my timezone and cultural differences when reading my replies. Thank you!

[email protected]
Uh... yeah.... OK. I just thought it would be helpful to at least give a warning to the user that the backslash might cause a problem. At present, it does cause the 500 error and I spent hours trying to figure out why.

Brian

 Brian Craigie Wishaw, North Lanarkshire ML2 0PS

nicholas
Akeeba Staff
Manager
I don't want to be mistaken as rude or picky, but did you read the documentation before spending hours on the problem? The information you're looking for is there. We can't warn you about backslashes for the same reason we can't automatically change them to forward slashes. Documenting the necessity for forward slashes is the only way we have to communicate this to you without causing additional problems.

Nicholas K. Dionysopoulos

Lead Developer and Director

🇬🇷Greek: native 🇬🇧English: excellent 🇫🇷French: basic • 🕐 My time zone is Europe / Athens
Please keep in mind my timezone and cultural differences when reading my replies. Thank you!

[email protected]
Thanks, I did indeed read the documentation and of course it was my mistake that I had put in \ instead of / but nowhere in the documentation does it mention that this can cause a 500 error.

Because all my sites use FastCGI, there is no way to find out the cause of a 500 error because it isn't logged in any log file I could find. So, I visited here to search for 500 errors and found someone else reporting the 500 error but the ticket was closed with no cause found.

So, I thought it would simply be helpful to others facing the same problem to have it logged that this is one of the causes. :-)

Brian

 Brian Craigie Wishaw, North Lanarkshire ML2 0PS

nicholas
Akeeba Staff
Manager
OK, I just wanted to explain why Akeeba Backup works the way you described :)

Nicholas K. Dionysopoulos

Lead Developer and Director

🇬🇷Greek: native 🇬🇧English: excellent 🇫🇷French: basic • 🕐 My time zone is Europe / Athens
Please keep in mind my timezone and cultural differences when reading my replies. Thank you!

System Task
system
This ticket has been automatically closed. All tickets which have been inactive for a long time are automatically closed. If you believe that this ticket was closed in error, please contact us.

Support Information

Working hours: We are open Monday to Friday, 9am to 7pm Cyprus timezone (EET / EEST). Support is provided by the same developers writing the software, all of which live in Europe. You can still file tickets outside of our working hours, but we cannot respond to them until we're back at the office.

Support policy: We would like to kindly inform you that when using our support you have already agreed to the Support Policy which is part of our Terms of Service. Thank you for your understanding and for helping us help you!