Uploaded image for project: 'Couchbase Lite'
  1. Couchbase Lite
  2. CBL-525

Upgrade from 1.x fails if any docID starts with "_"

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • Major
    • 2.7.0
    • 2.6.1
    • LiteCore
    • Security Level: Public
    • None

    Description

      Via this forum thread — apparently it was somehow possible in 1.x to create a document whose ID started with "_", even though this is supposed to be illegal. Any database with such a doc will fail to open in 2.x because the upgrader will reject that docID.

      We have a test in the Upgrader class to skip the special case of docIDs that start with "design/" (which was legal in 1.x, for complicated reasons.) This should be modified to skip (not reject) any doc whose ID starts with "".

      Attachments

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            jens Jens Alfke
            jens Jens Alfke
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes

                PagerDuty