Skip to content
GitLab
  • Menu
Projects Groups Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in
  • user-manual user-manual
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 20
    • Issues 20
    • List
    • Boards
    • Service Desk
    • Milestones
  • Deployments
    • Deployments
    • Releases
  • Packages & Registries
    • Packages & Registries
    • Container Registry
  • Monitor
    • Monitor
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • Repository
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Commits
  • Issue Boards
Collapse sidebar
  • fusiondirectory
  • user-manualuser-manual
  • Issues
  • #143
Closed
Open
Created Feb 02, 2021 by Côme Chilliet@cchillietReporter

Document limitation for huge number of values in LDAP fields

Gathered information:

  • The crash comes from the call {eval var=$attribute.input} in simpleplugin_section.tpl
  • In the case of this huge group, the string in this eval is huge
  • A clean solution would be to avoid passing this string to eval and attributes to put HTML code instead of smarty code in there.
  • The fact that it is smarty code is used for renderAcl
  • It is also used for html_options smarty function
  • From what I see there is no other use

I was able to solve my issue by setting

; default value * 100
pcre.backtrack_limit=10000000

in php.ini

Here are a few solution ideas:

  • ini_set pcre.backtrack_limit to a higher value when loading the app so that huge groups can be displayed
  • find a way to send smaller templates to Smarty? probably not a trivial fix
  • Catch the PHP exception from smarty and trigger some special processing when the group is too big (friendly error message, etc)
Edited Feb 24, 2022 by bmortier
Assignee
Assign to
Time tracking