wfreerdp does not send CB_FORMAT_LIST_RESPONSE for server clipboard FormatList
Describe the bug
When using wfreerdp from Windows to connect to GNOME Remote Desktop on RHEL 10, clipboard redirection only works in one direction.
Windows → RHEL works normally, but RHEL → Windows does not.
Microsoft mstsc.exe against the same RHEL machine has working clipboard in both directions.
From the FreeRDP trace, wfreerdp receives and parses the server's CB_FORMAT_LIST, but does not appear to send a CB_FORMAT_LIST_RESPONSE. When Windows subsequently requests one of the advertised formats, GNOME Remote Desktop rejects the request because it never received the required FormatList response.
To Reproduce
- Connect from Windows to a RHEL 10 GNOME Remote Desktop server:
wfreerdp.exe /v:<host> /u:admin /p:admin /cert:ignore /dynamic-resolution +clipboard- Log in through GDM to the GNOME session.
- Copy some text inside the remote GNOME session.
- Try to paste it into an application on the Windows client.
- The clipboard contents are not available on Windows.
This occurs consistently for me.
Expected behavior
Text copied in the remote RHEL/GNOME session should be available to paste into Windows.
Clipboard redirection should work in both directions, as it does when connecting to the same server using mstsc.exe.
Screenshots
N/A
Application details
FreeRDP version:
FreeRDP version 3.32.0 (a8363e4)Command line:
wfreerdp.exe /v:<host> /u:admin /p:admin /cert:ignore /dynamic-resolution +clipboardServer:
RHEL 10
gnome-remote-desktop 49.3-4.el10_2
FreeRDP libraries 3.10.3-12.el10_2.xGNOME Remote Desktop is running in system remote-login mode. The connection goes to the GDM login screen first, followed by handover to the user's GNOME session after login.
I have also attached a filtered TRACE log generated from a run using:
buildconfig.txt cliprdr-interesting.log
buildconfig.txt cliprdr-interesting.log
/log-level:TRACE /log-filters:com.freerdp.channels.cliprdr.client:TRACEThe relevant portion shows:
11:26:53.212 CB_FORMAT_LIST
11:26:53.212 ServerFormatList: numFormats: 2
[0]: CF_UNICODETEXT
[1]: CF_TEXT
[no CB_FORMAT_LIST_RESPONSE]
11:26:53.433 ClientFormatDataRequest(CF_UNICODETEXT)
11:26:53.564 CB_FORMAT_DATA_RESPONSE CB_RESPONSE_FAILGNOME Remote Desktop logs the corresponding error:
[RDP.CLIPRDR] Possible protocol violation: Client did not send format list response (Timeout reached)Environment (please complete the following information):
- OS: Windows
- Version/Distribution: Windows 11
- Architecture: amd64
- Server OS: RHEL 10
Additional context
Windows → RHEL clipboard works normally.
RHEL → Windows clipboard fails consistently.
The same RHEL/GNOME Remote Desktop server has working bidirectional clipboard when using Microsoft's mstsc.exe.
The trace shows that wfreerdp successfully receives and parses the server's advertised CF_UNICODETEXT and CF_TEXT formats. It subsequently requests CF_UNICODETEXT, but I don't see a CB_FORMAT_LIST_RESPONSE sent between receiving the format list and requesting the data.
FreeRDP issue #13097 appears potentially related, as it reports GNOME Remote Desktop detecting a missing FormatList response with another FreeRDP client frontend.
Source: FreeRDP/FreeRDP