Skip to content

Commit

Permalink
fix malformed uid string in getter
Browse files Browse the repository at this point in the history
Signed-off-by: Christian Richter <crichter@owncloud.com>
  • Loading branch information
dragonchaser committed Oct 12, 2022
1 parent ae7c58b commit 6fea4b9
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion pkg/storage/cache/cache.go
Original file line number Diff line number Diff line change
Expand Up @@ -198,7 +198,14 @@ func (cache cacheStore) List(opts ...microstore.ListOption) ([]string, error) {
microstore.ListFrom(cache.database, cache.table),
}
o = append(o, opts...)
return cache.s.List(o...)
keys, err := cache.s.List(o...)
if err != nil {
return nil, err
}
for i, key := range keys {
keys[i] = strings.TrimPrefix(key, cache.table)
}
return keys, nil
}

// Delete deletes the given key on the configured database and table of the underlying store
Expand Down

0 comments on commit 6fea4b9

Please sign in to comment.