Support

UNiTE, Remote CLI, eXtract Wizard

#39432 Engine/Job/Validator determines wrong HTTP method

Posted in ‘UNiTE and Remote CLI’
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

PHP version
8.1.1
Tool
UNiTE
Tool version
5.0.2

Latest post by nicholas on Thursday, 07 September 2023 04:02 CDT

schmithu

Hi,

when I try to run a restore from a remote source I get:

[ERROR ] Could not start backup; Error 405: Invalid method

After investigating I found what looks to me like a Bug in Engine/Job/Validator.php:162 and following:

The check for $works must be at the end. Currently it is at the start of the loop, so $verb and $format are already incremented leading to the wrong verb/format beeing stored.

I attached a patch, hoping this is usefull for you.

With this fix I was able to create a remote backup.

Thanks for your efforts and kind regards

David

schmithu

2. try to upload the patch - this time inside a zip.

nicholas
Akeeba Staff
Manager

Please try using the latest development version. The code has already been thoroughly refactored. The version you are using has not much to do with the code base we're working on right now.

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!

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!