Hi Paul

> Hey, I'm the author of Beaker.

Thanks for dropping by, and congratulations again on a fascinating bit of work.

> If things are working correctly, an ownership issue would be indicated by a 
> ArchiveNotWritableError. At the moment, a ProtectedFileNotWritableError is 
> thrown if you try to write `/` or `/dat.json`, the latter being a protected 
> manifest file.

Gotcha. So would a reasonable strategy be to do a 
dat.stat(document.location.split(“#”)[0]), and then if it comes back as a 
directory, add “/index.html” to the URL?

Many thanks,

Jeremy.

> Looking at this line 
> <https://github.com/Jermolene/TiddlyWiki5/blob/master/core/modules/savers/dat.js#L24>,
>  I think it's possible that the pathname wasn't populated because Riz was at 
> /, not /index.html. That would cause the write to attempt to be at '/', 
> resulting in the error.
> 
> I'll file an issue to give a more descriptive error for this condition. 
> Jeremy, if you can ensure that index.html is the target, that should resolve 
> this issue.
> 
> -prf
> 
> On Wed, Dec 21, 2016 at 10:01 AM, Jeremy Ruston <[email protected] 
> <mailto:[email protected]>> wrote:
> Hi Riz
> 
> You’ll need to fork the site before you can edit it.
> 
> Best wishes
> 
> Jeremy
> 
>> On 21 Dec 2016, at 16:00, Riz <[email protected] 
>> <mailto:[email protected]>> wrote:
>> 
>> 
>> Error while saving:
>> Dat Saver Error: ProtectedFileNotWritableError
>> 
>> 
>> Linux Mint 18 Sarah
>> 
>> 
>> 
>> -- 
>> You received this message because you are subscribed to the Google Groups 
>> "TiddlyWikiDev" group.
>> To unsubscribe from this group and stop receiving emails from it, send an 
>> email to [email protected] 
>> <mailto:[email protected]>.
>> To post to this group, send email to [email protected] 
>> <mailto:[email protected]>.
>> Visit this group at https://groups.google.com/group/tiddlywikidev 
>> <https://groups.google.com/group/tiddlywikidev>.
>> To view this discussion on the web visit 
>> https://groups.google.com/d/msgid/tiddlywikidev/5ab5f159-4799-455a-b7f4-13c261fc2aee%40googlegroups.com
>>  
>> <https://groups.google.com/d/msgid/tiddlywikidev/5ab5f159-4799-455a-b7f4-13c261fc2aee%40googlegroups.com?utm_medium=email&utm_source=footer>.
>> For more options, visit https://groups.google.com/d/optout 
>> <https://groups.google.com/d/optout>.
> 
> 
> -- 
> You received this message because you are subscribed to a topic in the Google 
> Groups "TiddlyWikiDev" group.
> To unsubscribe from this topic, visit 
> https://groups.google.com/d/topic/tiddlywikidev/n6yUdu2zHWo/unsubscribe 
> <https://groups.google.com/d/topic/tiddlywikidev/n6yUdu2zHWo/unsubscribe>.
> To unsubscribe from this group and all its topics, send an email to 
> [email protected] 
> <mailto:[email protected]>.
> To post to this group, send email to [email protected] 
> <mailto:[email protected]>.
> Visit this group at https://groups.google.com/group/tiddlywikidev 
> <https://groups.google.com/group/tiddlywikidev>.
> To view this discussion on the web visit 
> https://groups.google.com/d/msgid/tiddlywikidev/B71575CC-7B2A-42EB-8039-34D403221479%40gmail.com
>  
> <https://groups.google.com/d/msgid/tiddlywikidev/B71575CC-7B2A-42EB-8039-34D403221479%40gmail.com?utm_medium=email&utm_source=footer>.
> 
> For more options, visit https://groups.google.com/d/optout 
> <https://groups.google.com/d/optout>.
> 
> 
> -- 
> You received this message because you are subscribed to the Google Groups 
> "TiddlyWikiDev" group.
> To unsubscribe from this group and stop receiving emails from it, send an 
> email to [email protected] 
> <mailto:[email protected]>.
> To post to this group, send email to [email protected] 
> <mailto:[email protected]>.
> Visit this group at https://groups.google.com/group/tiddlywikidev 
> <https://groups.google.com/group/tiddlywikidev>.
> To view this discussion on the web visit 
> https://groups.google.com/d/msgid/tiddlywikidev/CAD4FMegcPHM%3DwdvZTRqr2Gnd8BJm%2BYhDqZRqgcvXYejAZo-pKA%40mail.gmail.com
>  
> <https://groups.google.com/d/msgid/tiddlywikidev/CAD4FMegcPHM%3DwdvZTRqr2Gnd8BJm%2BYhDqZRqgcvXYejAZo-pKA%40mail.gmail.com?utm_medium=email&utm_source=footer>.
> For more options, visit https://groups.google.com/d/optout 
> <https://groups.google.com/d/optout>.

-- 
You received this message because you are subscribed to the Google Groups 
"TiddlyWikiDev" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/tiddlywikidev.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywikidev/51564AFE-5676-4ADE-BB76-AB0D46BC36AC%40gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to