couchdb - Couchdb database name
问题描述
I don't fully get the restrictions for database names on couchdb, when I try to create a name like !abcdef/user-context-81a5c7e396
I get the error
Create database failed: Name: '!abcdef/user-context-81a5c7e396'. Only lowercase characters (a-z), digits (0-9), and any of the characters _, $, (, ), +, -, and / are allowed. Must begin with a letter.
and pretty much it is because of the exclamation mark at the beginning, but I had no problem creating the database !abcdef/_users
, so is something special about the _users
?
I could remove the exclamation mark but this is from a project with many references to that name.
I'm using couchdb 2.2.0 and this behavior happened using curl and Fauxton
解决方案
!abcdef/_users
由于错误,您可以创建数据库。所以失败的事实实际上!abcdef/user-context-81a5c7e396
是正确的。
该错误现已修复,因此应在 CouchDB 2.3.0 中更正此行为。
推荐阅读
- html - 如何在 Angular 中创建像 Facebook 帖子一样的照片网格?
- java - 错误:考虑在配置中定义“long”类型的 bean。“AtomicLong”springboot 问候语
- java - 我得到了一个可选对象,可能是null,那我们如何使用或判断呢?
- flutter - 错误:无法将参数类型“Type”分配给参数类型“Widget Function(BuildContext, MenuInfo, Widget?)”
- javascript - 哨兵源图上传问题 | 反应 JS
- r - R中相同维度的多个数组的标准偏差(和百分位数)
- javascript - 为什么在 Django 中更新我的 HTML 之前必须重新加载两次?
- flutter - 如何处理提供程序并重新创建一个新的提供程序 - Flutter 提供程序包
- gitlab - 可以使用带有 GitLab 的 CI_JOB_TOKEN 推送到 repo 并创建标签吗?
- laravel - laravel 辛烷值 $request-> 合并请求返回 null