Bug 1247535
| Summary: | [RFE] Spice: support rich text copy & paste | ||||||
|---|---|---|---|---|---|---|---|
| Product: | Red Hat Enterprise Virtualization Manager | Reporter: | Andrei Stepanov <astepano> | ||||
| Component: | RFEs | Assignee: | Scott Herold <sherold> | ||||
| Status: | CLOSED WONTFIX | QA Contact: | Gil Klein <gklein> | ||||
| Severity: | low | Docs Contact: | |||||
| Priority: | unspecified | ||||||
| Version: | 3.6.0 | CC: | dblechte, fziglio, gklein, lsurette, mtessun, rbalakri, srevivo, tpelka, ykaul | ||||
| Target Milestone: | --- | Keywords: | FutureFeature | ||||
| Target Release: | --- | ||||||
| Hardware: | Unspecified | ||||||
| OS: | Unspecified | ||||||
| Whiteboard: | |||||||
| Fixed In Version: | Doc Type: | Enhancement | |||||
| Doc Text: | Story Points: | --- | |||||
| Clone Of: | |||||||
| : | 1256775 (view as bug list) | Environment: | |||||
| Last Closed: | 2016-12-16 08:38:46 UTC | Type: | Bug | ||||
| Regression: | --- | Mount Type: | --- | ||||
| Documentation: | --- | CRM: | |||||
| Verified Versions: | Category: | --- | |||||
| oVirt Team: | Spice | RHEL 7.3 requirements from Atomic Host: | |||||
| Cloudforms Team: | --- | Target Upstream Version: | |||||
| Embargoed: | |||||||
| Bug Depends On: | 1381906 | ||||||
| Bug Blocks: | |||||||
| Attachments: |
|
||||||
|
Description
Andrei Stepanov
2015-07-28 09:19:52 UTC
Our software does not handle formats other than text and images. I tried to search for some tools to dump data stored on clipboard. For X xclip is perfect, allows to see all formats of data and retrieve one by one. For Windows beside "Clipboard Viewer" for Windows XP I didn't find any specific (lot of tools for doing awesome stuff with the clipboard but none for an easy raw dump). So I wrote my own (as was easy too!), I'll attach to this ticket. Basically two formats are supported for text+images: RTF and HTML (RTF even on Linux by oowriter!). Linux: - copying from Firefox produce a piece of html in text/html format with images linked to html page (with URLs to internet), no RTF; - copying from oowriter (same data after a paste to it) produce RTF and HTML, HTML has embedded images (encoded with base64). Windows: - copying from IE produce both HTML and RTF. RTF does not contain images. HTML format is different as it has an header (search "html format clipboard msdn" on Google, for instance I got https://msdn.microsoft.com/en-us/library/windows/desktop/ms649015%28v=vs.85%29.aspx for format) and HTML start from start of page till the copied data. Security note for implementation: HTML can contain URLs which could force the guest that receive data to fetch these URLs. Consider for instance what happen for local URLs. Could images be included in the output? Could code (JavaScript) be executed in destination guest? Malicious guest could insert links in the clipboard invisible but that help track other guest (information like IP address for instance). Opened https://bugzilla.redhat.com/show_bug.cgi?id=1256775 to track same issue on Fedora. Created attachment 1066835 [details]
Small Windows utility to dump clipboard content
I compile it with a simple Makefile as
CC := i686-w64-mingw32-gcc
CFLAGS := -s -O2 -Wall
dumpclip.exe: dumpclip.c Makefile
$(CC) $(CFLAGS) -o $@ $<
Same as for BZ 1381906. (See https://bugzilla.redhat.com/show_bug.cgi?id=1381906#c3) As such closing as WONTFIX as well. Please reopen with a business justification, if this is really needed. |