You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@couchdb.apache.org by "ILYA (JIRA)" <ji...@apache.org> on 2016/01/07 23:36:42 UTC
[jira] [Commented] (COUCHDB-2932) View query crashes if the emited
key contains hidden characters
[ https://issues.apache.org/jira/browse/COUCHDB-2932?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15088289#comment-15088289 ]
ILYA commented on COUCHDB-2932:
-------------------------------
Backtrace is
[error] req_err(4004602127) unknown_error : badarg
[<<"dict:fetch/2 L130">>,<<"fabric_view_map:-merge_row/4-fun-2-/3 L163">>,
<<"lists:fmerge2_1/5 L2619">>,<<"lists:merge/3 L983">>,
<<"fabric_view_map:handle_message/3 L143">>,
<<"rexi_utils:process_mailbox/6 L55">>,<<"fabric_view_map:go/5 L73">>,
<<"fabric_view_map:go/6 L39">>]
This is happening because KeyDict contains keys without extra hidden chars https://github.com/apache/couchdb-fabric/blob/master/src/fabric_view_map.erl#L163
> View query crashes if the emited key contains hidden characters
> ---------------------------------------------------------------
>
> Key: COUCHDB-2932
> URL: https://issues.apache.org/jira/browse/COUCHDB-2932
> Project: CouchDB
> Issue Type: Bug
> Reporter: ILYA
> Attachments: invisible_char.sh
>
>
> In the cases where map function of the view emits invisible characters such as U+200B. Subsequent query of the view with the keys not containing invisible characters returns `badarg`.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)