incubator-couchdb-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Chris Anderson (JIRA)" <j...@apache.org>
Subject [jira] Assigned: (COUCHDB-593) Show returning zero length string results in scary errors
Date Sun, 06 Dec 2009 22:33:18 GMT

     [ https://issues.apache.org/jira/browse/COUCHDB-593?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Chris Anderson reassigned COUCHDB-593:
--------------------------------------

    Assignee: Chris Anderson

> Show returning zero length string results in scary errors
> ---------------------------------------------------------
>
>                 Key: COUCHDB-593
>                 URL: https://issues.apache.org/jira/browse/COUCHDB-593
>             Project: CouchDB
>          Issue Type: Bug
>          Components: JavaScript View Server
>    Affects Versions: 0.10
>         Environment: Ubuntu 9.10
>            Reporter: Roger Binns
>            Assignee: Chris Anderson
>
> If your show function returns a zero length string then several scary things happen.
 Arguably the empty length string should just be returned to the browser.
> function (doc,req) { return "";}
> On returning the zero length string, the following is displayed in the browser:
>          {ret_proc,{proc,<0.79.0>,<<\"javascript\">>,\n           
                 {couch_os_process,prompt},\n                             {couch_os_process,set_timeout},\n
                            {couch_os_process,stop}}}]}"}
> The following is in the CouchDB log:
> [Sun, 06 Dec 2009 22:10:15 GMT] [error] [<0.64.0>] OS Process Error :: {render_error,<<"undefined
response from show function">>}
> [Sun, 06 Dec 2009 22:10:15 GMT] [error] [<0.53.0>] {error_report,<0.24.0>,
>               {<0.53.0>,supervisor_report,
>                [{supervisor,{local,couch_secondary_services}},
>                 {errorContext,child_terminated},
>                 {reason,normal},
>                 {offender,[{pid,<0.58.0>},
>                            {name,query_servers},
>                            {mfa,{couch_query_servers,start_link,[]}},
>                            {restart_type,permanent},
>                            {shutdown,brutal_kill},
>                            {child_type,worker}]}]}}
> [Sun, 06 Dec 2009 22:10:15 GMT] [error] [<0.64.0>] Uncaught error in HTTP request:
{exit,
>                                  {normal,
>                                   {gen_server,call,
>                                    [couch_query_servers,
>                                     {ret_proc,
>                                      {proc,<0.79.0>,<<"javascript">>,
>                                       {couch_os_process,prompt},
>                                       {couch_os_process,set_timeout},
>                                       {couch_os_process,stop}}}]}}}
> [Sun, 06 Dec 2009 22:10:15 GMT] [info] [<0.64.0>] Stacktrace: [{gen_server,call,2},
>              {couch_query_servers,ret_os_process,1},
>              {couch_query_servers,render_doc_show,6},
>              {couch_httpd_show,'-send_doc_show_response/6-fun-0-',6},
>              {couch_httpd_db,do_db_req,2},
>              {couch_httpd,handle_request,5},
>              {mochiweb_http,headers,5},
>              {proc_lib,init_p_do_apply,3}]
> [Sun, 06 Dec 2009 22:10:15 GMT] [info] [<0.64.0>] 127.0.0.1 - - 'GET' /r/_design/rofroks/_show/index
500

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


Mime
View raw message