Can't copy (mostly) anything when "<carets are placed like this>"

Steps to reproduce

Starting from scratch, what are the steps to make the bug happen? The fewer the steps, the better.

  1. Write anything that is between ā€œ<ā€ and ā€œ>ā€(other combinations, e.g. ā€œ<ā€¦<ā€ ā€œ>ā€¦>ā€ ā€œ>ā€¦<ā€).
  2. Copy it (edit: including the carets).
  3. Try to paste it.
    3a. Check your clipboard.

Expected result

What do you expect to see after carrying out the steps above?

It should copy when I copy the text and paste when I paste it.

Actual result

Instead of the expected result, what happened?

It doesnā€™t actually copy it at all (and therefore either pastes nothing, or the previously copied thing). However, if I have something outside of the the ā€œ<ā€¦>ā€ it will get pasted. Itā€™s only ā€œnegatedā€ one time. So I can enclose it with even more carets in the same direction on both sides, and only the innermost carets (and the content inside them) will not be pasted.

So something like ā€œ<<>>ā€ will be pasted as ā€œ<<>>ā€.

Environment

Which operating system are you using? Which browser are you using? If youā€™re using a desktop or mobile app, whatā€™s the version number of Dynalist?

Anywhere on any platform that Dynalist supports (Chrome + Ubuntu, Windows Desktop Beta, the mobile website). I have double checked via programs that log my clippings as well (and they do not pick up anything).

Weird, I canā€™t reproduce this bug with the steps you provided. What I get:

When I copied some text between < and >, the paste was successfully. When I copied text that includes < and >, pasting inside Dynalist didnā€™t work, but with Clipboard Test I could verify that things were copied, itā€™s just that paste stopped working for some reason.

I used Ctrl+C. Did you use the right click menu to copy instead?

Huh, thatā€™s strange that it copies. I tried it with the Clipboard Test as well. and it works for me too.

Sorry about the confusion - the first thing you tested does in fact work. The second one is the one that Iā€™m pointing out.

I used Ctrl+C as well.

tl;dr Iā€™m experiencing & doing exactly the same thing; no new information other than that.

1 Like

So if what you copy contains < and >, does it copy (checking with Clipboard Test)?

I know pasting doesnā€™t work for a fact (at least on my OS & browser), not sure about the copying part.

It does on the desktop, but not on mobile.

It wonā€™t paste on either platform, as youā€™ve said.

Hmm indeed I didnā€™t test on mobile. Thanks for the clarification!

1 Like

Itā€™s more as though I assumed that since it didnā€™t work on mobile, that I thought it didnā€™t work on the desktop. I didnā€™t check the clipboard loggers on my desktop, because I assumed that through the a clipboard sharing program (Join), it would have sent to my mobile device. But it wasnā€™t on, so it never shared anything. Hahaha.

Hey,

Iā€™m currently facing the same issue with Chrome on Windows 10 (and also on Ubuntu 16.04). Ctrl+C is fine; pasting works everywhere except inside itemā€™s ā€œtitlesā€ (that is, it does work inside notes). It looks like a misbehaving input sanitizer, but I may be wrong.

By the way, thanks a lot for this forum (and everything else)! Keep being awesome!

2 Likes

Thanks for the kind words! :blush:

Same issue meaning canā€™t copy when when content is surrounded by < and >, or canā€™t copy at all? Since youā€™re replying to this post Iā€™m guessing itā€™s the former, but just want to make sure.

Oops, sorry for not being clearer. Yes, I referred to the first case, but I just tested this again and the problem is actually a little weirder. Letā€™s say my test text is oh <hi> <<there>>!, this is what happens in different scenarios (tested on desktop Chrome on Windows 10; I havenā€™t tested on mobile):

  • Ctrl+C from anywhere > Ctrl+V to elsewhere*: ok
  • Ctrl+C from elsewhere* > Ctrl+V to anywhere: ok
  • Ctrl+C from title or note > Ctrl+V to title: buggy; result: oh <>!
  • Ctrl+X from anywhere > Ctrl+V to anywhere: ok

*Elsewhere means anywhere (inside or outside Dynalist) except titles and notes.

Maybe this came out a little confusing @_@
In other words, cut-paste is ok and copy-paste is only buggy when copying from Dynalist items, but works when copying from anywhere else (e.g. Dynalistā€™s search box or another website).

I hope I could help!

1 Like

I did what @EdJr did, and basically heā€™s adding onto whatever we already know, by including that this only affect the bullet points, but not the notes (that can be added if not present, obviously) of those bullet points, where it works as expected.

1 Like

@EdJr @JP1, thanks for the help guys! @Shida will take a look at this soon.

We recently made some changes to copy and paste to fix some bugs (e.g. copying things used to copy over extra empty lines). Maybe the minor refactor caused this. I can imagine that happening, since we could be stripping away some HTML tags (which contains < and >). Thatā€™s the only connection I could make.

Again thatā€™s just a guess. @Shida will update here once he starts investigating this issues.

Thanks again guys! :wave:

2 Likes

So after some debugging it seems that we are not escaping HTML correctly when generating the content to be put into the clipboard, so when you paste back, it couldnā€™t recognize the misformatted content that was inside the clipboard.

I have a fix in place, and it will be deployed sometimes today!

4 Likes

Itā€™s deployed! The fix should be in effect once you refresh the browser.

3 Likes