finos / spring-bot

Spring Boot + Java Integration for Symphony/Teams Chat Platform Bots and Apps
https://springbot.finos.org
Apache License 2.0
60 stars 35 forks source link

HashTag not being supported as @ChatVariable #256

Closed pankaj-a-khandelwal-db closed 2 years ago

pankaj-a-khandelwal-db commented 2 years ago

Bug Report

Steps to Reproduce:

  1. Annotate controller method to expect HashTag as input ChatVariable
    @ChatRequest(value = "endpollbyid {pollId}", description = "End poll. e.g. /endpollbyid #SomePollId")
    public Response endPollById(@ChatVariable(name = "pollId") HashTag pollId, Chat pollRoom, User poller) {
  2. Now invoke above method on the bot e.g. /endpollbyid #some-hash-tag

Expected Result:

Actual Result:

Environment:

Version 8.0.1+

pankaj-a-khandelwal-db commented 2 years ago

Not able to see option to assign issue to my name...

pankaj-a-khandelwal-db commented 2 years ago

Mapped entity json looks something like below - HashTag is wrapped inside Taxonomy

{"0":{"id":[{"type":"org.symphonyoss.taxonomy.hashtag","value":"some-hash-tag"}],"type":"org.symphonyoss.taxonomy","version":"1.0"}}