MartinSGill / TodoTxtJs

A Javascript web app implementation of TodoTxt
72 stars 29 forks source link

Dropbox file 0k this morning #72

Closed ultrablue closed 10 years ago

ultrablue commented 10 years ago

Howdy:

After loading up TodoTxtJs this morning, I was surprised to see that Todo/todo.txt appeared to be empty.

I took a look at Dropbox and indeed Todo/todo.txt had been changed moments before, and it was empty.

I restored from the last version written last night via the Load... tool.

Now, when I make a change or manually Save, TTJs says that it has saved to Dropbox, but the file hasn't been updated at Dropbox.

I took a look at Firefox's console, but there aren't any errors there.

I'm not all that familiar with Dropbox -- is there something more that I need to do there?

Firefox 31.0.

Thanks, Greg

ultrablue commented 10 years ago

Hm. So I refreshed the page and then I got the page that asks if it's ok to access Todo/todo.txt. I said yes. TTJs loaded the empty file. I imported the local version that I had downloaded from Dropbox previously. I saved it. Dropbox reported that the file had been updated seconds ago.

So, I suppose that I should say that I have FF configured to re-open the tabs that were open when it was closed (via Tab Mix Plus, I believe), so it could be a caching issue.

MartinSGill commented 10 years ago

The authorisation token for dropbox is saved in browser local storage. The browser's security mechanisms ensure this data is not made available to pages other than the one that created it.

That you were asked to re-authorise suggests that this happened. Is it correctly saving again?

ultrablue commented 10 years ago

HI, Martin: Yes. I've restarted the browser in the meantime and it seems to have done the right thing.

I'll post back here if it happens again, perhaps even with more details.

Thanks! Greg

ultrablue commented 10 years ago

Howdy:

Everything looks ok this morning. Good old intermittent problems.

I'll let you know if it happens again.

Thanks! Greg