CadyIO / hangfire-ravendb

RavenDB job storage for Hangfire
https://www.nuget.org/packages/Hangfire.Raven/
18 stars 35 forks source link

Requires rights to System database #26

Open wagich opened 6 years ago

wagich commented 6 years ago

When not using a connection string, the way the DocumentStore is constructed using the DefaultDatabase property requires read-access to the System database. In certain environments (like RavenHQ) that isn't granted – leading to an exception on start up.

I seems that constructing the URL for a specific database manually, f.ex. https://ravenserver/databases/foo and not setting DefaultDatabase avoids this problem.

Are there any drawbacks to this I'm not seeing atm.?

AustinWinstanley commented 6 years ago

Thanks! Looking into if this will impact DB URL's that may not have the same format.