Spring Data MongoDB
  1. Spring Data MongoDB
  2. DATAMONGO-190

SimpleMongoRepository.exists(…) returns false for existing entities with non-ObjectId id

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 1.0 M3
    • Fix Version/s: 1.0 M4
    • Component/s: Repository
    • Labels:
      None

      Description

      The id handed into SimpleMongoRepository.exists(…) is not converted at all before piping it into the query. This works fine for classes using ObjectId as id type anyway but will fail for ones using String ids for example.

        Activity

        Hide
        Oliver Gierke added a comment -

        Fixed and available in tonight's snapshot.

        Show
        Oliver Gierke added a comment - Fixed and available in tonight's snapshot.

          People

          • Assignee:
            Oliver Gierke
            Reporter:
            Oliver Gierke
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Time Tracking

              Estimated:
              Original Estimate - Not Specified
              Not Specified
              Remaining:
              Remaining Estimate - 0d
              0d
              Logged:
              Time Spent - 20m
              20m