You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@couchdb.apache.org by GitBox <gi...@apache.org> on 2018/01/30 22:58:47 UTC

[GitHub] bobug opened a new issue #62: Crashing on invalid bind address

bobug opened a new issue #62: Crashing on invalid bind address
URL: https://github.com/apache/couchdb-docker/issues/62
 
 
   <!--- Provide a general summary of the issue in the Title above -->
   
   This is a dorky bug, but since it crashes, I thought I'd mention it.
   
   CouchDB crashes when an invalid "bind address" is supplied, either during setup, or via subsequent configuration. 
   
   ## Expected Behavior
   <!--- If you're describing a bug, tell us what should happen -->
   <!--- If you're suggesting a change/improvement, tell us how it should work -->
   
   I'd expect that an invalid address simply be rejected with some user notification.
   
   ## Current Behavior
   <!--- If describing a bug, tell us what happens instead of the expected behavior -->
   <!--- If suggesting a change/improvement, explain the difference from current behavior -->
   
   Running a stock docker image ```docker pull couchdb``` and then proceeding to set up CouchDB with some gibberish results in an nearly immediate crash. This can also be reproduced via 'Configuration' on an existing setup.
   
   ## Possible Solution
   <!--- Not obligatory, but suggest a fix/reason for the bug, -->
   <!--- or ideas how to implement the addition or change -->
   
   Reject input not matching an acceptable pattern/valid address.
   
   ## Steps to Reproduce (for bugs)
   <!--- Provide a link to a live example, or an unambiguous set of steps to -->
   <!--- reproduce this bug. Include code to reproduce, if relevant -->
   1. docker pull couchdb
   2. docker run -d couchdb (possibly better - docker run -it couchdb /bin/bash)
   3. Open a browser to http://<host>:5984/_utils/#setup/singlenode.
   4.Drop in anything for the admin credentials.
   5. Supply junk for the "bind address" (e.g., use a single quote)
   6. Click "Configure Node"
   7. Immediate crash.
   
   Alternatively, login, and then navigate to "Configuration > bind_address". Slap some cruft in there, observe crash,perhaps after a few moments.
   
   ## Context
   <!--- How has this issue affected you? What are you trying to accomplish? -->
   <!--- Providing context helps us come up with a solution that is most useful in the real world -->
   
   Just looking around, not affecting me, but might possibly affect someone.
   
   ## Your Environment
   <!--- Include as many relevant details about the environment you experienced the bug in -->
   * Version used:
   * Browser Name and version:
   * Operating System and version (desktop or mobile):
   * Link to your project:
   

----------------------------------------------------------------
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