Uploaded image for project: 'Couchbase Server'
  1. Couchbase Server
  2. MB-43206

Backup Service: Path validation for repos is broken

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • Major
    • 7.0.0
    • Cheshire-Cat
    • tools
    • None
    • Triaged
    • Ubuntu 64-bit
    • 1
    • No

    Description

      Problem
      It's possible to insert an invalid path and it results in a repo being created.

      Steps to reproduce

      1. Create 1 node cluster with the backup service on linux
      2. Create a repo using a windows style path D:\OneDrive\Pictures\metaData

      notes
      From the logs the backup was created here:

      /opt/couchbase/var/lib/couchbase/D:\OneDrive\Pictures\metaData:
      total 24
      392192 drwxrwx---  5 couchbase couchbase 4096 Dec  9 19:12 .
      392102 drwxr-xr-x 10 couchbase couchbase 4096 Dec  9 19:15 ..
      397152 -rw-rw----  1 couchbase couchbase  207 Dec  9 18:40 .backup
      397027 drwxrwx---  3 couchbase couchbase 4096 Dec  9 18:47 .cbbs-72d0edee8d7b7f4b7c7b6c3228dcfb0f
      397041 drwxrwx---  4 couchbase couchbase 4096 Dec  9 19:12 c11ce1b7-bddf-4652-96e8-bc4450b98d70
      397151 drwxrwx---  3 couchbase couchbase 4096 Dec  9 18:40 logs
      

      Expectation
      It should use absolute paths and not relative
      For an error to be produce
      For the UI to show the correct path

      Attachments

        Issue Links

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

          Activity

            People

              matthew.groves Matthew Groves
              matthew.groves Matthew Groves
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes

                  PagerDuty