33.0.2: missing InputOption import in DocumentIndex breaks OCC command registration
Nobody has claimed this yet.
Assessment
- Difficulty
- 1/5
- Estimated time
- Under an hour
- Newbie friendliness
- 92/100
Research direction
Start by inspecting lib/Command/DocumentIndex.php and its registration in appinfo/info.xml, then run the available OCC command checks in a local Nextcloud environment. Done means command registration succeeds, app:list runs, and fulltextsearch:test reaches its configuration and connection checks.
Written by the indexing model from the issue text.
Description
Problem
With Full text search 33.0.2 enabled on Nextcloud 33.0.8, OCC commands fail before they can run:
Class "OCA\FullTextSearch\Command\InputOption" not found
Both fulltextsearch:test and the unrelated app:list return exit code 1. They were run through Hetzner Storage Share's supported konsoleH OCC interface on 19 September 2026. A server-side stack trace is not exposed by that interface.
Source diagnosis
I inspected the official 33.0.2 release archive linked from the Nextcloud app store:
https://github.com/nextcloud-releases/fulltextsearch/releases/download/v33.0.2/fulltextsearch-v33.0.2.tar.gz
In lib/Command/DocumentIndex.php, line 42 calls:
->addOption('collection', null, InputOption::VALUE_OPTIONAL, 'collection to look the existing index up in, defaults to the internal collection');
However, the file does not import Symfony\Component\Console\Input\InputOption. PHP therefore resolves the name inside the app's command namespace, matching the reported error. DocumentIndex is listed in appinfo/info.xml, so this appears to abort registration of the enabled app's commands before the selected OCC command executes.
Proposed fix
use Symfony\Component\Console\Input\InputArgument;
use Symfony\Component\Console\Input\InputInterface;
+use Symfony\Component\Console\Input\InputOption;
use Symfony\Component\Console\Output\OutputInterface;
The patch applies cleanly to the published release archive. It has not been applied or tested inside the managed Storage Share because customers do not have access to its PHP files.
Expected result
OCC command registration succeeds, app:list can run, and fulltextsearch:test reaches its actual configuration and connection checks.
Environment
- Nextcloud 33.0.8, managed Hetzner Storage Share
- Full text search 33.0.2 (administrator app UI)
- Elasticsearch 8.19.21 on a separate host
- PHP version 8.4.24
- OS Linux 6.8.0-136-generic x86_64
I searched this repository's issues and pull requests for InputOption before reporting this and found no existing match.
- Dominant language
- PHP
- Stars
- 234
- Forks
- 64
- Avg merge
- 6d 9h
- Merged PRs (30d)
- 23
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from nextcloud/fulltextsearch
-
0. Needs triage bug
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
nextcloud/fulltextsearch#1011 ·
-
0. Needs triage bug
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
nextcloud/fulltextsearch#1010 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 76/100
nextcloud/fulltextsearch#972 · 3 reactions ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 62/100
nextcloud/fulltextsearch#722 · 8 comments · 6 reactions ·
-
0. Needs triage bug
Difficulty 3/5 1-2 days Newbie friendliness 58/100
nextcloud/fulltextsearch#979 · 1 comment · 3 reactions ·
All issues in nextcloud/fulltextsearch
Similar issues
-
priority: p3
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
googleapis/librarian#7636 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 84/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
phpstan/phpstan-doctrine#794 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 74/100
Automattic/static-site-importer#1767 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 84/100