Skip to content
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

Invalid response when stat on a file #60

Closed
JbIPS opened this issue Dec 7, 2017 · 3 comments
Closed

Invalid response when stat on a file #60

JbIPS opened this issue Dec 7, 2017 · 3 comments
Assignees
Labels
bug A defect or bug that affects the original indended use of the application

Comments

@JbIPS
Copy link

JbIPS commented Dec 7, 2017

Hi,

When calling STAT on a file, I get a response with an incorrect format: a number then a space then the stat infos.

I first thought it was a client problem (see sergi/parse-listing#13) but it looks like the protocol standard align with the client.

I think something's wrong here https://github.com/trs/ftp-srv/blob/master/src/commands/registration/stat.js#L31 but I don't know what nor why.

Could you lead me to a solution? Thanks

@trs trs self-assigned this Dec 7, 2017
@trs trs added the bug A defect or bug that affects the original indended use of the application label Dec 7, 2017
@trs
Copy link
Contributor

trs commented Dec 9, 2017

Great catch! Thanks for the issue!
I was incorrectly sending only the file data on a STAT of a file.

This should be remedied with #61

@trs trs closed this as completed Dec 9, 2017
@JbIPS
Copy link
Author

JbIPS commented Dec 9, 2017

Just tried it again, works perfectly 👍 !

Thank you for the fix and this cool project!

@lexoyo
Copy link

lexoyo commented Dec 10, 2017

Thank you for the users of @JbIPS 's unifile project

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug A defect or bug that affects the original indended use of the application
Projects
None yet
Development

No branches or pull requests

3 participants