-
Notifications
You must be signed in to change notification settings - Fork 15
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
TRUNK SSHNP vs. RELEASE v3.2.0 SSHNPD does not work with a new device name #251
Comments
Summary:
|
Related to #211 ? |
Does the same issue occur with 3.1.2? or is it strictly an issue with 3.2.0? I think we have a breaking change in 3.3.0+ (i.e. 3.3.0 should of been 4.0.0) |
Looking at the logs, I think this might be an artefact of the tests. The last visible output log line from the sshnpd is
The change from 3.2.0 to 3.3.0 was we removed the need for sync sshnpd 3.2.0 will not be responsive until it has completed its sync Manual testing of trunk / 3.3.0 sshnp vs 3.2.0 sshnpd should confirm |
Yup that was right.. sync needed to finish first. Just did my manual testing and 3.3.0 sshnp works with 3.2.0 sshnpd |
I was about to say the only thing that changed was removing sync... this makes a lot of sense. Good catch Gary! |
Conclusion - nothing was wrong with 3.2.0, it was just my test |
Conclusion:
The bug was happening because sshnp wouldn't wait for sync to finish
Describe the bug
Summary
Attempted testing current
trunk SSHNP
againstrelease 3.2.0 SSHNPD
and test failed. Found out thatrelease 3.2.0 SSHNPD
is not properly sending the device name totrunk SSHNP
.However, if you are using trunk SSHNP vs. release 3.2.0 SSHNPD with a device name that was already previously shared, then it will work. On the other hand, using an entirely new device name that was not already shared will always crash.
Steps to reproduce
Run the
sshnpd
binary on release 3.2.0 with an entirely new device name that was never shared before. Examle:~/.local/bin/sshnpd -a @smoothalligator -m @jeremy_0 -d 123four -s -u -v
Run the
sshnp
binary on the latest trunk. Example:~/.local/bin/sshnp -f @jeremy_0 -t @smoothalligator -d 123four -h @tastelessbanana -s id_ed25519.pub -v
On sshnp, you will get
Expected behavior
TRUNK NP to work with v3.2.0 NPD
Screenshots
No response
Smartphones
No response
Were you using an atApplication when the bug was found?
No response
Additional context
The naming convention I've created is "sshnp-sshnpd-sshrvd". Example: trunk-release3.2.0-release3.3.0 is testing trunk sshnp and release3.2.0 sshnpd and release3.3.0 sshrvd
Testing trunk-release3.2.0-@rv_am (FAILED): release3.2.0 sshnpd broken
https://github.com/atsign-foundation/sshnoports/actions/runs/5533026008/jobs/10096208608?pr=250
Same test as above but with a device name already shared (PASSED):
https://gist.github.com/JeremyTubongbanua/8911aa1cb7709542d54e7746275e350e
Some additional tests I did that are somewhat related to what we are discussing:
Testing release3.2.0-trunk-@rv_am (PASSED): release 3.2.0 sshnp works against trunk sshnpd
https://github.com/atsign-foundation/sshnoports/actions/runs/5533026008/jobs/10096208827?pr=250
Description of this: Although TRUNK NP does not work with 3.2.0 NPD, the converse does work (3.2.0 NP with TRUNK NPD works).
Testing release3.2.0-release3.2.0-release3.2.0 (PASSED): https://gist.github.com/JeremyTubongbanua/2474f8e8aecabc965da63ca34314db4c
The text was updated successfully, but these errors were encountered: