AlephNote icon indicating copy to clipboard operation
AlephNote copied to clipboard

Error parsing filename with special chars

Open void285 opened this issue 3 years ago • 1 comments

With local folder sync enabled, I found files with special chars in filename will cause error, %2F%2F UserScript for example, details as below:

System.FormatException: Additional non-parsable characters are at the end of the string.
   at System.ParseNumbers.StringToInt(String s, Int32 radix, Int32 flags, Int32* currPos)
   at System.Convert.ToInt32(String value, Int32 fromBase)
   at MSHC.Util.Helper.FilenameHelper.ConvertStringFromFilenameBack(String input)
   at AlephNote.Common.Operations.RawFolderRepository.<EnumerateFolder>d__21.MoveNext()
   at System.Collections.Generic.List`1..ctor(IEnumerable`1 collection)
   at System.Linq.Enumerable.ToList[TSource](IEnumerable`1 source)
   at AlephNote.Common.Operations.RawFolderRepository.DoSyncThreaded(Stopwatch sw, Int64 t1, List`1 entriesNoteRepo, Dictionary`2 realNoteMapping)
   at AlephNote.Common.Operations.RawFolderRepository.

void285 avatar Sep 25 '22 10:09 void285

Hmm ok I will look into it

Mikescher avatar Dec 01 '22 14:12 Mikescher