incubator-couchdb-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Marcello Barnaba (JIRA)" <j...@apache.org>
Subject [jira] [Updated] (COUCHDB-1636) Views code in design documents missing the "language" property cannot be updated via futon
Date Fri, 04 Jan 2013 16:30:13 GMT

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

Marcello Barnaba updated COUCHDB-1636:
--------------------------------------

    Description: 
As reported by Lleïr Borras (http://tu.llegeix.me/), it is not possible to update a materialized
view code through the Futon if its design document does not contain the "language" property.

On such a design document, when clicking "Save" in the the "database.html?db/_design/doc/_view/name"
page, the following error occurs:

Cannot save view because the design document language is "undefined", not "javascript".

But, in the server code[1], "javascript" is the default value for the language property if
it is undefined: so, I think that the correct solution is to make the futon implement the
same behavior.

[1]: https://github.com/apache/couchdb/blob/master/src/couchdb/couch_query_servers.erl#L327


  was:
As reported by Lleïr Borras (http://tu.llegeix.me/), it is not possible to update a materialized
view code through the Futon if its design document does not contain the "language" property.

On such a design document, when clicking "Save" in the the "database.html?db/_design/doc/_view/name"
page, the following error occurs:

Cannot save view because the design document language is "undefined", not "javascript".

But, in the server code[1], "javascript" is the default value for the language property if
it is undefined: so, I think that the correct solution is to make the futon implement the
same behavior.


    
> Views code in design documents missing the "language" property cannot be updated via
futon
> ------------------------------------------------------------------------------------------
>
>                 Key: COUCHDB-1636
>                 URL: https://issues.apache.org/jira/browse/COUCHDB-1636
>             Project: CouchDB
>          Issue Type: Bug
>          Components: Futon
>    Affects Versions: 1.2
>            Reporter: Marcello Barnaba
>            Priority: Trivial
>              Labels: javascript, newbie, patch
>         Attachments: couchdb-futon-default-view-language.patch
>
>
> As reported by Lleïr Borras (http://tu.llegeix.me/), it is not possible to update a
materialized view code through the Futon if its design document does not contain the "language"
property.
> On such a design document, when clicking "Save" in the the "database.html?db/_design/doc/_view/name"
page, the following error occurs:
> Cannot save view because the design document language is "undefined", not "javascript".
> But, in the server code[1], "javascript" is the default value for the language property
if it is undefined: so, I think that the correct solution is to make the futon implement the
same behavior.
> [1]: https://github.com/apache/couchdb/blob/master/src/couchdb/couch_query_servers.erl#L327

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

Mime
View raw message