Bug #44461 Workbench:copyToClipboard creates only garbage characters

Submitted: 24 Apr 2009 16:41 Modified: 9 Jun 2009 15:10
Reporter: Karsten Wutzke Email Updates:
Status: Closed Impact on me:
None 
Category:MySQL Workbench Severity:S2 (Serious)
Version:5.1.10 OS:Windows (XP)
Assigned to: Alfredo Kojima CPU Architecture:Any
Tags: CHECKED, clipboard, copy, garbage characters

[24 Apr 2009 16:41] Karsten Wutzke
Description:
When using Workbench:copyToClipboard() from within a plugin, only garbage characters are copied to the Windows clipboard and thus any other application. This destructs several plugins' functions.

On the string "abcdefghijklmnopqrstuvwxyz0123456789!§$%&/()=" a runtime exception is thrown.

How to repeat:
Just run the attached test plugin which simply tries to output the string "abcdefghijklmnopqrstuvwxyz0123456789".

Suggested fix:
?
[24 Apr 2009 16:41] Karsten Wutzke
test plugin

Attachment: ClipboardExport.grt.lua (application/octet-stream, text), 2.10 KiB.

[24 Apr 2009 16:44] Karsten Wutzke
Make sure with WB 5.1.x the plugin must either be installed via the new menu item or copied to the new shared plugin dir, like

C:\Dokumente und Einstellungen\Username\Anwendungsdaten\MySQL Workbench\modules

Sorry I can't translate that into the English dir names... some place where the user data is stored, some application data dir...
[24 Apr 2009 16:48] Karsten Wutzke
tags weren't comma separated
[24 Apr 2009 16:49] Karsten Wutzke
tags changed
[24 Apr 2009 17:37] MySQL Verification Team
Thank you for the bug report.
[3 Jun 2009 22:12] Johannes Taxacher
fix confirmed. will be included in 5.1.13
[9 Jun 2009 15:10] Tony Bedford
An entry was added to the 5.1.13 changelog:

When Workbench:copyToClipboard() was used from within a plugin, only garbage characters were copied to the Windows clipboard. This affected the operation of plugins.

When a plugin attempted to output the string “abcdefghijklmnopqrstuvwxyz0123456789!§$%&/()=” a runtime exception was generated.

Portions of this website are copyright © 2001, 2002 The PHP Group

Page generated in 0.039 sec. using MySQL 8.4.7-u6-cloud

Timestamp references displayed by the system are UTC.
Content reproduced on this site is the property of the respective copyright holders.
It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.