SMF icon indicating copy to clipboard operation
SMF copied to clipboard

Improve path handling for FTP instances (installer, upgrader, webinstall)

Open Arantor opened this issue 13 years ago • 10 comments

Originally referenced - a little indirectly - in Mantis 5024, the current detection code for paths is limited and often wrong in all cases we do FTP.

We can improve upon this; I know I did in Wedge, by actually trying to find the directory and on the hosts I tested that code on, it was able to find the right path more than not, which is an improvement on what we have now.

But it requires more than just a little tweak; all the FTP classes we use need improvements to support the testing required. I'm really not sure about backporting this below 2.1 either, there's a lot to do there.

Arantor avatar Oct 11 '13 04:10 Arantor

If it isn't too much, I would like to see rather than improving FTP support (not that we can't), we add support for SFTP and WebDav. These will bring in the newer technologies being used and gaining ground, while FTP is still common among hosts, not having those options is very limited.

jdarwood007 avatar Oct 11 '13 15:10 jdarwood007

I'm not keen on WebDev so much but SFTP is worth adding at some stage - the problem is we really need to have a pure PHP solution to make it work without adding exotic dependencies. Now, that's entirely possible to do, phpseclib will do the job admirably, it's just rather chunky, hundreds of KB to handle the various things that are needed which pretty much rules out being in webinstall.

But quite honestly, the major headache is the fact that we're doing all this with file edits. If we didn't have to account for file edits so much, we wouldn't have half as many problems as we do (since permissions could just be left with whatever the system umask is and handled as regular uploads)

Arantor avatar Oct 11 '13 15:10 Arantor

Excellent .. just take it from Wedge if you already did the work.

deliciousbamboo avatar Oct 13 '13 22:10 deliciousbamboo

Wedge has a closed license.

Off topic: Another sockpuppet?

live627 avatar Oct 13 '13 23:10 live627

Oh, no, deliciousbamboo is a troll who doesn't like us.

Oh, and while Wedge is under a closed licence, I submitted a CLA to Nao that allows me to use my own code in other projects.

Difference is there are things that need to be considered that Wedge wasn't interested in doing that SMF still needs to consider.

Arantor avatar Oct 13 '13 23:10 Arantor

Wedge has a closed license.

Was not aware, the OP said they had done the work in said project. If they did the code and did not sign over IP then they are the owner then should not they be able to share it with other programs?

Oh, no, deliciousbamboo is a troll who doesn't like us.

yes that is correct

Off topic: Another sockpuppet?

yet another insult from this place, whats up with that, why so protective of comments?

deliciousbamboo avatar Oct 13 '13 23:10 deliciousbamboo

I did the code, I signed a licence, I can include such code if I see fit. The requirements in Wedge are different.

You don't like us because of an image that was suggested to be included (but hasn't been) from a totally different project of two white circles overlapping on a grey background, really just because we hadn't thoroughly checked out the licensing details at this point in time?

As far as insulting goes, firstly, it's not very nice to dive into a project and start spreading bile all because of a misunderstanding. Secondly, there are people who do not like our project who have already been observed joining up specifically to make bad comments and some of them seemed like yours. I apologise for the misunderstanding on that score.

Arantor avatar Oct 14 '13 00:10 Arantor

Thats fine and understood.

deliciousbamboo avatar Oct 14 '13 00:10 deliciousbamboo

While reading through the ftp code a while back I noticed some code that handled finding the right path, is this the code that you wanted to include?

Sent from my OnePlus ONEPLUS A3003 using FastHub

NanoSector avatar Aug 22 '17 01:08 NanoSector

Closed as apparently not important enough to fix.

Arantor avatar Aug 24 '17 11:08 Arantor