VirtualBox

Ticket #18927 (assigned defect)

Opened 11 months ago

Last modified 3 months ago

VBoxClient clipboard fails to copy rich text from guest to host

Reported by: philip Owned by: pentagonik
Component: clipboard Version: VirtualBox 6.0.12
Keywords: Cc:
Guest type: Linux Host type: Mac OS X

Description

A variant of this bug is back in 6.0 (I tested 6.0.10 and 6.0.12):

https://www.virtualbox.org/ticket/15782

https://www.virtualbox.org/ticket/16242

Rich text (e.g., something from a web page) does not copy from guest to host; but plain text does. Expected behavior is for it to copy as plain text.

The workaround is to paste rich text into a simple text file within the guest, re-select said (what is now) plain text, then copy that to the host.

The silver lining here is copying rich text does not completely break clipboard functionality as it did in the previous bugs (thus requiring killing VBoxClient).

Change History

comment:1 in reply to: ↑ description Changed 11 months ago by socratis

Replying to philip:

A variant of this bug is back in 6.0 (I tested 6.0.10 and 6.0.12):

This is not a variant of the previous bugs, this *is* the same bug, a duplicate of #16242.

The silver lining here is copying rich text does not completely break clipboard functionality as it did in the previous bugs (thus requiring killing VBoxClient).

The problem was "temporarily" resolved by not allow copying RTF/HTML text, thus preventing the crash. A proper solution has yet to be implemented.

comment:2 Changed 9 months ago by philip

Thank you, although this began working fine; as bug #15782 was closed as a result of the fix. I did not re-experience this bug until after upgrading to 6.x. In other words, copy-n-paste was working fine; as if the fancy text was being stripped into plain text.

Version 0, edited 9 months ago by philip (next)

comment:3 Changed 8 months ago by pentagonik

Just tried to reproduce the behavior using latest VirtualBox 6.0.14 with according 6.0.14 Guest Additions. For me this works as it should -- tested with LibreOffice Writer and Firefox running on the guest with some rich text data. The data then gets transferred to the host as plain text data as it should.

Can you please repeat your test with 6.0.14 + Additions? Thanks!

comment:4 Changed 8 months ago by pentagonik

  • Owner set to pentagonik
  • Status changed from new to assigned

comment:5 Changed 8 months ago by philip

Thank you @pentagonik; I use 6.0.14 (guest additions also) and still suffer from this problem.

How exactly might I debug this? Also, should I upgrade to 6.1.0 (released yesterday) and work from there or should we figure out the problem/fix for 6.0.x?

comment:6 Changed 8 months ago by pentagonik

Does this only affect your Mac host, or can you retry it on a different host, e.g. Linux?

comment:7 Changed 8 months ago by philip

Sorry @pentagonik, I only have a macOS host available. Is there something I can do to help debug this on macOS 10.14.4? I suspect it's a macOS host specific problem.

comment:8 Changed 6 months ago by philip

For the record, 6.1.2 does not fix this.

comment:9 Changed 5 months ago by meiser1979

Copy&Paste from Firefox or Thunderbird in a Ubuntu 18.04 guest to a macOS host doesn't work.

Workaround for Firefox 73.0.1 is the  copy plain text addon, but I couldn't find any addon for Thunderbird 68.4.1.

comment:10 follow-up: ↓ 11 Changed 5 months ago by philip

Nice Firefox workaround @meiser1979, thanks.

An update: upgrading from 6.1.2->6.1.4 completely breaks copy-n-paste for me; not even plain text works. This is after updating app/guest/extensions to 6.1.4 and restarting. Downgrading everything to 6.1.2 works fine.

In other words, I recommend users not upgrade to 6.1.4.

comment:11 in reply to: ↑ 10 Changed 5 months ago by fbatschu

Replying to philip:

An update: upgrading from 6.1.2->6.1.4 completely breaks copy-n-paste for me; not even plain text works. This is after updating app/guest/extensions to 6.1.4 and restarting. Downgrading everything to 6.1.2 works fine.


This is bug #19336 see there for test builds with the fix.

comment:12 Changed 5 months ago by philip

Thanks @fbatschu.

I'm in the process of figuring out how to downgrade from 6.1 to 5.2 (I'm certain one of the 5.2 versions works fine for mac; just need to find the latest one that does); I'll report back here once found, as a suggested workaround.

comment:13 Changed 4 months ago by bird

I've reproduced the problem and hopefully fixed it. (Also added support for actually putting/getting the HTML variant of the data being copied on/from the mac clipboard. So, I got markup copied from OpenOffice on the mac host into libre office in side the ubuntu 18.04 guest.)

Fix will be included in the next release (soon).

comment:14 Changed 4 months ago by meiser1979

Firefox and Thunderbird copy'n'paste between Ubuntu 18.04 guest and macOS 10.13.6 host works fine with 6.1.6. Many thanks!!!

Last edited 4 months ago by meiser1979 (previous) (diff)

comment:15 Changed 3 months ago by philip

Nice, I also happily confirm that this is fixed! Thanks @bird!

Note: See TracTickets for help on using tickets.

www.oracle.com
ContactPrivacy policyTerms of Use