waku-org / nwaku

Waku node and protocol.
Other
183 stars 46 forks source link

bug: store v3 include data is ignored #2635

Closed SionoiS closed 2 weeks ago

SionoiS commented 3 weeks ago

Found by @richard-ramos. noted here for tracking

Request

{"request_id":"5ce5c3b70adcfcd377f7281e0a8d80b6195c2b0b86c36d0b7316c074cdc1c6e7","message_hashes":["h6StC5Lp/RaZQOqJt6iSVozZFf6kTNkBvKkGUw79pIE=","0PlMki3ca7EsffDqRj4tq2MDfovfMQXKzfF6KeqeiMs=","2lRlED6pw9DFzxPmagfFt6GAXz9Z+plv3yfwTymbEvI=","NGs/hR2QL12oNc+tgKnitp2ebQO1HDoO8bUVCjrYqZI=","pryd3GuG9Lc+bKvI5qTbc1AF9YUMrFyjBoiRkY0QZmY=","PJATgU/Gz6IlJ7nM31ac0FfcjGZNKh2YEIdhHBotCLU=","QMebdkTuKkGICmbKXReUobvWWZwT30YqmTZ3sBj6XOo=","Ow9Rn4VdTbZS0aFOArn8IiGxImGl3YZsCIXGjadIOWo=","9CHgfcvlGRF8CAP1thvZI056ciIkdBVlFBPWtBBkVtQ=","fjagI+m3+xwbpgHZLSJ2fvsessRLJLyo+iGkbvGyZYc="],"pagination_forward":true,"pagination_limit":20}

Response

{"request_id":"5ce5c3b70adcfcd377f7281e0a8d80b6195c2b0b86c36d0b7316c074cdc1c6e7","status_code":200,"status_desc":"OK","messages":[{"message_hash":"h6StC5Lp/RaZQOqJt6iSVozZFf6kTNkBvKkGUw79pIE=","message":{"payload":"AQIDBAU=","contentTopic":"test","version":0,"timestamp":"1714057806896399058","meta":"","ephemeral":false,"rateLimitProof":""}},{"message_hash":"0PlMki3ca7EsffDqRj4tq2MDfovfMQXKzfF6KeqeiMs=","message":{"payload":"AQIDBAU=","contentTopic":"test","version":0,"timestamp":"1714057806917331304","meta":"","ephemeral":false,"rateLimitProof":""}},{"message_hash":"2lRlED6pw9DFzxPmagfFt6GAXz9Z+plv3yfwTymbEvI=","message":{"payload":"AQIDBAU=","contentTopic":"test","version":0,"timestamp":"1714057806937900393","meta":"","ephemeral":false,"rateLimitProof":""}},{"message_hash":"NGs/hR2QL12oNc+tgKnitp2ebQO1HDoO8bUVCjrYqZI=","message":{"payload":"AQIDBAU=","contentTopic":"test","version":0,"timestamp":"1714057806958300525","meta":"","ephemeral":false,"rateLimitProof":""}},{"message_hash":"pryd3GuG9Lc+bKvI5qTbc1AF9YUMrFyjBoiRkY0QZmY=","message":{"payload":"AQIDBAU=","contentTopic":"test","version":0,"timestamp":"1714057806978588237","meta":"","ephemeral":false,"rateLimitProof":""}},{"message_hash":"PJATgU/Gz6IlJ7nM31ac0FfcjGZNKh2YEIdhHBotCLU=","message":{"payload":"AQIDBAU=","contentTopic":"test","version":0,"timestamp":"1714057806999078482","meta":"","ephemeral":false,"rateLimitProof":""}},{"message_hash":"QMebdkTuKkGICmbKXReUobvWWZwT30YqmTZ3sBj6XOo=","message":{"payload":"AQIDBAU=","contentTopic":"test","version":0,"timestamp":"1714057807019396660","meta":"","ephemeral":false,"rateLimitProof":""}},{"message_hash":"Ow9Rn4VdTbZS0aFOArn8IiGxImGl3YZsCIXGjadIOWo=","message":{"payload":"AQIDBAU=","contentTopic":"test","version":0,"timestamp":"1714057807039695032","meta":"","ephemeral":false,"rateLimitProof":""}},{"message_hash":"9CHgfcvlGRF8CAP1thvZI056ciIkdBVlFBPWtBBkVtQ=","message":{"payload":"AQIDBAU=","contentTopic":"test","version":0,"timestamp":"1714057807060040999","meta":"","ephemeral":false,"rateLimitProof":""}},{"message_hash":"fjagI+m3+xwbpgHZLSJ2fvsessRLJLyo+iGkbvGyZYc=","message":{"payload":"AQIDBAU=","contentTopic":"test","version":0,"timestamp":"1714057807080564052","meta":"","ephemeral":false,"rateLimitProof":""}}]}

The include data field is omitted in the request BUT the message is still returned.