-
-
Notifications
You must be signed in to change notification settings - Fork 169
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
dangerous HTML5 client example #2793
Comments
Thanks, the wiki page was out of date - this syntax used to work as a fallback but it no longer does.
As for AES, I will look into it. |
The html5 client is ignoring the encryption options because some bugs were introduced in a recent version (r26569 and others) - that's what I need to fix for this ticket. Connecting with a python client should work, ie:
(the client syntax for encryption will be improved soon too: #2794) The server should reject your html5 client connection - it does for me - with this message:
|
The fix for websockets not honouring encryption options is in r26591. (one could conceivably use SSL and AES at the same time by overriding This will be included in the next stable update. I think we can close this ticket, feel free to re-open if you still encounter issues, and thanks for reporting it! |
Hit some more issues during testing. |
2020-06-04 15:01:49: kylerlaird commented
|
I believe the fix is in r26614. I am just testing now. |
Almost identical to #2431.
For trunk: r26614 just disabled legacy mode, and then r26615 removed it entirely. For v4 and v3 backports, I used a less disruptive solution: 26616 fixes the headers without removing the legacy mode. @kylerlaird: please close if that works for you. |
r26617 also helps? |
No, hits another bug later, workaround applied as per #2799. |
2020-06-04 19:26:16: kylerlaird commented
|
2020-06-04 20:37:51: kylerlaird commented
|
2020-06-04 21:04:28: kylerlaird commented
|
2020-06-04 21:09:33: kylerlaird commented
|
I have just re-tested from a fresh checkout, using trunk, 3.0.x and 4.0.x branches and then following the exact steps from the wiki Clients HTML5:
Works for me every time. Please provide more details on your steps so that I can reproduce. |
2020-06-05 13:02:40: kylerlaird commented
|
The version of python-cryptography in Ubuntu Bionic is too old (2.1.4): python3-cryptography to support As per this comment: As of cryptography 2.5 we support the buffer protocol for many key inputs (and we have update_into in symmetric cryptography to write into a rw buffer). The quick fix would be to call our helper function In the meantime, you can try replacing:
with:
|
2020-06-05 13:55:56: kylerlaird commented
|
Thank you very much! A nicer solution has been merged in r26631 and will be in the next stable update. |
2020-06-05 22:29:18: kylerlaird commented
|
Maybe try the legacy syntax form:
I can connect with:
Or with the browser:
If that still fails, please post the server debug output (with |
2020-06-06 17:00:45: kylerlaird commented
|
FYI: in 4.1 you can now use the nicer syntax:
See #2794#comment:2 for details. |
FYI: the new javascript rencoder Xpra-org/xpra-html5#84 works with AES and LZ4. |
See also: ecf5782 |
Issue migrated from trac ticket # 2793
component: html5 | priority: critical | resolution: fixed
2020-06-01 16:45:06: kylerlaird created the issue
The text was updated successfully, but these errors were encountered: