Description
Problem
It's possible to insert an invalid path and it results in a repo being created.
Steps to reproduce
- Create 1 node cluster with the backup service on linux
- 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
- relates to
-
MB-47771 Unclear how to create backup on Windows
- Closed
For Gerrit Dashboard: MB-43206 | ||||||
---|---|---|---|---|---|---|
# | Subject | Branch | Project | Status | CR | V |
141875,3 | MB-43206 Require absolute path to add/import repository | master | cbbs | Status: MERGED | +2 | +1 |