You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@couchdb.apache.org by gi...@git.apache.org on 2017/08/31 17:58:03 UTC

[GitHub] luanmm opened a new issue #974: Fauxton doesn't handle well all design docs names (with special characters)

luanmm opened a new issue #974: Fauxton doesn't handle well all design docs names (with special characters)
URL: https://github.com/apache/couchdb-fauxton/issues/974
 
 
   As asked by @wohali, I'm (re)creating the issue here, in the appropriate repository. The original one was created in CouchDB repo (https://github.com/apache/couchdb/issues/713).
   
   The problem is that I have some "special fields", in the fashion of firebase (that uses something like ".field" to reference something that is "a contract" of the database), where, in the name, there is some special characters (like the dollar sign "$"). In that cases, Fauxton doesn't let I expand the design document to edit/list.
   
   ![image](https://user-images.githubusercontent.com/1708808/28571706-86ea0394-711a-11e7-9247-f84d33298b0a.png)
   
   ## Expected Behavior
   
   To work like any other design document. If it is a valid design document name for CouchDB, it must be for Fauxton. Plus, it could show the real character in Fauxton interface ("$"), but nowadays it is showing ( "%24"), that is the url-encoded one.
   
   ## Current Behavior
   
   Fauxton doesn't accept all design document names that CouchDB supports.
   
   ## Possible Solution
   
   Check why the script is throwing errors when some special character is used.
   
   ## Steps to Reproduce (for bugs)
   
   1. Create a design document named "_design/$test".
   2. Try to access it in Fauxton to add views or list/edit.
   3. An error will output in console and nothing more will happen.
   
   ## Context
   
   It is a valid use case to work with special characters in CouchDB. It is not so uncommon to have "special fields" or "special documents" that describe something that must be known only by the system as a "contract" or with a special meaning. In those cases, it is common to have more complex names (to distinct the special things from the normal things). And, if CouchDB handle well this scenarios, Fauxton could do it aswell.
   
   ## Your Environment
   
   * Version used: Fauxton on Apache CouchDB v. 2.0.0
   * Browser Name and version: Chrome 59.0.3071.115 (64 bits)
   * Operating System and version (desktop or mobile): Windows 10
   * Link to your project: N/A
 
----------------------------------------------------------------
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