-
Notifications
You must be signed in to change notification settings - Fork 1.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Namespaces with a leading '_' character result in cloudant failures #2830
Comments
I would change the REGEX, that should be enough. https://github.com/apache/incubator-openwhisk/blob/d86c415a1d9a4eaa2061eac3a6ce99f24ba390f9/common/scala/src/main/scala/whisk/core/entity/EntityPath.scala#L193 The controller does not create subjects. And if one attempts to do so via |
Is that regex used when
Other related changes:
|
All |
As a quick note: |
It should not: > wskadmin user create _guest
Failed to create subject ({"error":"illegal_docid","reason":"Only reserved document ids may start with underscore."}) because the subject is the primary index and hence fails the invariant couch/cloudant assert. |
You probably mean creating a namespace vs a subject? In which case, yes. We should shut that down. |
When creating an action (or any other entity) in a namespace having a name that has a
_
as the leading character, the controller encounters the following error when saving the entity document in cloudantAs shown, the cloudant document id is based off of the entity's fully qualified name - which starts with the namespace name; in this example, the namespace is
_xyz
. According to https://console.bluemix.net/docs/services/Cloudant/api/document.html#documents cloudant document_id
values may not have a leading_
character, resulting in the cloudant request failure.Possible solutions:
_
characters_
character in the_id
fieldThe text was updated successfully, but these errors were encountered: