YunoHost-Apps / YunoHost-Apps/phpldapadmin_ynh

error on creating new entry

Open
#26 2 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

upstream
Dominant language
Shell
Stars
3
Forks
8
PR merge metrics
No merged PRs in 30d

Description

Describe the bug

When creating a new entry phpldapadmin shows an error.

Unrecognized error number: 8192: preg_match(): Passing null to parameter #2 ($subject) of type string is deprecated

Might be associated to this issue: https://github.com/leenooks/phpLDAPadmin/issues/237

Context
  • Hardware: Virtualbox VM
  • YunoHost version: 11.2.5
  • I have access to my server: all
  • Are you in a special context or did you perform some particular tweaking on your YunoHost instance?: yes
    • If yes, please explain: Testing environment, slapd tweaked to allow full access
  • Using, or trying to install package version/branch: phpLDAPadmin 1.2.6.6~ynh4
Steps to reproduce
  • adapt the slapd configuration to give write permission to a user able to login
  • add an entry - in my case

objectClass: inetOrgPerson, mailAccount, userPermissionYnh
ou=alias
rdn=cn

Expected behavior

show the confirmation page after hitting the "create object" button

Logs

2023-10-23_08-40-17-832012743

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Reproduce the failure by creating the described inetOrgPerson entry with the stated slapd permissions and phpLDAPadmin 1.2.6.6~ynh4. Start at the create-object flow and inspect the handling of the preg_match() error, using linked issue 237 for context. Done means the object is created and the confirmation page appears without the deprecation error.

Written by the indexing model from the issue text.

Assessment

Tech stack
php
Domain
databases
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.