Skip to content
This repository has been archived by the owner on Apr 11, 2023. It is now read-only.

Storage failures if database prefix is not set or contains incompatible characters when using CouchDB #190

Open
DRK3 opened this issue Feb 4, 2021 · 1 comment
Labels
bug Something isn't working

Comments

@DRK3
Copy link
Collaborator

DRK3 commented Feb 4, 2021

When using CouchDB, when the EDV server creates a vault, the EDV server generates a UUID to use internally as the CouchDB databases name. Sometimes these UUIDs will start with a number, which is an invalid database name for CouchDB. If you're using a valid prefix, this isn't a problem, but if no prefix is set then some vaults will randomly fail to create, which is super confusing.

Also, if you set a prefix that contains those non-CouchDB-characters, then database creation will fail as well. However, this case isn't as severe since the failure will at least happen at startup and be far more obvious.

@DRK3 DRK3 added the bug Something isn't working label Feb 4, 2021
@DRK3
Copy link
Collaborator Author

DRK3 commented Jun 18, 2022

This is mostly addressed by #250. The UUID thing is no longer applicable, the only thing that remains is the prefix issue, which is minor. An error will happen at startup from CouchDB, but the error message is a little bit low-level sounding. While there's a good chance the user may figure out the issue from that message (as CouchDB's message describes the database limitations), it would be a bit nicer if we detect the issue and give the user a more direct error message explaining that the issue is with their EDV prefix setting.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant