Hi all!
Out of contest, i'm on the way to release a new wordpress plugin on wp repo, with a custom chooser (that i maybe will publish on github also, because the chooser is a standalone js piece of code/page, that i use iframed into this plugin). The custom chooser, upload files with progress bars and can be extended with easy, to be exactly the same of the native dbx chooser: you'll use this without linking sites to get it work. I've just extend and little improve the github ready examples code. It appear a nice result. I'll publish as soon i can.
But before this, i come across to a problem that make me worry, since i can't understand at moment how it can happen.
the problem:
the code, perform curl calls to dbx to: retrieve list_shared_links, delete files, create folders, upload files, unlink files within users dbx wordpress pages etc. All nice and all working fine, but i note a problem that sometime suddenly happen without any obivious reason to me.
I test all things, so i go to delete some file, upload files, re-delete files, until (it seem to me but i'm still not completely sure if it happen exactly on deletion event) when i go to perform the deletion of some file, sometime, this happen:
after any curl call the code reload a sort of cache, just a txt file where json results are stored to retrieve file's links info. I note that on dropbox, at this time files and folders are linked to be viewed for anybody having the link, and this appear on dbx, but in true, these files or folders aren't retrieved performing a list_shared_links call.
I note that i have to unlink these files on dbx (because they appears as linked), so i re-share/link the file or folder: then when i reload the cache within the code that will perform a list_shared_links curl, files are correctly retrieved.
Substantially, it seem that sometime due to some occurred event, all files become unlinked (even if on dbx they still appear as linked), and the only way i can re-share these files/folders, would be to remove the link and create a new one, or the list_shared_links call will retrieve nothing.
I'm little confused about this at moment, and may it come out due to some other reason that reside in the way the cache is built on my code.
So asking to myself if anybody else experience something like this!?
In the while i'm waiting for this behavior to occur another time, so will go deep to better understand where the problem is.