You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@couchdb.apache.org by "Rogutės Sparnuotos (Created JIRA)" <ji...@apache.org> on 2011/11/02 00:19:32 UTC

[jira] [Created] (COUCHDB-1328) whitespace in config values is significant and causes crashes

whitespace in config values is significant and causes crashes
-------------------------------------------------------------

                 Key: COUCHDB-1328
                 URL: https://issues.apache.org/jira/browse/COUCHDB-1328
             Project: CouchDB
          Issue Type: Bug
            Reporter: Rogutės Sparnuotos


A space before a config value shouldn't be significant, yet it is. Running CouchDB with
    file_compression =  snappy
instead of
    file_compression = snappy
will show this cryptic error message:
{"init terminating in do_boot",{{badmatch,{error,{bad_return,{{couch_app,start,[normal,["/usr/local/etc/couchdb/default.ini","/usr/local/etc/couchdb/local.ini"]]},{'EXIT',{{badmatch,{error,shutdown}},[{couch_server_sup,start_server,1},{application_master,start_it_old,4}]}}}}}},[{couch,start,0},{init,start_it,1},{init,start_em,1}]}}

Same problem with lots of other settings, e.g. port, bind_address.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

       

[jira] [Resolved] (COUCHDB-1328) whitespace in config values is significant and causes crashes

Posted by "Robert Newson (Resolved) (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/COUCHDB-1328?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Robert Newson resolved COUCHDB-1328.
------------------------------------

       Resolution: Fixed
    Fix Version/s: 1.1.2
                   1.3
                   1.2

regexp permitted zero or one whitespace characters, now permits zero, one or many.
                
> whitespace in config values is significant and causes crashes
> -------------------------------------------------------------
>
>                 Key: COUCHDB-1328
>                 URL: https://issues.apache.org/jira/browse/COUCHDB-1328
>             Project: CouchDB
>          Issue Type: Bug
>            Reporter: Rogutės Sparnuotos
>            Assignee: Robert Newson
>             Fix For: 1.2, 1.3, 1.1.2
>
>
> A space before a config value shouldn't be significant, yet it is. Running CouchDB with
>     file_compression =  snappy
> instead of
>     file_compression = snappy
> will show this cryptic error message:
> {"init terminating in do_boot",{{badmatch,{error,{bad_return,{{couch_app,start,[normal,["/usr/local/etc/couchdb/default.ini","/usr/local/etc/couchdb/local.ini"]]},{'EXIT',{{badmatch,{error,shutdown}},[{couch_server_sup,start_server,1},{application_master,start_it_old,4}]}}}}}},[{couch,start,0},{init,start_it,1},{init,start_em,1}]}}
> Same problem with lots of other settings, e.g. port, bind_address.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

       

[jira] [Assigned] (COUCHDB-1328) whitespace in config values is significant and causes crashes

Posted by "Robert Newson (Assigned) (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/COUCHDB-1328?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Robert Newson reassigned COUCHDB-1328:
--------------------------------------

    Assignee: Robert Newson
    
> whitespace in config values is significant and causes crashes
> -------------------------------------------------------------
>
>                 Key: COUCHDB-1328
>                 URL: https://issues.apache.org/jira/browse/COUCHDB-1328
>             Project: CouchDB
>          Issue Type: Bug
>            Reporter: Rogutės Sparnuotos
>            Assignee: Robert Newson
>
> A space before a config value shouldn't be significant, yet it is. Running CouchDB with
>     file_compression =  snappy
> instead of
>     file_compression = snappy
> will show this cryptic error message:
> {"init terminating in do_boot",{{badmatch,{error,{bad_return,{{couch_app,start,[normal,["/usr/local/etc/couchdb/default.ini","/usr/local/etc/couchdb/local.ini"]]},{'EXIT',{{badmatch,{error,shutdown}},[{couch_server_sup,start_server,1},{application_master,start_it_old,4}]}}}}}},[{couch,start,0},{init,start_it,1},{init,start_em,1}]}}
> Same problem with lots of other settings, e.g. port, bind_address.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

       

[jira] [Commented] (COUCHDB-1328) whitespace in config values is significant and causes crashes

Posted by "Dave Cottlehuber (Commented) (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/COUCHDB-1328?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13141955#comment-13141955 ] 

Dave Cottlehuber commented on COUCHDB-1328:
-------------------------------------------

confirmed also for bind_address, whitespace prior & after seems not to be significant, only between = sign and value. Reported on CouchDB 1.1.0 both unofficial windows build  and MacOS X (via brew).
                
> whitespace in config values is significant and causes crashes
> -------------------------------------------------------------
>
>                 Key: COUCHDB-1328
>                 URL: https://issues.apache.org/jira/browse/COUCHDB-1328
>             Project: CouchDB
>          Issue Type: Bug
>            Reporter: Rogutės Sparnuotos
>            Assignee: Robert Newson
>
> A space before a config value shouldn't be significant, yet it is. Running CouchDB with
>     file_compression =  snappy
> instead of
>     file_compression = snappy
> will show this cryptic error message:
> {"init terminating in do_boot",{{badmatch,{error,{bad_return,{{couch_app,start,[normal,["/usr/local/etc/couchdb/default.ini","/usr/local/etc/couchdb/local.ini"]]},{'EXIT',{{badmatch,{error,shutdown}},[{couch_server_sup,start_server,1},{application_master,start_it_old,4}]}}}}}},[{couch,start,0},{init,start_it,1},{init,start_em,1}]}}
> Same problem with lots of other settings, e.g. port, bind_address.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

       

[jira] [Commented] (COUCHDB-1328) whitespace in config values is significant and causes crashes

Posted by "Rogutės Sparnuotos (Commented JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/COUCHDB-1328?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13141759#comment-13141759 ] 

Rogutės Sparnuotos commented on COUCHDB-1328:
---------------------------------------------

Funny how JIRA interevened and deleted the additional space before "snappy". Or perhaps I mispelled?
Pardon the tests below.
2 spaces:
file_compression =  snappy 
3 spaces
file_compression =   snappy 
                
> whitespace in config values is significant and causes crashes
> -------------------------------------------------------------
>
>                 Key: COUCHDB-1328
>                 URL: https://issues.apache.org/jira/browse/COUCHDB-1328
>             Project: CouchDB
>          Issue Type: Bug
>            Reporter: Rogutės Sparnuotos
>            Assignee: Robert Newson
>
> A space before a config value shouldn't be significant, yet it is. Running CouchDB with
>     file_compression =  snappy
> instead of
>     file_compression = snappy
> will show this cryptic error message:
> {"init terminating in do_boot",{{badmatch,{error,{bad_return,{{couch_app,start,[normal,["/usr/local/etc/couchdb/default.ini","/usr/local/etc/couchdb/local.ini"]]},{'EXIT',{{badmatch,{error,shutdown}},[{couch_server_sup,start_server,1},{application_master,start_it_old,4}]}}}}}},[{couch,start,0},{init,start_it,1},{init,start_em,1}]}}
> Same problem with lots of other settings, e.g. port, bind_address.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira