RapidPHP 2011 small bug on FTP upload of edited file

Post your questions and problem reports here

Moderator: kfury77

Forum rules
Please try to follow these guidelines. This will help to receive faster and more accurate response.
  • Check the Support section of the corresponding product first. Chances are you will find your answer there;
  • Do not create new topics for already reported problems. Add your comments to the existing topics instead;
  • Create separate topic for each problem request. Do NOT post a number of non-related problem reports in a single topic;
  • Give your topic a meaningful title. Titles such as "A question," "Bug report" and "Help!" provide others no clue what your message is about;
  • Include the version number of the software you are using;
  • This is not an official customer support helpdesk. If you need a prompt and official response, please contact our support team directly instead. It may take a while until you receive a reply in the forum;
Post Reply
stvwlf
Posts: 10
Joined: Wed Jun 11, 2008 7:17 pm

RapidPHP 2011 small bug on FTP upload of edited file

Post by stvwlf »

RapidPHP 2011 using 11.0.0.126

This is occurring when a file has been opened in the editor directly from the server.
Before saving the file back to the server, the file on the server with the same name (the original version) has its name changed or is deleted.
In those cases the editor is unable to save the file back to the server with an FTP save - error message about can't delete file displays.

Steps to duplicate:
Open a file in the editor using FTP open.
Change the name of that file (or delete it) on the server using FTP
Save the file that's open in the editor back to the server.
Error message displays:
Could not complete the transfer
FTP error: Could not delete {filename}: No such file or directory
A copy of the changed file is left on the server with filename {filename}.tmp

Its not allowing a file to be saved back if the original file on the server no longer exists.
This is incorrect. This same procedure worked with no problem in RapidPHP 2010.
It should save the file back to the server whether or not the original file exists.
thank you
Gatis
Blumentals Software Developer
Posts: 545
Joined: Sun Mar 05, 2006 12:30 am
Location: Latvia

Re: RapidPHP 2011 small bug on FTP upload of edited file

Post by Gatis »

Hi,

Thanks for reporting this.
We introduced lately a protection for cases when a file is corrupted during the transfer, so you can revert to the old version (before uploading, the old version of file is renamed to a back-up and after successful transfer, the back-up is deleted).
As it looks, we need to take into account the cases when the original file is deleted after opening, before saving.
We will consider what can be done here.
Kind regards,
Gatis Avots
stvwlf
Posts: 10
Joined: Wed Jun 11, 2008 7:17 pm

Re: RapidPHP 2011 small bug on FTP upload of edited file

Post by stvwlf »

Thanks Gatis

Of course the code change you made is an improvement. It just needs to consider that circumstance, that the original file may no longer exist.
Post Reply