Skip to content

mc/find-one-as-map can return malformed sub-maps with "/" character in the key. #191

@datafatmunger

Description

@datafatmunger

Insert the following document:
{"content" : { "prjfoobar/files/foo" : "foo" }

(mc/find-one-as-map db "documents" { :_id (ObjectId. "5dfe449f1bbe8f22701dcf27") })

Returns:
{:_id #object[org.bson.types.ObjectId 0x93cf96d "5dfe449f1bbe8f22701dcf27"], :content #:prjfoobar{:files/foo "foo"}}

... the content map is pretty broken.

Version: 3.1.0

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions