GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — Bug: Querying by document with nested byte array doesn't work · Issue #197 · bwaldvogel/mongo-java-server

Bug: Querying by document with nested byte array doesn't work #197

New issue
Copy link
New issue
Copy link
Closed
Closed
Bug: Querying by document with nested byte array doesn't work#197
Copy link

Description

@Pinioo
Pinioo
opened on Jul 8, 2022
Issue body actions

The problem happens when one tries to query using a nested document

Steps to reproduce (via mongo CLI client):

db.Collection.insertOne({ "_id": { "value" : BinData(0,"wSU=") }})
db.Collection.find({ "_id": { "value" : BinData(0,"wSU=") }})

Desired behavior:
The previously inserted document is found

Actual behavior:
Nothing is found

Cause:
de.bwaldvogel.mongo.bson.Document#equals method executes documentAsMap.equals(o), which compares values inside the map using their implementation of equals and it fails for byte[]

Activity

  1. bwaldvogel
    added a commit that references this issue on Jul 15, 2022

    Improve support for binary data #197

    d0130f3
  2. bwaldvogel commented on Jul 15, 2022

    @bwaldvogel
    bwaldvogel
    on Jul 15, 2022
    Owner
    More actions

    Thanks, this should be fixed in version 1.41.0.

  3. bwaldvogel
    closed this as completedon Jul 15, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions

      You are visitor 01402775 — GeezerVison does not store the pages you look up.
      Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.