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

Make sure name of Queues, Exchanges and Vhosts is not longer than 255 characters #631

Merged
merged 6 commits into from
Feb 12, 2024

Conversation

viktorerlingsson
Copy link
Member

@viktorerlingsson viktorerlingsson commented Feb 1, 2024

WHAT is this pull request doing?

Stops users from creating queues, vhosts and exchanges with names longer than 255 characters (short string)

HOW can this pull request be tested?

Specs? Manual steps? Please fill me in.

@viktorerlingsson
Copy link
Member Author

Should we do this more 'centralized' instead? Like either in a validator that checks length of all fields with type=short string, or propagate the error from amq-protocol or something?

src/lavinmq/http/controller/parameters.cr Outdated Show resolved Hide resolved
src/lavinmq/http/controller/exchanges.cr Outdated Show resolved Hide resolved
src/lavinmq/http/controller/queues.cr Outdated Show resolved Hide resolved
@viktorerlingsson viktorerlingsson changed the title Validate name max length for some types Make sure name of Queues, Exchanges and Vhosts is not longer than 255 characters Feb 12, 2024
@viktorerlingsson viktorerlingsson merged commit 86bb33f into main Feb 12, 2024
16 of 20 checks passed
@viktorerlingsson viktorerlingsson deleted the maxlength_255_names branch February 12, 2024 14:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants