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

Parameter values in MongoDB JSON Query are not being replaced properly

    Details

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

      Description

      for Queries with multiple parameter's, for instance
      @Query(value = "{\"geo\" : {\"$within\" :

      {\"$center\" : [[ ?0, ?1 ], ?2]}

      }}") only the last parameter values is
      being replaced with the run time parameter.

        Activity

        Hide
        Vishnu added a comment -

        method replacePlaceholders in class StringBasedMongoQuery needs to be fixed to handle
        multiple parameter's

        Show
        Vishnu added a comment - method replacePlaceholders in class StringBasedMongoQuery needs to be fixed to handle multiple parameter's

          People

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

            Dates

            • Created:
              Updated:
              Resolved:

              Time Tracking

              Estimated:
              Original Estimate - 0.5h
              0.5h
              Remaining:
              Remaining Estimate - 0.5h
              0.5h
              Logged:
              Time Spent - Not Specified
              Not Specified