mirror of
https://github.com/open-policy-agent/opa.git
synced 2026-08-12 19:32:48 -06:00
Fix for the issue when OPA throws misleading error (storage_not_found_error) message while loading the delta bundle when persist property in config is true.
The fix is to prevent the loading of delta bundle when persist is true and give a more clear error message. Fixes #5959 Signed-off-by: Yogesh Sinha <sinhayogi@gmail.com>
This commit is contained in:
committed by
Ashutosh Narkar
parent
4f5882dd98
commit
18f9ef24f3
@@ -333,7 +333,8 @@ func (d *Downloader) download(ctx context.Context, m metrics.Metrics) (*download
|
||||
WithBundleVerificationConfig(d.bvc).
|
||||
WithBundleEtag(etag).
|
||||
WithLazyLoadingMode(d.lazyLoadingMode).
|
||||
WithBundleName(d.bundleName)
|
||||
WithBundleName(d.bundleName).
|
||||
WithBundlePersistence(d.persist)
|
||||
if d.sizeLimitBytes != nil {
|
||||
reader = reader.WithSizeLimitBytes(*d.sizeLimitBytes)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user