nextcloud / nextcloud/notify_push

Failed to parse nextcloud config

Open
#140 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

bug
Dominant language
Rust
Stars
344
Forks
64
Avg merge
2d 10h
Merged PRs (30d)
5

Description

config.php
..
'memcached_servers' => [
  ['127.0.0.1', 11211],
],
'memcached_options' => [
  \Memcached::OPT_SERIALIZER => \Memcached::SERIALIZER_IGBINARY,
],
...
error
Nov 12 20:37:49 nbg1-ceph notify_push[1054841]: Error:
Nov 12 20:37:49 nbg1-ceph notify_push[1054841]:    0: #033[91mFailed to parse config#033[0m
Nov 12 20:37:49 nbg1-ceph notify_push[1054841]:    1: #033[91mFailed to parse nextcloud config#033[0m
Nov 12 20:37:49 nbg1-ceph notify_push[1054841]:    2: #033[91mError while parsing '/config/config.php':
Nov 12 20:37:49 nbg1-ceph notify_push[1054838]:    2: #033[m#033[1m#033[38;5;12m86 | #033[m    \Memcached::OPT_SERIALIZER => \Memcached::SERIALIZER_IGBINARY,
Nov 12 20:37:49 nbg1-ceph notify_push[1054838]:    2:    #033[1m#033[38;5;12m|     #033[1m#033[38;5;9m^^ No valid token found, expected one of boolean literal, integer literal, float literal, string literal, 'null', ']', 'array' or '['
Nov 12 20:37:49 nbg1-ceph notify_push[1054841]:    2:
Nov 12 20:37:49 nbg1-ceph notify_push[1054841]:    2: #033[m#033[1m#033[38;5;12m.. |
Nov 12 20:37:49 nbg1-ceph notify_push[1054841]:    2: #033[m#033[1m#033[38;5;12m85 | #033[m  ],
Nov 12 20:37:49 nbg1-ceph notify_push[1054838]:    2: #033[m#033[1m#033[38;5;12m87 | #033[m  ],
Nov 12 20:37:49 nbg1-ceph notify_push[1054838]:    2: #033[m#033[1m#033[38;5;12m88 | #033[m);
Nov 12 20:37:49 nbg1-ceph notify_push[1054838]:    2: #033[m#033[0m

It is ok with:

'memcached_servers' =>
  array (
    0 =>
    array (
      0 => '127.0.0.1',
      1 => 11211,
    ),
  ),
'memcached_options' =>
  array (
    -1003 => 2,
  ),

Contributor guide

Open the contributing guide

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 with the shown config.php containing short arrays and Memcached constants, then locate the parser path that reports the error. Compare it with the expanded array form that succeeds; done means the compact configuration parses successfully and the regression is covered by a test.

Written by the indexing model from the issue text.

Assessment

Tech stack
php, rust
Domain
backend
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.