NuSphere Forums Forum Index
NuSphere Forums
Reply to topic
Symbolic links and SFTP


Joined: 16 Jan 2007
Posts: 1
Reply with quote
Greetings,

Great product. Congratulations to the NuSphere Team! We are the happier owners of five licenses; each of the five developers involved is pleased to work with the editor and debugger.

Unfortunately, we stumbled across a problem that could be a real show-stopper. When PHPEd downloads from a remote server using sftp, it resolves symbolic links, and downloads the target file of the link. When the file is uploaded, the target file is replaced. This behavior is unexpected, and can lead to unanticipated side-effects when the file is uploaded (since the link target can be unexpectedly overwritten).

Perhaps this issue might not be directly associated with the PhpED code -- and might well be more closely associated with sftp itself or even the underlying OS (FreeBSD and Linux in our situation). Regardless of the source of the issue, is there something that can be done in the PhpED settings, or perhaps as a tweak to the behavior of PhpED that might prevent such a problem. For example, it might be ideal if symlinks were not followed at all when downloading sites.

Any help you might offer will be very welcome!

Mike
View user's profileFind all posts by mritchieSend private message
Site Admin

Joined: 13 Jul 2003
Posts: 8340
Reply with quote
Hi Mike,
thanks for your question.
Could you please do the two things below:
a) provide us with more details. Better if you submit real-life scenario with explanations of those side-effects
b) Probably you run openssh daemon, please try its own sftp client to make sure if it replicates the same problem.

_________________
The PHP IDE team
View user's profileFind all posts by dmitriSend private messageVisit poster's website
Symbolic links and SFTP
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
All times are GMT - 5 Hours  
Page 1 of 1  

  
  
 Reply to topic