Opened 4 weeks ago

Last modified 4 weeks ago

#31247 new defect

inconsistent response data (not all fields provided) on details document requests

Reported by: nusenu Owned by: metrics-team
Priority: Medium Milestone:
Component: Metrics/Onionoo Version:
Severity: Normal Keywords:
Cc: Actual Points:
Parent ID: Points:
Reviewer: Sponsor:

Description

for the following request 3 fields are expected in the output (and it works as expected):

https://onionoo.torproject.org/details?lookup=661EBD854F07109F0F7CEDC86C2A3F565FC01C3B&fields=fingerprint,nickname,verified_host_names

{"version":"7.0",
"build_revision":"7dc8dae",
"relays_published":"2019-07-25 08:00:00",
"relays":[
{"nickname":"VelociRapTor","fingerprint":"661EBD854F07109F0F7CEDC86C2A3F565FC01C3B","verified_host_names":["cker.cz","cracking.cz","e164.cz","hacking.cz","hacking.sk","klubalova.cz","klubalovi.cz","mail.cker.cz","mail.cracking.cz","mail.e164.cz","mail.emkei.cz","mail.hacking.cz","mail.hacking.sk","mail.klubalova.cz","mail.klubalovi.cz","mail.martinklubal.com","mail.martinklubal.cz","mail.pentest.cz","mail.pentester.cz","mail.pentesting.cz","mail.phreaking.cz","mail.skupinafaze.cz","mail.soom.sk","martinklubal.com","martinklubal.cz","pentest.cz","pentester.cz","pentesting.cz","phreaking.cz","skupinafaze.cz","soom.sk"]}
],
"bridges_published":"2019-07-25 07:43:02",
"bridges":[
]}

for the following 2 fields are expected but only the fingerprint field is in the output:

https://onionoo.torproject.org/details?lookup=661EBD854F07109F0F7CEDC86C2A3F565FC01C3B&fields=fingerprint,verified_host_names

{"version":"7.0",
"build_revision":"7dc8dae",
"relays_published":"2019-07-25 08:00:00",
"relays":[
{"fingerprint":"661EBD854F07109F0F7CEDC86C2A3F565FC01C3B"}
],
"bridges_published":"2019-07-25 07:43:02",
"bridges":[
]}

Child Tickets

Change History (3)

comment:1 Changed 4 weeks ago by nusenu

if the fields parameter is not specified the verified_host_names field is also missing in the output:

https://onionoo.torproject.org/details?lookup=661EBD854F07109F0F7CEDC86C2A3F565FC01C3B

this is also the case when not using the lookup parameter:

https://onionoo.torproject.org/details?type=relay

Last edited 4 weeks ago by nusenu (previous) (diff)

comment:2 Changed 4 weeks ago by nusenu

Summary: not all fields provided in the 'fields' parameter are in the responseinconsistent response data (not all fields provided) on details document requests

comment:3 Changed 4 weeks ago by karsten

Hmm, all four requests work as expected at the moment. Can you check again? (I'm not saying it wasn't broken earlier, but I'm unable to reproduce it right now.)

Note: See TracTickets for help on using tickets.