8000 Add stricter template and webspace key validation by alexander-schranz · Pull Request #7981 · sulu/sulu · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Add stricter template and webspace key validation #7981

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

Draft
wants to merge 1 commit into
base: 3.0
Choose a base branch
from

Conversation

alexander-schranz
Copy link
Member
@alexander-schranz alexander-schranz commented Jun 2, 2025
Q A
Bug fix? no
New feature? yes
BC breaks? no
Deprecations? no
Fixed tickets fixes #
Related issues/PRs #
License MIT
Documentation PR sulu/sulu-docs#

What's in this PR?

Add strictor template and webspace key validation

Why?

To be discussed, previously specially on jackrabbit there where no limits in length. On doctrine dbal the lenght limit was by the phpcr path limit (191 on mysql utf8mb4, 255 other ways). As a combined index can not be longer on 191 we need kind of limit the template and webspace key for efficient filtering that queries can using indexes. The longer the key the less other fields e.g. url match slug, webspacekey, locale e.g. for route matching can be.

Common filters:

  • Smart content (webspace key, locale, webspace key)
  • Navigation Context (webspace key, locale, navigation context)
  • Selections (template key)
  • Route (webspace key, locale, slug | locale, resourceKey, resourceId )

@alexander-schranz alexander-schranz added the Technical Debt Impacts code quality, no or just small impact on end developers and users label Jun 2, 2025
@alexander-schranz alexander-schranz force-pushed the enhancement/stricter-key-validation branch 3 times, most recently from 81ac117 to 175c731 Compare June 2, 2025 09:41
@alexander-schranz alexander-schranz added this to the Release 3.0 milestone Jun 2, 2025
@alexander-schranz alexander-schranz changed the title Add strictor template and webspace key validation Add stricter template and webspace key validation Jun 2, 2025
@alexander-schranz alexander-schranz force-pushed the enhancement/stricter-key-validation branch 2 times, most recently from 55b5cd4 to f8470aa Compare June 2, 2025 10:36
@alexander-schranz alexander-schranz force-pushed the enhancement/stricter-key-validation branch from f8470aa to 0eb49c9 Compare June 2, 2025 10:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Technical Debt Impacts code quality, no or just small impact on end developers and users
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant
0