Skip to content

Commit

Permalink
Merge pull request #4473 from butonic/fix-listing-sessions
Browse files Browse the repository at this point in the history
fix listing sessions
  • Loading branch information
butonic authored Jan 24, 2024
2 parents 695d526 + 99b0d56 commit 6d841aa
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
3 changes: 3 additions & 0 deletions changelog/unreleased/fix-listing-sessions.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
Bugfix: decomposedfs now correctly lists sessions

https://github.com/cs3org/reva/pull/4473
3 changes: 2 additions & 1 deletion pkg/storage/utils/decomposedfs/upload/store.go
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,8 @@ func (store OcisStore) List(ctx context.Context) ([]*OcisSession, error) {
}

for _, info := range infoFiles {
progress, err := store.Get(ctx, info)
id := strings.TrimSuffix(filepath.Base(info), filepath.Ext(info))
progress, err := store.Get(ctx, id)
if err != nil {
appctx.GetLogger(ctx).Error().Interface("path", info).Msg("Decomposedfs: could not getUploadSession")
continue
Expand Down

0 comments on commit 6d841aa

Please sign in to comment.