Skip to content

An open-source, privacy-first, self-hosted knowledge workspace where humans and AI agents work together 开源、隐私优先、自托管的知识工作空间,让人与智能体在此协作

:art: 不支持配置坚果云 WebDAV 进行同步 https://github.com/siyuan-note/siyuan/issues/7657

Liang Dinga5e281f0b5ba
diff --git a/app/appearance/langs/en_US.json b/app/appearance/langs/en_US.json
index bc23bb06de..85bd6098b4 100644
--- a/app/appearance/langs/en_US.json
+++ b/app/appearance/langs/en_US.json
@@ -1116,6 +1116,7 @@
"190": "A problem was found while validating the index, which has been automatically fixed",
"191": "[%d/%d] Created historical data index",
"192": "Rebuilding historical data index, please wait...",
- "193": "Please refer to the [Artificial Intelligence] chapter of the User Guide for configuration"
+ "193": "Please refer to the [Artificial Intelligence] chapter of the User Guide for configuration",
+ "194": "There are restrictions on the Nutstore interface, please use other WebDAV services"
}
}
diff --git a/app/appearance/langs/es_ES.json b/app/appearance/langs/es_ES.json
index c465165ca1..875ee952aa 100644
--- a/app/appearance/langs/es_ES.json
+++ b/app/appearance/langs/es_ES.json
@@ -1116,6 +1116,7 @@
"190": "Se encontro un problema al validar el indice, el cual se soluciono automaticamente",
"191": "[%d/%d] Índice de datos históricos creado",
"192": "Reconstruyendo el índice de datos históricos, espere...",
- "193": "Consulte el capítulo [Inteligencia artificial] de la guía del usuario para la configuración"
+ "193": "Consulte el capítulo [Inteligencia artificial] de la guía del usuario para la configuración",
+ "194": "Existen restricciones en la interfaz de Nutstore, utilice otros servicios WebDAV"
}
}
diff --git a/app/appearance/langs/fr_FR.json b/app/appearance/langs/fr_FR.json
index 881c91e72d..21857888d2 100644
--- a/app/appearance/langs/fr_FR.json
+++ b/app/appearance/langs/fr_FR.json
@@ -1116,6 +1116,7 @@
"190": "Un problème a été trouvé lors de la validation de l'index, qui a été automatiquement corrigé",
"191": "[%d/%d] Création d'un index de données historiques",
"192": "Reconstruction de l'index des données historiques, veuillez patienter...",
- "193": "Veuillez vous référer au chapitre [Intelligence Artificielle] du guide de l'utilisateur pour la configuration"
+ "193": "Veuillez vous référer au chapitre [Intelligence Artificielle] du guide de l'utilisateur pour la configuration",
+ "194": "Il existe des restrictions sur l'interface Nutstore, veuillez utiliser d'autres services WebDAV"
}
}
diff --git a/app/appearance/langs/zh_CHT.json b/app/appearance/langs/zh_CHT.json
index 2ab1082c6a..964ba0c0f0 100644
--- a/app/appearance/langs/zh_CHT.json
+++ b/app/appearance/langs/zh_CHT.json
@@ -1116,6 +1116,7 @@
"190": "校驗索引時發現一個問題,已經自動修復",
"191": "[%d/%d] 已經建立條歷史數據索引",
"192": "正在重建歷史數據索引,請稍等...",
- "193": "請先參考用戶指南 [人工智能] 章節進行配置"
+ "193": "請先參考用戶指南 [人工智能] 章節進行配置",
+ "194": "堅果雲接口存在限制,請使用其他 WebDAV 服務"
}
}
diff --git a/app/appearance/langs/zh_CN.json b/app/appearance/langs/zh_CN.json
index 12e27dc2aa..68dcaf9c10 100644
--- a/app/appearance/langs/zh_CN.json
+++ b/app/appearance/langs/zh_CN.json
@@ -1116,6 +1116,7 @@
"190": "校验索引时发现一个问题,已经自动修复",
"191": "[%d/%d] 已经建立条历史数据索引",
"192": "正在重建历史数据索引,请稍等...",
- "193": "请先参考用户指南 [人工智能] 章节进行配置"
+ "193": "请先参考用户指南 [人工智能] 章节进行配置",
+ "194": "坚果云接口存在限制,请使用其他 WebDAV 服务"
}
}
diff --git a/kernel/model/sync.go b/kernel/model/sync.go
index 924d69f0a6..36e03b9f78 100644
--- a/kernel/model/sync.go
+++ b/kernel/model/sync.go
@@ -374,6 +374,13 @@ func SetSyncProviderS3(s3 *conf.S3) (err error) {
func SetSyncProviderWebDAV(webdav *conf.WebDAV) (err error) {
webdav.Endpoint = strings.TrimSpace(webdav.Endpoint)
webdav.Endpoint = util.NormalizeEndpoint(webdav.Endpoint)
+
+ // 不支持配置坚果云 WebDAV 进行同步 https://github.com/siyuan-note/siyuan/issues/7657
+ if strings.Contains(strings.ToLower(webdav.Endpoint), "dav.jianguoyun.com") {
+ err = errors.New(Conf.Language(194))
+ return
+ }
+
webdav.Username = strings.TrimSpace(webdav.Username)
webdav.Password = strings.TrimSpace(webdav.Password)
webdav.Timeout = util.NormalizeTimeout(webdav.Timeout)