Opened 8 years ago

Closed 7 years ago

Last modified 7 years ago

#4151 closed defect (fixed)

[PATCH] Remove deprecated SendGetRatingList

Reported by: elexis Owned by: sbirmi
Priority: Should Have Milestone: Alpha 22
Component: Multiplayer lobby Keywords: patch
Cc: Patch:

Description (last modified by elexis)

Since r16964, the SendGetRatingList calls from lobby.js are ignored on the server side (XpartaMupp.py) as they were too spammy.

The other remains in XmppClient.cpp and lobby.js, potentially StanzaExtensions.cpp should be removed as well.

Attachments (2)

4151-remove-sendgetratinglist-rev1.patch (4.3 KB ) - added by sbirmi 7 years ago.
remove SendGetRatingList
4151-remove-sendgetratinglist-rev2.patch (4.9 KB ) - added by sbirmi 7 years ago.
adding name to programming.json

Download all attachments as: .zip

Change History (9)

comment:1 by sbirmi, 7 years ago

Owner: set to sbirmi

comment:2 by sbirmi, 7 years ago

Again.. looks like a straightforward change. Might be obvious to others but I went looking. The leaderboard does not rely on rating list. With the patch I'm going to attach, I am removing SendGetRatingList() from the JSInterface_Lobby as well (which calls XmppClient's code which is also removed). Invocation from lobby.js is also removed.

There is still code in EcheL0n.py:sendRatingList() which seems to reply to rating list requests. Should that be kept?

comment:3 by sbirmi, 7 years ago

Keywords: rfc patch added
Milestone: BacklogWork In Progress
Summary: Remove deprecated SendGetRatingList[PATCH] Remove deprecated SendGetRatingList

comment:4 by elexis, 7 years ago

Thanks for your patches! Please don't forget to add your nickname and perhaps realname to the programming.json file, so we have you in the contributor list.

by sbirmi, 7 years ago

adding name to programming.json

comment:5 by elexis, 7 years ago

Resolution: fixed
Status: newclosed

In 19463:

Remove SendGetRatingList lobby function which is deprecated and ignored serverside since rP16964 because it caused performance issues and therefore shouldn't be used anymore.

Fixes #4151
Patch by: sbirmi

comment:6 by elexis, 7 years ago

Description: modified (diff)
Keywords: simple rfc removed
Milestone: Work In ProgressAlpha 22

Thanks for the patch and sorry that it took so long again!

comment:7 by elexis, 7 years ago

There is still code in EcheL0n.py:sendRatingList() which seems to reply to rating list requests. Should that be kept?

Yes, it must be kept as that request is sent from XPartaMupp.

However (unrelated to this client side change), there should be a check that this request is sent by a trustworthy client. I've discussed this with scythetwirler on irc yesterday and we think that a moderator check should be sufficient (as opposed to adding a command line argument for the name of the bot).

Note: See TracTickets for help on using tickets.