[HTML Comments] Copy pasting errors Topic is solved

Moderator: abstr

Locked
fjeronimo
Posts: 43
Joined: Sat Oct 12, 2019 3:14 pm

[HTML Comments] Copy pasting errors

Post by fjeronimo » Sun Oct 25, 2020 10:42 am

Hi Dan,

A few small issues when copy/pasting text into tasks with HTML Comments (all of these work fine in RTF comments), perhaps linked with escaping of URI and forbidden path characters.

Using latest stable version 8.0.9.0.

All of the following lead to a Illegal characters in path error popup when pasted into any HTML comment task and the text is not pasted (but the tool continues to work without crashing):

Code: Select all

<
>
|
anychars"anychars
anychars"anychars"
"anychars"anychars"
IllegalCharactersInPath.png
IllegalCharactersInPath.png (2.58 KiB) Viewed 2614 times

When using forward and backslashes, a similar error popup is presented but with a slightly different message Invalid URI - The format of the URI could not be determined:

Code: Select all

\
/
\"
"\
"/
/"
"""""/
"""""\
\r\n\t
InvalidUriTheFormatCouldNotBeDetermined.png
InvalidUriTheFormatCouldNotBeDetermined.png (3.17 KiB) Viewed 2614 times

If we add more than 3 forward or baclslashes in a row, then the error changes again to Invalid URI: The hostname could not be parsed:

Code: Select all

///
////
"///"
\\\
\\\\
"\\\"
InvalidUriTheHostnameCouldNotBeParsed.png
InvalidUriTheHostnameCouldNotBeParsed.png (3.02 KiB) Viewed 2614 times

Cheers,

Frederico

fjeronimo
Posts: 43
Joined: Sat Oct 12, 2019 3:14 pm

Re: [HTML Comments] Copy pasting errors

Post by fjeronimo » Sun Oct 25, 2020 12:25 pm

Ah, having two or more spaces in a row also causes llegal characters in path error:

Code: Select all

<P>&nbsp;&nbsp;</P>
<P>&nbsp; </P>

User avatar
abstr
Site Admin
Posts: 370
Joined: Sun Jul 28, 2019 12:22 pm

Re: [HTML Comments] Copy pasting errors

Post by abstr » Mon Oct 26, 2020 8:00 am

My bad. In fixing the other recent issues with filepaths I ended up using a system function which clearly is much less forgiving than I hoped.

However I'm not quite clear on what I need to do to reproduce the error...

I should add that I tried copying/pasting the text examples you provided but that didn't work.

fjeronimo
Posts: 43
Joined: Sat Oct 12, 2019 3:14 pm

Re: [HTML Comments] Copy pasting errors

Post by fjeronimo » Mon Oct 26, 2020 5:49 pm

abstr wrote:
Mon Oct 26, 2020 8:00 am
However I'm not quite clear on what I need to do to reproduce the error...

I should add that I tried copying/pasting the text examples you provided but that didn't work.
Hmm, that's odd. I have a 100% reproducible scenario on my machine for all of the above.

Steps:
  1. Create new tasklist.
  2. Add an HTML-based task.
  3. Paste any of the above text examples (e.g. >) into it.
Might not be relevant, but running this on a Windows 10 64-bit laptop with .NET Core 3.1 SDK.

I even tried a fresh install of ToDoList 8.0.9.0 (as the version I use is in source control and continously upgraded) and it's the same outcome.

fjeronimo
Posts: 43
Joined: Sat Oct 12, 2019 3:14 pm

Re: [HTML Comments] Copy pasting errors

Post by fjeronimo » Mon Oct 26, 2020 6:04 pm

I have tried it in two other machines I have -- a Windows 8.1 laptop and a Windows 10 desktop -- and the result is the same.

User avatar
abstr
Site Admin
Posts: 370
Joined: Sun Jul 28, 2019 12:22 pm

Re: [HTML Comments] Copy pasting errors

Post by abstr » Wed Oct 28, 2020 6:25 am

Excellent thanks, when I followed those simple instructions I got the error.

User avatar
abstr
Site Admin
Posts: 370
Joined: Sun Jul 28, 2019 12:22 pm

Re: [HTML Comments] Copy pasting errors

Post by abstr » Sun Nov 01, 2020 1:53 am

Fixed in 8.0.10

Locked