Virtomize/mail2most

Parsing Issue of Team Name with Dots

yigitkonur opened this issue · 3 comments

Describe the bug
I was trying to implement mail2most or my team name (zeo.org) but it does not work. When I change to name to Zeo it starts to work. I think it is related with the dot.

To Reproduce
Steps to reproduce the behavior:

  1. Creata a team like github.com
  2. Try to integrate, it will return:
ERRO[2020-10-18T17:30:45Z] Get Channel Error                             error=": Sorry, we could not find the page., There doesn't appear to be an api call for the url='/api/v4/teams/name/github.com/channels/name/mails'.  Typo? are you missing a team_id or user_id as part of the url?" function=GetCChannelByNameForTeamName
ERRO[2020-10-18T17:30:45Z] Mattermost Error                              Error=": Sorry, we could not find the page., There doesn't appear to be an api call for the url='/api/v4/teams/name/github.com/channels/name/mails'.  Typo? are you missing a team_id or user_id as part of the url?"
  1. Change the team name to github
  2. Then update config and it will work.

hello @yigitkonur thanks for your issue. mattermost uses a relativly strict naming policy have you tried to use the team ID instead of its name since if the name contains special characters it can not be used in the ...ByName... functions anymore.

sorry for the autoreply stuff of @jprusch i try to find a way to prevent this

closed due to inactivity