Skip to content

Unable to delete entry containing dots with config:delete command #19966

@davidlemaitre

Description

@davidlemaitre

I want to use config:delete command to remove an ip address from General.login_allowlist_ip array but the command never found the value. If I add a new value without dots to an array, the deletion works. I tried to escape dots with backslashes without success.

Steps to Reproduce

./console config:set 'General.login_allowlist_ip[]="123.123.123.123"'
Setting [General] login_allowlist_ip = "123.123.123.123"... done.
./console config:get 'General.login_allowlist_ip'`
["123.123.123.123"]
./console config:delete --section=General --key=login_allowlist_ip[] --value=123.123.123.123`
Nothing found

Your Environment

  • Matomo Version: 4.12.3
  • PHP Version: 8.0.25

Metadata

Metadata

Assignees

No one assigned

    Labels

    BugFor errors / faults / flaws / inconsistencies etc.Needs priority decisionThis issue may need to be added to the current milestone by Product Manager

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions