Skip to content

Add 256 Bytes per tag and 512 KB tags size limits. #37

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

Open
wants to merge 8 commits into
base: main
Choose a base branch
from

Conversation

Andrei-Dolgolev
Copy link
Contributor

Changes

How to test these changes?

Related issues

@@ -478,7 +474,7 @@ async def push_pack_to_journals_api(
JournalEntryContent(
title=report.title,
content=report.content,
tags=report.tags,
tags=[tag for tag in report.tags if tag and len(tag) <= 1024],
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It not save, it checks only length of each tag, but I can still push 1,000,000 tags

@Andrei-Dolgolev Andrei-Dolgolev changed the title Add 1024 tag limit. Add 256 Bytes per tag and 512 KB tags size limits. Apr 5, 2022
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