agea/CmisJS

getObjectByPath crashes when path contains certain accented characters

Closed this issue · 0 comments

Hello.
Invoking getObjectByPath silently crashes the application (no exception is raised, the application simply dies) when path contains certain accented characters.
One of these I've identified is the "č" (U+010D, č, c4 8d, č, č, LATIN SMALL LETTER C WITH CARON).
My test application is a console command copying files from the local filesystem to an Alfresco 4.2 repository.
How to reproduce: invoke
getObjectByPath(parent['cmis:path']+'/'+filename).ok(function(folder){
with filename = "pače.txt"