This is a staging forum for AgileBits, not an official support forum. Visit http://discussions.agilebits.com instead.

Copying JSON data to the clipboard

invalidptr
invalidptr Junior Member
<div class="IPBDescription">copy only the password with Option-Command-C</div>This bug has been around forever and I always think it's been found/fixed but I just found it again. Haven't been able to reliably reproduce it but it happens often enough to be annoying.



1. Copied the username from a 1P entry - Version 3.6.1 (build 31057) by clicking on the "Copy" graphic that appears when you hover over a field in 1P.

2. Pasted it into Apple Mail Version 4.5 (1084) - Snow Leopard latest and greatest.

3. Expected results: eng



What I got (sensitive strings have been replaced with [redacted]):

[{"securityLevel":"SL5","locationKey":"","contentsHash":"d75282fc","location":"","title":"Eng VPN PPTP","updatedAt":1311282589,"createdAt":1300910337,"secureContents":{"url":"hq.[redacted].net","username":"eng","password":"i[redacted]E"},"typeName":"wallet.computer.UnixServer"}]

Comments

  • khad
    khad Social Choreographer
    edited July 2011
    Somehow the JSON for the item was copied to the clipboard. This is a feature available if you select an item and then press Command-C on your keyboard. This [b]copies the entire item to the clipboard[/b] (so you can paste it into a folder, etc. within 1Password). If you paste the item in a text field, the JSON is displayed as you have found. Clicking the "Copy" label next to a form field should never result in this. If you can reproduce it, please let me know. Otherwise, be sure you are not using the Edit > Copy command or pressing Command-C on your keyboard to copy the entire item to your clipboard.



    If you wish to copy just the password, you can use Option-Command-C or [b]hold down the Option key[/b] while selecting "Copy Password" from the Edit menu.



    [img]https://img.skitch.com/20110723-rmidm17i58gsn2icrcpb6ksskj.png[/img]



    Please let me know how it turns out.



    Cheers,
  • invalidptr
    invalidptr Junior Member
    I definitely clicked on the "Copy" UI next to the field. So yes, this falls into one of those "hard to reproduce"/"seen by me" bugs.



    As to copying the item to the clipboard. This seems like a bug to me. In that case, shouldn't you change the type of the clipboard contents to "1P". That way you wouldn't be able to paste it into a text editor. IOW, a user should never see JSON. And in the context of copying an entire record I would argue has not purpose in being pasted into a text editor.



    Alternatively you could copy two things into the clipboard 1) JSON as "1P" and 2) a nicely formatted copy of the record as "TXT".



    My 2 cents...
  • khad
    khad Social Choreographer
    Thanks for following up on this, invalidptr. <img src='http://forum.agile.ws/public/style_emoticons/<#EMO_DIR#>/skype_smile.png' class='bbc_emoticon' alt=':-)' />



    [quote]I definitely clicked on the "Copy" UI next to the field. So yes, this falls into one of those "hard to reproduce"/"seen by me" bugs.[/quote]

    If there are some repeatable steps I can take on my own machine to see this, I would love to know what they are in order to get this resolved if there is a problem in 1Password. So far, I cannot seem to duplicate your findings, though, which makes a "fix" very difficult to produce. <img src='http://forum.agile.ws/public/style_emoticons/<#EMO_DIR#>/skype_worried.png' class='bbc_emoticon' alt=':S' />



    [quote]As to copying the item to the clipboard. This seems like a bug to me. In that case, shouldn't you change the type of the clipboard contents to "1P". That way you wouldn't be able to paste it into a text editor. IOW, a user should never see JSON. And in the context of copying an entire record I would argue has not purpose in being pasted into a text editor. [/quote]

    Pasting the JSON into a text editor comes in handy very frequently when troubleshooting, so it is definitely not something we would want to completely do away with. There has been she internal debate over the various ⌘C, ⌥⌘C, and ⇧⌘C functions, and which shortcut should be used for what, though. I'll pass your comments along to the developers.



    Please let me know if you can reproduce the issue as you originally described it (or if you are having any other trouble).



    I am happy to help!