-
Notifications
You must be signed in to change notification settings - Fork 99
Reboot development #147
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Reboot development #147
Conversation
close connections properly in passive mode
Lib is unstable, be carefull!
This PR fixes a regression introduced in the latest refactoring:
TypeError [ERR_INVALID_ARG_TYPE]: The "value" argument must not be of type number. Received type number
at Function.from (buffer.js:215:11)
at FtpConnection._STOR_usingWriteFile (/data/node_modules/ftpd/lib/FtpConnection.js:1212:25)
at FtpConnection._command_STOR (/data/node_modules/ftpd/lib/FtpConnection.js:1122:10)
at checkData (/data/node_modules/ftpd/lib/FtpConnection.js:291:14)
at FtpConnection._onData (/data/node_modules/ftpd/lib/FtpConnection.js:279:9)
at Socket.socket.on (/data/node_modules/ftpd/lib/FtpServer.js:102:10)
I've tested the ftp file upload with this change and everything seems to work fine!
Fix file modes
Use Buffer.alloc instead of Buffer.from
Fixes #2
This way tests can be executed in parrallel
Merge pull request #5 from LolHens/master Fixed nearly all tests With this commit the code coverage goes to 57 percent. So still not perfect but we're getting there! :tada:
|
@sstur I've setup the CI/CD this way that from my repository it will still release a new version whenever I push to my own master. Github action result The conflicts are because 2 files changed on both sides, but you should be able to accept my version. |
|
Hi! Seems like @sstur didn't find time to deal with the merge. Would you mind rebasing it on master? That way I might be able to test your PR, which might lower his effort to merge. |
|
@mk-pmb I invited you to my repo. Currently not using it anymore so my drive to bring all my changes to this repo has been lowered. |
|
Thanks! Unfortunately I can neither publish nor support that branch, because the author change makes the license implications a bit complicated. Would you mind if I make a copy that degrades your attribution to just contributor? |
|
And then I discovered that even that would make the license non-trivial if I do it. Instead, could you publish a branch based on master where you just copy your new files, but without the author change anywhere in its history? |
|
The author change can be reverted, but it's there because that branch is published to |
|
Since I now read in the other thread that you already moved on, I hope someone else can step in to try and salvage as much as possible, with a keen eye on proper attribution of the parts picked. Here's what I drafted earlier:
IANAL but for my understanding this would keep some commits in our history that create at least ambiguity about their license. I'd thus strongly prefer a new branch based on master that re-commits only the parts relevant for how the ftpd works, and does not (yet) deal with publishing. I had expected the fix to be as easy as making a new branch that just omits the commits that deal with authorship and publishing. So I tried to suggest the sequence of git commands that you could run to create that new branch that we could merge. Unfortunately, it's not that easy. The problems with the patches in this merge request start as early as e18e3d9 , which claims in its commit message to be just a "Version bump", but has massive changes to lots of code files. It seems like most of them are just whitespace changes. In such a case, the whitespace changes should go into their own commit, so we can easily have Next up 8318301 , "Added npmignore". The commit message should probably have been something like "Ignore test directories", if that was your intent. However, the lack of leading slashes makes it hard to predict what will be ignored, and poses a trap for future development. We can only accept Stopping the review here for time reasons. I wish I had been able to review this way earlier, and could have saved some of the work that has now accumulated for fixing such issues and extracting the useful parts. |
|
I'm unsubscribing, as said I moved on. I'm not forcing anybody to do stuff they don't feel like. 3 years ago I made this PR, because the released version was lacking some features. I'm all for automation, that is what I also do in my day-to-day job. If that's not your thing that is totally fine. Use my code, or don't, feel free to do what is best for the project. |
|
I’m cleaning my stale prs |
Fixes #144
Also moved testing to Github actions instead of Travis