{"record":{"id":"f762a3e1581b701a","repo":"nextcloud/server","slug":"user-user-is-unknown-f762a3","errorCode":null,"errorMessage":"User $user is unknown","messagePattern":"User \\$user is unknown","errorType":"console","errorClass":"InvalidArgumentException","httpStatus":null,"severity":"error","filePath":"apps/dav/lib/Command/ListSubscriptions.php","lineNumber":49,"sourceCode":"\t\tprivate CalDavBackend $caldav,\n\t) {\n\t\tparent::__construct();\n\t}\n\n\t#[\\Override]\n\tprotected function configure(): void {\n\t\t$this->addArgument(\n\t\t\t'uid',\n\t\t\tInputArgument::REQUIRED,\n\t\t\t'User whose calendar subscriptions will be listed'\n\t\t);\n\t}\n\n\t#[\\Override]\n\tprotected function execute(InputInterface $input, OutputInterface $output): int {\n\t\t$user = (string)$input->getArgument('uid');\n\t\tif (!$this->userManager->userExists($user)) {\n\t\t\tthrow new \\InvalidArgumentException(\"User $user is unknown\");\n\t\t}\n\n\t\t$defaultRefreshRate = $this->appConfig->getValueString('dav', 'calendarSubscriptionRefreshRate', 'P1D');\n\t\t$subscriptions = $this->caldav->getSubscriptionsForUser(\"principals/users/$user\");\n\t\t$rows = [];\n\n\t\tforeach ($subscriptions as $subscription) {\n\t\t\t$rows[] = [\n\t\t\t\t$subscription['uri'],\n\t\t\t\t$subscription['{DAV:}displayname'],\n\t\t\t\t$subscription['{http://apple.com/ns/ical/}refreshrate'] ?? ($defaultRefreshRate . ' (default)'),\n\t\t\t\t$subscription['source'],\n\t\t\t];\n\t\t}\n\n\t\tusort($rows, static fn (array $a, array $b) => $a[0] <=> $b[0]);\n\n\t\tif (count($rows) > 0) {","sourceCodeStart":31,"sourceCodeEnd":67,"githubUrl":"https://github.com/nextcloud/server/blob/ecdeb153ffdf227235c9a7e2d13dbe0f9c817bc3/apps/dav/lib/Command/ListSubscriptions.php#L31-L67","documentation":"Thrown by occ dav:list-subscriptions when the uid argument fails IUserManager::userExists(). The check precedes app-config reading and getSubscriptionsForUser(), so nothing is queried. Subscriptions here are remote iCalendar feeds (created via dav:create-subscription), not regular calendars.","triggerScenarios":"`occ dav:list-subscriptions <uid>` where uid is misspelled, deleted, or unresolved by the active user backends.","commonSituations":"Same-family user-validation failure as the other dav list commands: stale automation user lists, deleted accounts, external backend outages, wrong instance.","solutions":["Verify with `occ user:info <uid>`","Correct the uid and re-run","For external backends, ensure availability/sync before retrying"],"exampleFix":null,"handlingStrategy":"validation","validationCode":"#!/usr/bin/env bash\nuid=\"$1\"\nocc user:info \"$uid\" >/dev/null 2>&1 || { echo \"Unknown user: $uid\" >&2; exit 1; }\nocc dav:list-subscriptions \"$uid\"","typeGuard":null,"tryCatchPattern":null,"preventionTips":["Validate uid existence before any dav per-user command","Keep runbooks current when accounts are deleted/renamed"],"tags":["dav","calendar","subscription","occ","cli","user-validation"],"backgroundTag":"unknown-user-id","analyzedSha":"ecdeb153ffdf227235c9a7e2d13dbe0f9c817bc3","analyzedAt":"2026-08-17T01:36:13.386Z","schemaVersion":2},"datasetVersion":"2026-08-17T04:17:16.089Z"}