You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@openwhisk.apache.org by gi...@git.apache.org on 2017/10/04 12:18:58 UTC

[GitHub] mdeuser opened a new issue #2830: Namespaces with a leading '_' character result in cloudant failures

mdeuser opened a new issue #2830: Namespaces with a leading '_' character result in cloudant failures
URL: https://github.com/apache/incubator-openwhisk/issues/2830
 
 
   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 cloudant
   ```
   [ERROR] [#tid_38539220] [CouchDbRestStore] [PUT] 'bluemix_prod_whisks1' failed to put document: 'id: _CombiEric__Rocks/monkey, rev: null'; http status: '400 Bad Request' [marker:database_saveDocument_error:18:3]
   ```
   As 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 `_CombiEric__Rocks`.  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:
   - Do not allow namespaces with leading `_` characters
   - Escape any leading `_` character in the `_id` field
 
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services