News for hackers. Stuff that matters.
Re:Dropbox prompts password resets by mintplant on Friday August 26, 2016 @12:07AM (#12364176)
Thanks for posting this. Fortunately I'm not one of the ones affected, but I took the opportunity to rotate my Dropbox password and audit/prune my authorized devices.

https://www.dropbox.com/account/security

I had a bunch of old devices in that list and removing each one triggered a full page refresh, which took longer than normal thanks to the JS-driven single-page design of the dashboard. The removal request itself went over AJAX, so I guess someone figured it was easier to throw away the page state every click than to remove an element from the list's DOM. Made the whole thing much more tedious than it needed to be; a form with a series of checkboxes and a single "remove" button at the bottom would have done fine.

Re:Dropbox prompts password resets by jedberg on Friday August 26, 2016 @01:13AM (#12364349)
Did the exact same thing, had the exact same experience. I had a lot of really old devices on there.
Re:Dropbox prompts password resets by joshstrange on Friday August 26, 2016 @10:17AM (#12366408)
So some of the removal requests go over AJAX, other submit a form. I started to write some JS to inject into the page to add checkboxes and a submit button and fire off an AJAX to remove the selected items but I think only the computers (not phone/tablet/etc) use AJAX. What's annoying is the AJAX request even has an array for the devices to unlink... It just passes up a single id.
Re:Dropbox prompts password resets by mabcat on Friday August 26, 2016 @06:09AM (#12365271)
Same for me when removing a device. Meanwhile, removing a linked app works just as you'd expect
Re:Dropbox prompts password resets by typicalbender on Friday August 26, 2016 @07:51AM (#12365537)
It's funny because the apps linked section below that works exactly like it should, the request goes over ajax and then the DOM is updated without a full page refresh. I wonder if the different UX was an oversight or intentional...
Re:Dropbox prompts password resets by hkjgkjy on Friday August 26, 2016 @05:56AM (#12365243)
> so I guess someone figured it was easier to throw away the page state every click than to remove an element from the list's DOM.

Yet another reason to love what React and other virtual dom libs give us

Re:Dropbox prompts password resets by acdha on Friday August 26, 2016 @08:15AM (#12365641)
Can we leave the toolkit evangelism to a different thread? The subject is behavior which was routinely implemented better in the mid-90s without using JavaScript at all.
Re:Dropbox prompts password resets by hkjgkjy on Tuesday August 30, 2016 @12:36AM (#12387563)
Please take a chill pill mate. I'm just a happy user of that, as I am of many many other free software others have cooked up.
Re:Dropbox prompts password resets by naspinski on Friday August 26, 2016 @09:34AM (#12366078)
I agree with the first part of your statement, but I am curious how AJAX behavior was implemented without JavaScript? Are you talking about Java? CGI? I have no idea.
Re:Dropbox prompts password resets by acdha on Friday August 26, 2016 @10:25AM (#12366477)
Sorry if that was confusing, I wasn't trying to say AJAX-like behaviour happened without JavaScript but simply echoing mintplant's concluding observation that a 1995-style <table> with a bunch of checkboxes and a remove button would work just as well as the fancier tech stack.

(That said, I'm certainly not saying that JavaScript doesn't allow much richer UIs, only that as an industry we're often prone to assuming that the cooler tech automatically implies benefits to users – e.g. ask anyone who's had to reload a simple form UI because the AJAX logic failed to handle network / server errors, out of order dispatch, etc. in a non-confusing manner – or everyone should love your favorite tool without asking whether it has actual benefits for what they need to do.)

Re:Dropbox prompts password resets by greg5green on Friday August 26, 2016 @01:06AM (#12364330)
Weird, just removed an old laptop from mine and didn't trigger a full page refresh.
Re:Dropbox prompts password resets by klackerz on Friday August 26, 2016 @01:31AM (#12364404)
It's triggering full page refresh on removing devices for me, but not on removing old web sessions.