apache / apache/pulsar

[Bug] Prevent topic names with quotes and other special characters

Open
#20,231 4 comments 0 reactions 0 assignees View on GitHub
Stale type/bug
Dominant language
Java
Stars
15.3k
Forks
3.8k
Avg merge
1d 14h
Merged PRs (30d)
160

Description

### Search before asking

- [X] I searched in the [issues](https://github.com/apache/pulsar/issues) and found nothing similar.

### Version

2.11

### Minimal reproduce step

Install Pulsar and create a topic with a double quote in the name.

### What did you expect to see?

I would expect this to be prevented with an error

### What did you see instead?

The topic is created

### Anything else?

_No response_

### Are you willing to submit a PR?

- [ ] I'm willing to submit a PR!

Contributor guide

Open the contributing guide

Research direction

Start by reproducing the issue in Pulsar 2.11: create a topic containing a double quote and observe that it succeeds. Trace the topic-creation validation path; done means quotes and the intended special characters are rejected with an error instead of creating the topic.

Written by the indexing model from the issue text.

Assessment

Tech stack
java
Domain
distributed-systems
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.