Nolan Lawson (JIRA | 17 Apr 07:47 2014
Picon

[jira] [Created] (COUCHDB-2226) Wrongful query_parse_error on group_level=999, keys.length > 1

Nolan Lawson created COUCHDB-2226:
-------------------------------------

             Summary: Wrongful query_parse_error on group_level=999, keys.length > 1
                 Key: COUCHDB-2226
                 URL: https://issues.apache.org/jira/browse/COUCHDB-2226
             Project: CouchDB
          Issue Type: Bug
      Security Level: public (Regular issues)
            Reporter: Nolan Lawson

It's expected that `group=true` will avoid the query parse error if keys.length > 1, but since
`group_level=999` is semantically equivalent to `group=true`, one would expect that it would also
avoid the error.  However, it doesn't.

Tested against CouchDB 1.5.0.  The script below will repro the error.

{code}
DB=http://localhost:5984/mytestdb
curl -X DELETE $DB
curl -X PUT $DB
curl -X PUT $DB/_design/ddoc -H 'content-type:application/json' -d '{"views" : {"view" : {"map" :
"function (doc){emit(doc._id);}", "reduce" : "_count"}}}'
curl -X POST $DB/_bulk_docs -H 'content-type:application/json' -d '{"docs" : [{"_id" : "1"}, {"_id" : "2"}]}'

# returns 2 results
curl -g "$DB/_design/ddoc/_view/view?group=true&keys=[%221%22,%222%22]"

# throws a query_parse_error
curl -g "$DB/_design/ddoc/_view/view?group_level=999&keys=[%221%22,%222%22]"
(Continue reading)

Nolan Lawson (JIRA | 17 Apr 07:47 2014
Picon

[jira] [Updated] (COUCHDB-2226) Wrongful query_parse_error on group_level=999, keys.length > 1


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

Nolan Lawson updated COUCHDB-2226:
----------------------------------

    Description: 
It's expected that {{group=true}} will avoid the query parse error if keys.length > 1, but since
{{group_level=999}} is semantically equivalent to {{group=true}}, one would expect that it would also
avoid the error.  However, it doesn't.

Tested against CouchDB 1.5.0.  The script below will repro the error.

{code}
DB=http://localhost:5984/mytestdb
curl -X DELETE $DB
curl -X PUT $DB
curl -X PUT $DB/_design/ddoc -H 'content-type:application/json' -d '{"views" : {"view" : {"map" :
"function (doc){emit(doc._id);}", "reduce" : "_count"}}}'
curl -X POST $DB/_bulk_docs -H 'content-type:application/json' -d '{"docs" : [{"_id" : "1"}, {"_id" : "2"}]}'

# returns 2 results
curl -g "$DB/_design/ddoc/_view/view?group=true&keys=[%221%22,%222%22]"

# throws a query_parse_error
curl -g "$DB/_design/ddoc/_view/view?group_level=999&keys=[%221%22,%222%22]"
{code}

  was:
(Continue reading)

Andy Wenk (JIRA | 16 Apr 22:52 2014
Picon

[jira] [Commented] (COUCHDB-1994) merge rcouch with couchdb 1.6 in a branch


    [
https://issues.apache.org/jira/browse/COUCHDB-1994?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13971939#comment-13971939
] 

Andy Wenk commented on COUCHDB-1994:
------------------------------------

make -> ok 
make icu=static -> ok
make libs=shared -> ok
make check
this time different :
Test Summary Report
-------------------
/Users/andwen/project/couchdb/COUCHDB-1994-2/test/etap/042-work-queue.t                    (Wstat: 0 Tests: 154
Failed: 0)
  Parse errors: Bad plan.  You planned 155 tests but ran 154.
Files=50, Tests=1210, 259 wallclock secs ( 0.57 usr  0.12 sys + 91.83 cusr 24.70 csys = 117.22 CPU)
Result: FAIL
make: *** [test] Error 1

make rel -> ok (no warnings YAY :) )
./rel/apache-couchdb/bin/couchdb start
{
  couchdb: "Welcome",
  uuid: "50373aa377f9b05b6970fb5992dd4295",
  version: "1.6.1",
  vendor: {
    version: "2.0.0",
(Continue reading)

Andy Wenk (JIRA | 16 Apr 22:36 2014
Picon

[jira] [Commented] (COUCHDB-1994) merge rcouch with couchdb 1.6 in a branch


    [
https://issues.apache.org/jira/browse/COUCHDB-1994?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13971921#comment-13971921
] 

Andy Wenk commented on COUCHDB-1994:
------------------------------------

just for convenience, here are the basic build tests sumarised:

https://friendpaste.com/7AOKJOYGWVf5692lRNgNXq

> merge rcouch with couchdb 1.6 in a branch
> -----------------------------------------
>
>                 Key: COUCHDB-1994
>                 URL: https://issues.apache.org/jira/browse/COUCHDB-1994
>             Project: CouchDB
>          Issue Type: Task
>          Components: Build System, Database Core, HTTP Interface, JavaScript View Server
>            Reporter: Benoit Chesneau
>

--
This message was sent by Atlassian JIRA
(v6.2#6252)

pegli | 16 Apr 22:21 2014
Picon

[GitHub] couchdb pull request: DOCS: added a section on database authorizat...

GitHub user pegli opened a pull request:

    https://github.com/apache/couchdb/pull/211

    DOCS: added a section on database authorization to the security intro document

    from #couchdb:

        dweremeichik
        Hi, I am curious as to what some of you do in reguards to securing data so that one organization/user cannot
access another's data.

    The docs for /{db}/_security cover this, but not in a verbose way.  I've added a new section to
/intro/security.rst that covers the how and why of per-database authorization.

You can merge this pull request into a Git repository by running:

    $ git pull https://github.com/pegli/couchdb master

Alternatively you can review and apply these changes as the patch at:

    https://github.com/apache/couchdb/pull/211.patch

To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:

    This closes #211

----
commit b378c7e901535c7b7fd805defec6e4eab285983a
(Continue reading)

Jan Lehnardt (JIRA | 16 Apr 21:58 2014
Picon

[jira] [Commented] (COUCHDB-1994) merge rcouch with couchdb 1.6 in a branch


    [
https://issues.apache.org/jira/browse/COUCHDB-1994?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13971863#comment-13971863
] 

Jan Lehnardt commented on COUCHDB-1994:
---------------------------------------

Adding this post from Benoit from dev <at>  for reference:

I did many posts during the merge here asking for a review:

https://www.mail-archive.com/search?l=dev%40couchdb.apache.org&q=rcouch+status

That should help any dev interested in the review.

COUCHDB-1994 can be used to track any review. wohali started some here:

https://issues.apache.org/jira/browse/COUCHDB-1994

Any information on the rcouch wiki are still valid also:

https://wiki.refuge.io/display/RCOUCH/rcouch

Hope it helps.

> merge rcouch with couchdb 1.6 in a branch
> -----------------------------------------
>
>                 Key: COUCHDB-1994
(Continue reading)

ASF IRC Bot | 16 Apr 21:52 2014
Picon

Summary of IRC Meeting in #couchdb-meeting

Summary of IRC Meeting in #couchdb-meeting at Wed Apr 16 19:02:33 2014:

Attendees: Wohali, nslater, awenkhh, vmx, benoitc, kzx, jan____, Humbedooh, chewbranca, rnewson

- Preface
- bigcouch merge
  - Info: work on the bigcouch merge has started again and will make good progress 
- rcouch merge 
  - Action: rnewson to bring up windows support on dev <at> 
  - Action: jan____ to look at producing rcouch merge request for help blog post
- advocat hub
- 1.6.0 release
  - Action: pringles for everyone (not really)
- COUCHDB-1986
- weekly new

IRC log follows:

## Preface ##
[Wed Apr 16 19:03:17 2014] <Humbedooh>: aah
[Wed Apr 16 19:03:21 2014] <Humbedooh>: ASFBot: karma add awenkhh 3
[Wed Apr 16 19:06:24 2014] <awenkhh>: welcome everybody 
[Wed Apr 16 19:06:34 2014] <nslater>: ACTION feels welcomed
[Wed Apr 16 19:06:38 2014] <awenkhh>: we have the following topics for today
[Wed Apr 16 19:07:20 2014] <awenkhh>: rcouch & bigcouch merge, COUCHDB-1986, 1.6 release
[Wed Apr 16 19:07:31 2014] <nslater>: please also add: advocate hub
## bigcouch merge ##
[Wed Apr 16 19:08:19 2014] <awenkhh>: rnewson would be cool if you go ahead with it 
[Wed Apr 16 19:08:22 2014] <rnewson>: my only note on the bigcouch merge is that I (and others soon I think)
have restarted work on our branch
(Continue reading)

Benoit Chesneau (JIRA | 16 Apr 16:22 2014
Picon

[jira] [Commented] (COUCHDB-1994) merge rcouch with couchdb 1.6 in a branch


    [
https://issues.apache.org/jira/browse/COUCHDB-1994?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13971451#comment-13971451
] 

Benoit Chesneau commented on COUCHDB-1994:
------------------------------------------

[~andywenk] The warnings have been fixed in 

https://git-wip-us.apache.org/repos/asf?p=couchdb.git;a=blobdiff;f=Makefile;h=3112dab7e769260c87f1a35419e37ca3cb0914fa;hp=c5c859e085ffdc51bf28b3dcc8bc2f8370ea997d;hb=7c5af9a9;hpb=8751a11d3f4d65f3b4204310a51168ada097e229

I don't reproduce your error right now, will check on another machine.

> merge rcouch with couchdb 1.6 in a branch
> -----------------------------------------
>
>                 Key: COUCHDB-1994
>                 URL: https://issues.apache.org/jira/browse/COUCHDB-1994
>             Project: CouchDB
>          Issue Type: Task
>          Components: Build System, Database Core, HTTP Interface, JavaScript View Server
>            Reporter: Benoit Chesneau
>

--
This message was sent by Atlassian JIRA
(v6.2#6252)

(Continue reading)

Andy Wenk (JIRA | 16 Apr 15:54 2014
Picon

[jira] [Commented] (COUCHDB-1994) merge rcouch with couchdb 1.6 in a branch


    [
https://issues.apache.org/jira/browse/COUCHDB-1994?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13971414#comment-13971414
] 

Andy Wenk commented on COUCHDB-1994:
------------------------------------

Here are some test results from my Mac Book OS X 10.9.2 with Erlang R16B03-1

make -> ok
make icu=static -> ok (https://friendpaste.com/1JtG5bts2Sz0LWhUut44QR)
make libs=shared -> ok
make check 1/87 tests failed:

view_offsets.js ... fail
javascript traceback:

FAIL
    Reason: The database could not be created, the file already exists.
Trace back (most recent call first):

 508: /Users/andwen/project/couchdb/COUCHDB-1994/test/etap/../../test/out/share/www/script/couch.js
      CouchError([object Object])
 471: /Users/andwen/project/couchdb/COUCHDB-1994/test/etap/../../test/out/share/www/script/couch.js
      ([object CouchHTTP])
  33: /Users/andwen/project/couchdb/COUCHDB-1994/test/etap/../../test/out/share/www/script/couch.js
      ()
  65: /Users/andwen/project/couchdb/COUCHDB-1994/test/etap/../../test/out/share/www/script/test/view_offsets.js
      ()
(Continue reading)

Lena Reinhard | 16 Apr 14:24 2014

Your links for the CouchDB weekly news?

Hi everyone, 

the weekly question: 
if you want to submit a link for tomorrow's CouchDB Weekly News (especially topics which haven't been
discussed on the Mailing lists yet), please don't hesitate to send them to this thread until April 17th,
10am CEST.

Your support is highly appreciated!

Best from Berlin
Lena
Benoit Chesneau (JIRA | 16 Apr 10:19 2014
Picon

[jira] [Commented] (COUCHDB-1994) merge rcouch with couchdb 1.6 in a branch


    [
https://issues.apache.org/jira/browse/COUCHDB-1994?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13970564#comment-13970564
] 

Benoit Chesneau commented on COUCHDB-1994:
------------------------------------------

[~wohali] thanks!

rcouch never worked on windows which explains why the build breaks on this platform. From time to time some
people came saying they were working on it, but it never happened.

Anyway some quick comments. Is it true that for now the build is only based on gcc and POSIX platform
(+solaris one) but there is no real assumptions on it. 

1) For couchjs the controlled is controlled via  the :rebar.config.script

https://github.com/apache/couchdb-couch/blob/1994-merge-rcouch/rebar.config.script 

It's easy to test the platform there and use the correct build:

https://github.com/apache/couchdb-couch/blob/1994-merge-rcouch/rebar.config.script#L109

Like the static build:

https://github.com/apache/couchdb-couch/blob/1994-merge-rcouch/rebar.config.script#L74-L91

You can pass the needed flags for windows.

(Continue reading)


Gmane