nono commented on issue #3773:
URL: https://github.com/apache/couchdb/issues/3773#issuecomment-933493409


   So, we can reproduce with:
   
   ```sh
   #!/bin/sh
   COUCH_URL="http://localhost:5984";
   curl -s -X DELETE "$COUCH_URL/debug"
   sleep 1
   curl -s -X PUT "$COUCH_URL/debug?n=1&q=1"
   sleep 1
   curl -s -X PUT "$COUCH_URL/debug/_design/by-type-name" -d '{ "views": { 
"by-type-name": { "map": "function (doc) { emit([doc.type, doc.name]) }", 
"reduce": "_count" } } }'
   curl -s -X PUT "$COUCH_URL/debug/doc1" -H "Content-Type: application/json" 
-d '{ "type": "file", "name": "chaîne" }'
   curl -s -X PUT "$COUCH_URL/debug/doc2" -H "Content-Type: application/json" 
-d '{ "type": "file", "name": "chaîne" }'
   curl -s 
"$COUCH_URL/debug/_design/by-type-name/_view/by-type-name?group=true" -H 
"Content-Type: application/json" -d '{"keys": [["file", "chaîne"]]}'
   ```
   
   I have 0 rows in the response of the last request, but I would definitively 
expect a row.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


Reply via email to