Closed
Bug 984731
Opened 11 years ago
Closed 11 years ago
Accept DELETE requests at the root service endpoint
Categories
(Cloud Services Graveyard :: Server: Sync, defect)
Cloud Services Graveyard
Server: Sync
Tracking
(Not tracked)
VERIFIED
FIXED
People
(Reporter: rfkelly, Unassigned)
References
Details
(Whiteboard: [qa+])
Attachments
(2 files)
1.76 KB,
patch
|
telliott
:
review+
|
Details | Diff | Splinter Review |
574 bytes,
patch
|
telliott
:
review+
|
Details | Diff | Splinter Review |
The tokenserver cleanup script in Bug 984297 current needs to know some internal details of the syncstorage API in order to send it a "delete all data for this user" request. ISTM this would be neater if it could assume all services accept "DELETE <endpoint-url>" as such a command. Here's what it would take to make syncstorage accept such a request.
Attachment #8392673 -
Flags: review?(telliott)
Reporter | ||
Updated•11 years ago
|
OS: Linux → All
Hardware: x86_64 → All
Reporter | ||
Comment 1•11 years ago
|
||
And a corresponding docs change. It's not a big deal but this seems neater to me than calling "DELETE /storage" from the tokenserver scripts.
Attachment #8392674 -
Flags: review?(telliott)
Comment 2•11 years ago
|
||
Comment on attachment 8392674 [details] [diff] [review]
sync15-docs-delete-at-endpoint-url.diff
Makes sense. You delete all the stuff under /info as well.
It's a little odd that you can DELETE the root, but not do anything else to it, but that's mostly aesthetic.
Attachment #8392674 -
Flags: review?(telliott) → review+
Comment 3•11 years ago
|
||
Comment on attachment 8392673 [details] [diff] [review]
sync15-delete-at-endpoint-url.diff
Review of attachment 8392673 [details] [diff] [review]:
-----------------------------------------------------------------
::: syncstorage/views/__init__.py
@@ +177,5 @@
> + storage = request.validated["storage"]
> + storage.delete_storage(request.validated["userid"])
> + return {}
> +
> +
Are we going to remove the corresponding DELETE /storage? The test implies we should, but there's no removal here.
Comment 4•11 years ago
|
||
Comment on attachment 8392673 [details] [diff] [review]
sync15-delete-at-endpoint-url.diff
Review of attachment 8392673 [details] [diff] [review]:
-----------------------------------------------------------------
I guess we probably shouldn't for now, come to think of it, since the client will still be deleting to the other endpoint. Adding Nick and Richard to note it as something we should deprecate.
Attachment #8392673 -
Flags: review?(telliott) → review+
Comment 5•11 years ago
|
||
I think there's a difference between "delete my account" and "wipe my storage", so I see no reason to merge the two.
Comment 6•11 years ago
|
||
From the perspective of the storage server, the calls are identical, though.
Updated•11 years ago
|
Whiteboard: [qa+]
Reporter | ||
Comment 7•11 years ago
|
||
> Are we going to remove the corresponding DELETE /storage?
> The test implies we should, but there's no removal here.
Nope, we keep it for b/w compat, and there are other tests (unchanged by this patch) that still exercise it.
https://github.com/mozilla-services/docs/commit/3a6745b332d7739905ca85c4d4852a2f3529510a
https://github.com/mozilla-services/server-syncstorage/commit/986ae66ddb394c3c2097eec7580d4692b8efe92a
Status: NEW → RESOLVED
Closed: 11 years ago
Resolution: --- → FIXED
Comment 8•11 years ago
|
||
See also https://github.com/mozilla-services/server-syncstorage/issues/16
To be verified together with next deploy to Sync Stage.
Comment 9•11 years ago
|
||
I think we are all good here.
Super clean Sync load tests last week and this week.
Status: RESOLVED → VERIFIED
Updated•2 years ago
|
Product: Cloud Services → Cloud Services Graveyard
You need to log in
before you can comment on or make changes to this bug.
Description
•