Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 926879 - net-misc/freerdp failed to load addins when using rdp file
Summary: net-misc/freerdp failed to load addins when using rdp file
Status: RESOLVED UPSTREAM
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal major (vote)
Assignee: Mike Gilbert
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2024-03-13 08:00 UTC by Jordi
Modified: 2024-04-18 15:03 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
Example of RDP file (Win10.rdp,2.36 KB, text/plain)
2024-03-15 20:04 UTC, Jordi
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Jordi 2024-03-13 08:00:40 UTC
net-misc/freerdp fails to run when using an rdp file, complaining that cannot load addins.
However, it is able to connect to a local Win10 VM without problem.
Both stable and unstable versions of net-misc/freerdp have the same issue.
 

Reproducible: Always

Steps to Reproduce:
1. xfreerdp <example.rdp> <options>
2. error message is shown and xfreerdp exits
Actual Results:  
Error log:
[18:23:55:158] [10822:00002a47] [DEBUG][com.freerdp.core] - [freerdp_connect_begin]: resetting error state
[18:23:55:158] [10822:00002a47] [INFO][com.freerdp.client.x11] - [xf_setup_x11]: Enabling X11 debug mode.
[18:23:55:161] [10822:00002a47] [DEBUG][com.freerdp.client.x11] - [xf_GetWindowProperty]: Property 310 does not exist
[18:23:55:190] [10822:00002a47] [ERROR][com.freerdp.client.common] - [freerdp_client_load_channels]: Failed to load addins [00000000]
[18:23:55:191] [10822:00002a47] [DEBUG][com.freerdp.core.rdp] - [rdp_finalize_reset_flags][0x5606f1d15ad0]: [CONNECTION_STATE_INITIAL]
reset finalize_sc_pdus
[18:23:55:191] [10822:00002a47] [DEBUG][com.freerdp.core.rdp] - [rdp_client_transition_to_state][0x5606f1d15ad0]: CONNECTION_STATE_INITIAL --> CONNECTION_STATE_INITIAL
[18:23:55:192] [10822:00002a46] [ERROR][com.freerdp.core] - [freerdp_abort_connect_context]: ERRCONNECT_CONNECT_CANCELLED [0x0002000B]

Expected Results:  
No errors

I have tried to bring this issue to upstream, but they have been not been helpful, only saying that the build is broken and that "some addins" are missing from the build, but have not suggested any way to find out which ones.

net-misc/freerdp has been compiled with the following USE flags:
[ebuild   R   ~] net-misc/freerdp-3.2.0:0/3::gentoo  USE="X aad alsa cups ffmpeg fuse icu jpeg openh264 pulseaudio usb xinerama -debug -gstreamer -kerberos -sdl -server -smartcard -systemd -test -valgrind -wayland -xv"
Comment 1 Mike Gilbert gentoo-dev 2024-03-13 20:31:23 UTC
Please provide a link to the upstream issue.
Comment 2 Jordi 2024-03-14 08:29:08 UTC
Hi,

This is the upstream issue I opened: https://github.com/FreeRDP/FreeRDP/issues/9591

Thanks
Jordi
Comment 3 Mike Gilbert gentoo-dev 2024-03-15 18:31:48 UTC
Could you attach an rdp file that triggers the problem?
Comment 4 Jordi 2024-03-15 20:03:38 UTC
Please find attached an RDP file that exhibits the issue.

I think the problem lies in the drivestoredirect:s: (line 31 in the rdp file attached). If I remove this line, the connection opens and I can log in the machine.

This RDP file is from a local Win10 machine that I fire up with Qemu. I can log in the machine without using an RDP file and with driveredirect.
Comment 5 Jordi 2024-03-15 20:04:07 UTC
Created attachment 887711 [details]
Example of RDP file
Comment 6 Mike Gilbert gentoo-dev 2024-03-16 02:55:05 UTC
I am able to reproduce the issue using an RDP file containing only this setting:

drivestoredirect:s:C:\;

I think there are 2 problems here:

1. That value is malformed. Based on the documentation the backslash should come before the colon to escape it like this:

drivestoredirect:s:C\:;

Docs: https://learn.microsoft.com/en-us/windows-server/remote/remote-desktop-services/clients/rdp-files

2. Linux has no concept of a "C" drive, so this can never actually work anyway. If I update the setting to point at my home directory, it seems to resolve the error.

drivestoredirect:s:/home/floppym;
Comment 7 Jordi 2024-03-17 17:06:12 UTC
Thank you for the testing. I can confirm that removing the line solves the issue.
I have created the following issue upstream to see if they can either produce a more meaningful error or issue a warning, ignore the line and continue to connect to remote host.
https://github.com/FreeRDP/FreeRDP/issues/9989
Comment 8 Jordi 2024-03-19 20:13:48 UTC
Issue upstream has been resolved and closed.
Thanks for the support!