TiddlyWiki / TiddlyFox

An extension for older versions of Mozilla Firefox to enable TiddlyWiki to save changes
52 stars 24 forks source link

Crash on saving to path including a Greek letter #25

Open Jermolene opened 10 years ago

Jermolene commented 10 years ago

From https://groups.google.com/d/topic/tiddlywiki/zRzTPdKltco/discussion

I can't save the wiki when the destination path contains a folder with greek letters in windows 7.

I end up with js error

[Exception... "Component returned failure code: 0x80520015 (NS_ERROR_FILE_ACCESS_DENIED) [nsIFileOutputStream.init]"  nsresult: "0x80520015 (NS_ERROR_FILE_ACCESS_DENIED)"  location: "JS frame :: chrome://tiddlyfox/content/overlay.js :: TiddlyFox.saveFile :: line 98"  data: no]

any solution to this?
ghost commented 9 years ago

This is strange I deleted the file, then used save and it worked. Still works.

megafanat commented 9 years ago

This bug appears on version 1.0alpha18.1-signed: https://addons.mozilla.org/en-US/firefox/addon/tiddlyfox/. This version is latest version in Firefox addons repository. I haven't tested latest version from Github.

Wiki cannot be saved when file path contains unicode characters with code more than 255 (Russian, Greek, Arabic and so on - all languages except Western Europe).

Unicode is standard encoding in Windows. Also Unicode is most popular encoding in modern WEB-sites. So I think that this bug is serious.

Scibearspace commented 8 years ago

I have just suffered the same error message !

[Exception... "Component returned failure code: 0x80520015 (NS_ERROR_FILE_ACCESS_DENIED) [nsIFileOutputStream.init]" nsresult: "0x80520015 (NS_ERROR_FILE_ACCESS_DENIED)" location: "JS frame :: chrome://tiddlyfox/content/overlay.js :: TiddlyFox.saveFile :: line 98" data: no]

However the file does save.... may situation may be a bit different...

Debian 8, with firefox (sorry IceWeasel ), TiddlyFox 1.0alpha18.1signed

I downloaded the latest TW5 'empty' (version 5.1.11 to be exact).

I have another copy of tiddlyWiki (running V 5.1.9) that doesn't present this error.

I should note that 5.1.11 doesn't allow me to use the < $:\tags\SideBar > tag either (I like to add a contents tab to the side bar).

If there is anything I can test, drop me a line.

Dave M

ps. I love TW, I just wish I could get it to play better with confluence (I like their Roadmap Planer macro, but haven't been able to find how they have implemnted it .... yet !) - that would be a great plugin for TW.