You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
Issue reproduces if we pass a valid cursor, a invalid base 64 string or even a normal string. All messages are returned in all 3 cases. I would expect no message to be returned.
The issue is the same as nwaku issue: waku-org/nwaku#2716
To Reproduce
Have 4 messages in the store
Send a store v3 request with a plain string as a cursor ex: curl -v -X GET "http://127.0.0.1:7945/store/v3/messages?pubsubTopic=%2Fwaku%2F2%2Frs%2F0%2F0&contentTopics=%2Fmyapp%2F1%2Flatest%2Fproto&cursor=test&pageSize=100&ascending=true" -H "Content-Type: application/json"
Actual behavior
All messages in the store are returned
Expected behavior
Either empty messages list or an error saying that cursor doesn't match any message in the store
Describe the bug
Issue reproduces if we pass a valid cursor, a invalid base 64 string or even a normal string. All messages are returned in all 3 cases. I would expect no message to be returned.
The issue is the same as nwaku issue: waku-org/nwaku#2716
To Reproduce
curl -v -X GET "http://127.0.0.1:7945/store/v3/messages?pubsubTopic=%2Fwaku%2F2%2Frs%2F0%2F0&contentTopics=%2Fmyapp%2F1%2Flatest%2Fproto&cursor=test&pageSize=100&ascending=true" -H "Content-Type: application/json"
Actual behavior
All messages in the store are returned
Expected behavior
Either empty messages list or an error saying that cursor doesn't match any message in the store
go-waku version/commit hash
harbor.status.im/wakuorg/go-waku:latest
Additional context
Logs
publishing_node.log
store_node.log
The text was updated successfully, but these errors were encountered: