nextcloud/server · error · OCA\DAV\Connector\Sabre\Exception\Forbidden

You cannot move a non-shareable node into a share

Error message

You cannot move a non-shareable node into a share

What it means

Error "You cannot move a non-shareable node into a share" thrown in nextcloud/server.

Source

Thrown at apps/dav/lib/Connector/Sabre/SharesPlugin.php:291

			/** @var ISharedStorage $sourceStorage */
			$sourceShare = $sourceStorage->getShare();
			foreach ($targetShares as $targetShare) {
				if ($targetShare->getId() === $sourceShare->getId()) {
					return true;
				}
			}

			// if the share recipient is allow to delete from the share, they are allowed to move the file out of the share
			// the user moving the file out of the share to their home storage would give them share permissions and allow moving into the share
			//
			// since the 2-step move is allowed, we also allow both steps at once
			if ($sourceNode->getInternalPath() !== '' && $sourceNode->isDeletable()) {
				return true;
			}
		}

		throw new Forbidden('You cannot move a non-shareable node into a share');
	}
}

View on GitHub (pinned to ecdeb153ff)

When it happens

Trigger: Thrown at apps/dav/lib/Connector/Sabre/SharesPlugin.php:291 when the library encounters an invalid state.

Common situations: See trigger scenarios.


AI-assisted analysis of nextcloud/server@ecdeb153ff (2026-08-17). Data as JSON: /api/errors/85572d630ba877f4. Report an issue: GitHub.