-
Notifications
You must be signed in to change notification settings - Fork 334
Description
Upgraded from 3.9x to 3.10 and now whenever someone submits the correct answer to a flag, they get a 404 error.
Submitting an incorrect answer does not generate a 404.
Refreshing the page shows that the score was successfully recorded.
[E 211007 19:20:42 web:1793] Uncaught exception POST /user/missions/boxes?uuid=78ef8d6a-dd79-43a6-826e-dd71cc6ca5cf (108.XXX.XXX.XXX)
HTTPServerRequest(protocol='https', host='www.zzzz.io', method='POST', uri='/user/missions/boxes?uuid=78ef8d6a-dd79-43a6-826e-dd71cc6ca5cf', version='HTTP/1.1', remote_ip='108.XXX.XXX.XXX')
Traceback (most recent call last):
File "/usr/local/lib/python3.6/dist-packages/tornado/web.py", line 1702, in _execute
result = method(*self.path_args, **self.path_kwargs)
File "/home/rtb/RootTheBox/libs/SecurityDecorators.py", line 46, in wrapper
return method(self, *args, **kwargs)
File "/home/rtb/RootTheBox/libs/SecurityDecorators.py", line 77, in wrapper
return method(self, *args, **kwargs)
File "/home/rtb/RootTheBox/handlers/MissionsHandler.py", line 194, in post
if flag is not None and self.attempt_capture(flag, submission):
File "/home/rtb/RootTheBox/handlers/MissionsHandler.py", line 444, in attempt_capture
self.event_manager.flag_captured(user, flag)
File "/home/rtb/RootTheBox/libs/EventManager.py", line 203, in flag_captured
Notification.create_broadcast(team, "Flag Capture", message, SUCCESS)
File "/home/rtb/RootTheBox/models/Notification.py", line 112, in create_broadcast
cls.create_team(team, title, message, icon)
File "/home/rtb/RootTheBox/models/Notification.py", line 104, in create_team
for user in team.members:
AttributeError: 'User' object has no attribute 'members'
[E 211007 19:20:42 BaseHandlers:197] Request from 108.XXX.XXX.XXX resulted in an error code 500:
Traceback (most recent call last):
File "/usr/local/lib/python3.6/dist-packages/tornado/web.py", line 1702, in _execute
result = method(*self.path_args, **self.path_kwargs)
File "/home/rtb/RootTheBox/libs/SecurityDecorators.py", line 46, in wrapper
return method(self, *args, **kwargs)
File "/home/rtb/RootTheBox/libs/SecurityDecorators.py", line 77, in wrapper
return method(self, *args, **kwargs)
File "/home/rtb/RootTheBox/handlers/MissionsHandler.py", line 194, in post
if flag is not None and self.attempt_capture(flag, submission):
File "/home/rtb/RootTheBox/handlers/MissionsHandler.py", line 444, in attempt_capture
self.event_manager.flag_captured(user, flag)
File "/home/rtb/RootTheBox/libs/EventManager.py", line 203, in flag_captured
Notification.create_broadcast(team, "Flag Capture", message, SUCCESS)
File "/home/rtb/RootTheBox/models/Notification.py", line 112, in create_broadcast
cls.create_team(team, title, message, icon)
File "/home/rtb/RootTheBox/models/Notification.py", line 104, in create_team
for user in team.members:
AttributeError: 'User' object has no attribute 'members'
[E 211007 19:20:42 web:2243] 500 POST /user/missions/boxes?uuid=78ef8d6a-dd79-43a6-826e-dd71cc6ca5cf (108.76.207.50) 70.43ms
[I 211007 19:20:42 web:2243] 101 GET /connect/notifications/updates (108.XXX.XXX.XXX) 0.61ms
Tried with Python 2 and 3 (Same outcome)
Root the Box v3.10.0
SQL Alchemy v1.4.13
Torando v6.1
(Always looking for a tip jar where I can send a few bucks you alls way since I appreciate your hard work!)