Parsing Issue of Team Name with Dots
yigitkonur opened this issue · 3 comments
yigitkonur commented
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:
- Creata a team like github.com
- 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?"
- Change the team name to github
- Then update config and it will work.
c-seeger commented
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.
c-seeger commented
closed due to inactivity