Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

RPC method wakuext_allMessagesFromChatWhichMatchTerm ignores case sensitivity when caseSensitive=True #6359

Open
rlve opened this issue Feb 24, 2025 · 0 comments
Assignees

Comments

@rlve
Copy link
Contributor

rlve commented Feb 24, 2025

Description

RPC method wakuext_allMessagesFromChatWhichMatchTerm ignores case sensitivity when caseSensitive=True.

Steps

  1. Sent 3 messages using wakuext_sendOneToOneMessage with following texts:
"test_message_0_3c25649a-ef5a-4e3a-a6e3-c9d5ede1a8ec"
"test_message_1_caecbaf2-be52-4840-a6d6-872f179b5898"
"test_message_2_d12e6c2d-17b7-48aa-9737-bc86a9a97718"
  1. Sent request to retrieve the messages with searchTerm="TEST_MESSAGE_" and caseSensitive=True
INFO     root:rpc.py:52 Sending POST request to url http://127.0.0.1:9730/statusgo/CallRPC with data: {
    "id": 13,
    "jsonrpc": "2.0",
    "method": "wakuext_allMessagesFromChatWhichMatchTerm",
    "params": [
      "0x040...,
        "TEST_MESSAGE_",
        true
    ]
}
  1. Actual response
INFO     root:rpc.py:56 Got response: {
  "id": 13,
  "jsonrpc": "2.0",
  "result": {
      "cursor": "",
      "messages": [
          {
              ...
              "text": "test_message_2_d12e6c2d-17b7-48aa-9737-bc86a9a97718",
              ...
          },
          {
              ...
              "text": "test_message_1_caecbaf2-be52-4840-a6d6-872f179b5898",
              ...
          },
          {
              ...
              "text": "test_message_0_3c25649a-ef5a-4e3a-a6e3-c9d5ede1a8ec",
              ...
          }
      ]
  }
}
  1. Expected response
{
  "id": 13,
  "jsonrpc": "2.0",
  "result": {
      "cursor": "",
      "messages": []
  }
}

Logs
sender-goth.log

How to reproduce

Run the following test

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants