{"record":{"id":"cc01ca832ef86cb6","repo":"alibaba/nacos","slug":"400-cc01ca","errorCode":"-400","errorMessage":"Cross-namespace clone is not supported by this implementation.","messagePattern":"Cross-namespace clone is not supported by this implementation\\.","errorType":"exception","errorClass":"NacosException","httpStatus":null,"severity":"error","filePath":"maintainer-client/src/main/java/com/alibaba/nacos/maintainer/client/config/ConfigMaintainerService.java","lineNumber":528,"sourceCode":"     *\n     * @param sourceNamespaceId Source namespace ID (optional, defaults to \"public\").\n     * @param targetNamespaceId Target namespace ID (optional, defaults to \"public\").\n     * @param cloneInfos        List of configurations to clone (required).\n     * @param srcUser           Source user (optional).\n     * @param policy            Conflict resolution policy (required).\n     * @return A map containing the clone result (e.g., success count, unrecognized data).\n     * @throws NacosException If the clone operation fails.\n     */\n    @Since(\"3.2.3\")\n    default Map<String, Object> cloneConfig(String sourceNamespaceId, String targetNamespaceId,\n        List<ConfigCloneInfo> cloneInfos, String srcUser, SameConfigPolicy policy)\n        throws NacosException {\n        String sourceNamespace = StringUtils.isBlank(sourceNamespaceId)\n            ? Constants.DEFAULT_NAMESPACE_ID : sourceNamespaceId;\n        String targetNamespace = StringUtils.isBlank(targetNamespaceId)\n            ? Constants.DEFAULT_NAMESPACE_ID : targetNamespaceId;\n        if (!StringUtils.equals(sourceNamespace, targetNamespace)) {\n            throw new NacosException(NacosException.CLIENT_INVALID_PARAM,\n                \"Cross-namespace clone is not supported by this implementation.\");\n        }\n        return cloneConfig(targetNamespace, cloneInfos, srcUser, policy);\n    }\n    \n    /**\n     * Query configurations list by namespace.\n     *\n     * @param namespaceId Namespace ID (required).\n     * @return A list of configurations in the specified namespace.\n     * @throws NacosException If the namespace is invalid or the query fails.\n     */\n    @Since(\"3.0.0\")\n    List<ConfigBasicInfo> getConfigListByNamespace(String namespaceId) throws NacosException;\n    \n    /**\n     * Get the listeners of a configuration by dataId and groupName.\n     *","sourceCodeStart":510,"sourceCodeEnd":546,"githubUrl":"https://github.com/alibaba/nacos/blob/9b989acdf181d00898f2e8839257bb2b2a3cefe3/maintainer-client/src/main/java/com/alibaba/nacos/maintainer/client/config/ConfigMaintainerService.java#L510-L546","documentation":"Error \"Cross-namespace clone is not supported by this implementation.\" thrown in alibaba/nacos.","triggerScenarios":"Thrown at maintainer-client/src/main/java/com/alibaba/nacos/maintainer/client/config/ConfigMaintainerService.java:528 when the library encounters an invalid state.","commonSituations":"Cloning configs across namespaces with an implementation that does not support it.","solutions":["Check the server/plugin configuration and enable the required module or use a supported alternative."],"exampleFix":null,"handlingStrategy":null,"validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"9b989acdf181d00898f2e8839257bb2b2a3cefe3","analyzedAt":"2026-08-14T07:17:31.569Z","schemaVersion":2},"datasetVersion":"2026-08-14T10:17:34.591Z"}