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

Template Variables with more than 50 chars lead to possible crash of system #235

Closed
bnetz opened this issue Jun 17, 2019 · 1 comment
Closed
Assignees
Labels
Bug: Accepted Bug has been confirmed, is reproducible, and ready to work on.

Comments

@bnetz
Copy link

bnetz commented Jun 17, 2019

Please note
We had a server crash (FPM-worker ran into a loop), the following description is something I summarize from information of the hoster and information of my administrator; so I have not seen the issue by myself but I am pretty sure that my description is correct.

Description of the problem
If you create a template variable with more than 50 chars the DB-system seems to trim to 50. Somehow this leads to serious problems as the longer name is existing somewhere else.

What happened was that new template variables were created automatically, A LOT. This lead to server crash / a 502 in the frontend.

How To Reproduce
Create a template variable with a name that contains more than 50 chars.

Environment Details:

  • Version: 5.2.3 Build: 27/5/2019
  • PHP Version 7.1.30
  • MySQL Version 5.5.60
  • OS: CentOS Linux 7.6.1810 (Core) / Plesk
  • Web Server: nginx

Possible Solution
Restricting lenght of variable-names via frontend before writing to DB.

Additional context
Probably this issue concerns not only template variables but also partials and templates.

@robinsowell robinsowell self-assigned this Jul 18, 2019
@robinsowell robinsowell added the Bug: Accepted Bug has been confirmed, is reproducible, and ready to work on. label Jul 18, 2019
@robinsowell
Copy link
Contributor

Thanks for the report- and you were correct about the problem. Templates already had a check for this, but template variables and partials didn't. A fix is up in stability: 1d8b12f

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug: Accepted Bug has been confirmed, is reproducible, and ready to work on.
Projects
None yet
Development

No branches or pull requests

2 participants