Skip to content

Capability with number given as string type is updated to a different number #831

@abhilashkasula

Description

@abhilashkasula

Describe the bug
Any Capability with a value of long number more than 16 digits in string format is updated to a different number.

To Reproduce

  1. Install botium-cli and botium-connector-fbwebhook
  2. Clone the botium-connector-fbwebhook repo and start the sample botkit server
  3. Use the following given botium.json
  4. Start the emulator in verbose mode using botium-cli emulator -v
  5. Send a message and observer the payload that the emulator sent. The sender.id would be of different number than what we have set in the botium.json
{
  "botium": {
    "Capabilities": {
      "PROJECTNAME": "Facebook Tests",
      "CONTAINERMODE": "fbwebhook",
      "FBWEBHOOK_WEBHOOKURL": "http://127.0.0.1:3000/api/messages",
      "FBWEBHOOK_PAGEID": "123456",
      "FBWEBHOOK_APPSECRET": "mysecret",
      "SIMPLEREST_INBOUND_PORT": 45100,
      "SCRIPTING_MATCHING_MODE": "equals",
      "FBWEBHOOK_USERID": "1234567892343434344"
    }
  }
}

Expected behavior
The payload sent should have same sender.id that we set using FBWEBHOOK_USERID in the botium.json

Screenshots and Log files
botium-cli emulator logs:
log.txt

Botium Flavour:

  • Botium Box ?
  • Botium CLI ? - Yes
  • Botium Bindings ? - Yes

Botium Version
The bug exists in the latest version(1.15.6) of botium-core.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions