Should not attempt to open the default tmp directory in DBConfig constructor

Description

The DatabaseConfiguration object allows specifying a custom temp directory. The code, however, can fail attempting to resolve the default directory, before the client code has a chance to set the custom directory. That is broken.

Activity

Show:

Blake Meike December 24, 2019 at 10:59 PM

Just to be clear, I was unable to prevent the Configuration constructor from using the directory path. I did, however, require that the CBLite system be initialized before the construction of any Configurations.

Blake Meike December 24, 2019 at 10:56 PM

I think I've got this resolved.
There may be other places with the same problem...

CB robot December 24, 2019 at 9:04 PM

Build couchbase-lite-android-2.8.0-29 contains couchbase-lite-java-ee commit 9add958 with commit message:
: Fix use of temp directory

CB robot December 24, 2019 at 9:04 PM

Build couchbase-lite-android-2.8.0-29 contains couchbase-lite-java commit e79695a with commit message:
: Fix use of temp directory

CB robot December 24, 2019 at 9:04 PM

Build couchbase-lite-android-2.8.0-29 contains couchbase-lite-android commit 22562de with commit message:
: Fix use of temp directory

Fixed
Pinned fields
Click on the next to a field label to start pinning.

Details

Assignee

Reporter

Story Points

Components

Sprint

Fix versions

Affects versions

Priority

Instabug

Open Instabug

PagerDuty

Sentry

Zendesk Support

Created October 21, 2019 at 9:34 PM
Updated June 14, 2021 at 4:36 PM
Resolved December 24, 2019 at 10:56 PM
Instabug