-
Notifications
You must be signed in to change notification settings - Fork 669
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[OS X] Copied link has bogus Pasted-Contact.vcf #3300
Comments
Using client 1.8.1 build 2335 |
hmm, I am not sure if I understand correctly. Please try to explain a bit more in detail what you are doing and expecting. Thanks |
When creating a link from the Mac OwnCloud client, select the "Copy Link" button and paste that link into an email. The expected behaviour is that a hyperlink would be pasted from the clipboard. What you get is a vcard contact as shown in the first image below. Testing this further by looking at the received email, the "link" is presented as a vcard, consistent with what the Mac mail client showed above. If you click the vcard, it downloads into your Contacts. What we would expect is for the link to be displayed as hypertext and clicking that link would take you to the Owncloud instance to download the file. |
More info on the above. If you paste the copied link into an application such as TextEdit, you get the expected URL. You can then copy/paste that URL from TextEdit into Mac Mail and you get the expected behaviour of a clickable link. As an app which is purely an ASCII editor, TextEdit would have a limited understanding/view of the possible data types in the pasteboard, so it's probably more forgiving of what it's seeing copied in from the OwnCloud client. Mac Mail on the other hand would handle a wider variety of pasted types and thus mistake the text url for a vcard, based on the UTI. It seems as if this is a QT bug where the UTI isn't being set correctly by QClipboard::setText(). I would think it should be forced to public.plaintext. Other apps such as SlickEdit have had the same problem reported. https://community.slickedit.com/index.php?topic=10962.0. SlickEdit users were able to work around the problem by turning off the html clipboard feature. Docs on how UTI is implemented by OSX pasteboards is here: https://developer.apple.com/library/mac/documentation/Cocoa/Conceptual/PasteboardGuide106/Articles/pbConcepts.html |
@razyr is right. I examined the clipboard with ClipboardViewer and found out, that when I copy a plain text from another application than it is only stored in the cliboard-spaces "public.utf8-plain-text" and "NSStringPBoardType". Which is absolutely enough. But when I copy the link via owncloud-client (rightclick ...) than the link is stored in 10 different clipboard-spaces. One of them (I guess the problematic one) is called public.vcard. So whenever I paste my clipboard into another application, it is up to the application to decide which clipboard space to use. Apple Mail apperently chooses "public.vcard" or "Apple VCard pasteboard type". (See attached image) There must be a way to copy the string into only the plain-text section... |
I think the "Needs Info" label could have been removed on this ticket back in June. Not much more we can document as users, but as it stands this functionality is essentially broken for Mac users. |
@guruz, I tested this issue, and now:
@guruz, my question is: This is correct?, Thanks I tested this issue with: |
It is a bug reported in QT today https://bugreports.qt.io/browse/QTBUG-48953 maybe it help you |
@szujak It's worked around in our nightly builds. Feel free to try (but they contain quite some untested code, so as usual be cautious and have backups..) |
Nobody reported back, but I'm assuming this is fixed now in the builds mentioned above |
It existed to work around a Qt bug that has been fixed https://bugreports.qt.io/browse/QTBUG-48953 owncloud#3300
I'm seeing this same behavior with Mojave (10.14.3), Mail.App and Microsoft Remote Desktop -- Ctrl-C copy from MRD pastes as a VCF in Mail.app. |
@srhuddle Please open a new issue with the relevant information (steps to reproduce, version etc). |
Hello,
When using the copy share-link in the client, and pasting into another program (ex mail-client), it paste the content as a object called: Pasted-Contact.vcf, instead of a text-link
The text was updated successfully, but these errors were encountered: