Closed Bug 1106902 Opened 10 years ago Closed 10 years ago

After deleting one room, the 'GET /rooms’ method includes the deleted rooms

Categories

(Hello (Loop) :: Server, defect)

x86
macOS
defect
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: oteo, Assigned: leplatrem)

Details

(Whiteboard: [loop-server 0.15.0])

Attachments

(1 file)

Loop server has been changed to report the deleted rooms after a Push notification when the client executes a ‘GET /rooms?version=<version>’ request (where version is the one delivered in the notification).  This is documented in [1]: "Additionally, if a "?version=<version>" parameter is included, then the list will include the rooms that have been deleted since that version.” However, the deleted rooms are not only returned when the version parameter is included, but also when the client executes a ‘GET /rooms’ without the version parameter. E.g. this is received as part of such a request: {"roomToken":"VHEB5zvl978","deleted":true},{"roomToken":"iw_LMr6rHI0","deleted":true},{"roomToken":"pdq_mupye78","deleted":true},{"roomToken":"T3Cz1T9Eyas","deleted":true},{"roomToken":"OVyRBE6DL7M","deleted":true}] [1] https://wiki.mozilla.org/Loop/Architecture/Rooms
Please note that this does not occur in current Development server but on a custom server we have deployed based on current Loop Server master branch.
I suspect you are expecting to not have these included, correct? If so, we'll make this happen ;)
(In reply to Alexis Metaireau (:alexis) from comment #2) > I suspect you are expecting to not have these included, correct? If so, > we'll make this happen ;) Very correct, Thanks a lot Alexis!
Attachment #8542505 - Flags: review?(rhubscher) → review+
Status: NEW → RESOLVED
Closed: 10 years ago
Resolution: --- → FIXED
Assignee: nobody → mathieu
Whiteboard: [loop-server 0.15.0]
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: