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

can't create channels with dots in name using slash command #7391

Closed
d-ushakov opened this issue Jul 3, 2017 · 1 comment · Fixed by #7394
Closed

can't create channels with dots in name using slash command #7391

d-ushakov opened this issue Jul 3, 2017 · 1 comment · Fixed by #7394
Assignees
Milestone

Comments

@d-ushakov
Copy link

Rocket.Chat Version: 0.57.0-rc.1 (reproduced for 0.56.0 too)
Running Instances: 4
DB Replicaset OpLog: Enabled
Node Version: v4.8.2

Can't create channels with dots in name using slash command. Same channel can be created via UI.

Scenario:

  1. /create "#test.test.test"
  2. repeat step 1 again

Expected:
Channel "test.test.test" created.

Actual:
Channel "test" created. On second attempt it fails with "The channel #test already exists."

Workaround:
change packages/rocketchat-slashcommands-create/server.js line 15 to add dot into regexp:
from
const regexp = /#?([\d-\w]+)/g;
to
const regexp = /#?([\d-
.\w]+)/g;

Proper fix should re-use RocketChat.settings.get('UTF8_Names_Validation').

@Broutard
Copy link

Same issue with /invite-all-from /invite-all-to

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

Successfully merging a pull request may close this issue.

4 participants