{"record":{"id":"85572d630ba877f4","repo":"nextcloud/server","slug":"you-cannot-move-a-non-shareable-node-into-a-share","errorCode":null,"errorMessage":"You cannot move a non-shareable node into a share","messagePattern":"You cannot move a non-shareable node into a share","errorType":"exception","errorClass":"OCA\\DAV\\Connector\\Sabre\\Exception\\Forbidden","httpStatus":403,"severity":"error","filePath":"apps/dav/lib/Connector/Sabre/SharesPlugin.php","lineNumber":291,"sourceCode":"\n\t\t\t/** @var ISharedStorage $sourceStorage */\n\t\t\t$sourceShare = $sourceStorage->getShare();\n\t\t\tforeach ($targetShares as $targetShare) {\n\t\t\t\tif ($targetShare->getId() === $sourceShare->getId()) {\n\t\t\t\t\treturn true;\n\t\t\t\t}\n\t\t\t}\n\n\t\t\t// if the share recipient is allow to delete from the share, they are allowed to move the file out of the share\n\t\t\t// the user moving the file out of the share to their home storage would give them share permissions and allow moving into the share\n\t\t\t//\n\t\t\t// since the 2-step move is allowed, we also allow both steps at once\n\t\t\tif ($sourceNode->getInternalPath() !== '' && $sourceNode->isDeletable()) {\n\t\t\t\treturn true;\n\t\t\t}\n\t\t}\n\n\t\tthrow new Forbidden('You cannot move a non-shareable node into a share');\n\t}\n}\n","sourceCodeStart":273,"sourceCodeEnd":294,"githubUrl":"https://github.com/nextcloud/server/blob/ecdeb153ffdf227235c9a7e2d13dbe0f9c817bc3/apps/dav/lib/Connector/Sabre/SharesPlugin.php#L273-L294","documentation":"Error \"You cannot move a non-shareable node into a share\" thrown in nextcloud/server.","triggerScenarios":"Thrown at apps/dav/lib/Connector/Sabre/SharesPlugin.php:291 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":[],"exampleFix":null,"handlingStrategy":null,"validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"ecdeb153ffdf227235c9a7e2d13dbe0f9c817bc3","analyzedAt":"2026-08-17T01:36:13.386Z","schemaVersion":2},"datasetVersion":"2026-08-17T04:17:16.089Z"}