Uploaded image for project: 'Documentation'
  1. Documentation
  2. DOCS-4250

$rename cannot rename fields that contain a dot

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major - P3
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: v1.3.15
    • Component/s: manual
    • Labels:
      None
    • # Replies:
      5
    • Last comment by Customer:
      true
    • Actual Time:
      4

      Description

      This page:
      http://docs.mongodb.org/manual/release-notes/2.6-compatibility/#updates-enforce-field-name-restrictions

      The suggested solutions of using unset and/or rename commands to remove or rename fields that contain a dot does not work.

      Because the original source name must be specified as a field name one will have trouble getting a driver to encode it correctly. Using a driver that permits ignoring this problem (eg. C# with "CheckElementNames = false") causes the server to interpret the string as a dotted path and hence the unset or rename does not find the field at all (and does nothing).

      At this time I do not know the solution to this problem but the suggested solutions certainly do not seem to be possible.

        Attachments

          Issue Links

            Activity

              People

              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:
                  Days since reply:
                  5 years, 7 weeks, 4 days ago
                  Date of 1st Reply: