Page 1 of 1

[HTML Comments] Copy pasting errors

Posted: Sun Oct 25, 2020 10:42 am
by fjeronimo
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 2617 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 2617 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 2617 times

Cheers,

Frederico

Re: [HTML Comments] Copy pasting errors

Posted: Sun Oct 25, 2020 12:25 pm
by fjeronimo
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>

Re: [HTML Comments] Copy pasting errors

Posted: Mon Oct 26, 2020 8:00 am
by abstr
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.

Re: [HTML Comments] Copy pasting errors

Posted: Mon Oct 26, 2020 5:49 pm
by fjeronimo
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.

Re: [HTML Comments] Copy pasting errors

Posted: Mon Oct 26, 2020 6:04 pm
by fjeronimo
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.

Re: [HTML Comments] Copy pasting errors

Posted: Wed Oct 28, 2020 6:25 am
by abstr
Excellent thanks, when I followed those simple instructions I got the error.

Re: [HTML Comments] Copy pasting errors

Posted: Sun Nov 01, 2020 1:53 am
by abstr
Fixed in 8.0.10