[
https://issues.apache.org/jira/browse/GUACAMOLE-478?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16927209#comment-16927209
]
Michael Jumper commented on GUACAMOLE-478:
------------------------------------------
{quote}
Why are newlines being converted at all? I would argue all newlines should be
left intact, and if we need to add any (i.e. modifications made in the
guacamole overlay) we can choose a sensible default.
{quote}
They are not currently being converted, at least not by Guacamole nor any part
of the stack. They are being normalized by the browser.
The problem is not that the web application is incorrectly converting newlines,
but that no such conversion is performed. Since Windows RDP seems to expect
Windows-style CR+LF newlines within the clipboard, things will not work as
expected if the browser uses different newlines within the clipboard data
provided to Guacamole. The solution is to perform the required conversion and
not assume that the browser will provide clipboard data in the same format as
the remote desktop server requires.
Before that is done, it needs to be established whether CR+LF newlines are a
requirement for all text clipboard data for RDP, or if this is only the case
for Windows. This will dictate whether the conversion needs to be tied to a
connection parameter.
> RDP clipboard uses incorrect newline characters
> -----------------------------------------------
>
> Key: GUACAMOLE-478
> URL: https://issues.apache.org/jira/browse/GUACAMOLE-478
> Project: Guacamole
> Issue Type: Bug
> Components: RDP
> Reporter: Amarjeet Singh
> Priority: Minor
> Attachments: guacamole_clipboard_interfering_with_windows_newlines.mp4
>
>
> With the RDP protocol originating from Windows, the format of text clipboard
> contents is assumed to use Windows-style newline characters (CR+LF).
> Guacamole currently does not attempt to translate newline characters, sending
> the format used within the received clipboard stream. This means that
> applications running within RDP which only support Windows-style newlines,
> such as Notepad, fail to handle received clipboard data.
> Applications which can handle both UNIX-style and Windows-style newline
> characters are unaffected.
--
This message was sent by Atlassian Jira
(v8.3.2#803003)